[LG Optimus L3 II, L5 II, L7 II, L9 II] neutrondev:
That doesn't help I got another error so I don't know how can you build straight from the git. There are some patches missing.

target thumb C++: gralloc.msm7x27a <= hardware/qcom/display-legacy/libgralloc/framebuffer.cpp
In file included from hardware/qcom/display-legacy/libgralloc/framebuffer.cpp:35:0:
device/lge/p715/include/linux/msm_mdp.h:512:5: error: stray '\302' in program
device/lge/p715/include/linux/msm_mdp.h:512:5: error: stray '\251' in program
In file included from hardware/qcom/display-legacy/libgralloc/framebuffer.cpp:35:0:
device/lge/p715/include/linux/msm_mdp.h:1:2: error: 'Skip' does not name a type
In file included from hardware/qcom/display-legacy/libgralloc/framebuffer.cpp:35:0:
device/lge/p715/include/linux/msm_mdp.h:505:5: error: 'Status' does not name a type
In file included from hardware/qcom/display-legacy/libgralloc/framebuffer.cpp:37:0:
frameworks/native/opengl/include/GLES/gl.h:31:9: error: 'khronos_int32_t' does not name a type
frameworks/native/opengl/include/GLES/gl.h:32:9: error: 'khronos_int32_t' does not name a type
In file included from hardware/qcom/display-legacy/libgralloc/framebuffer.cpp:37:0:
frameworks/native/opengl/include/GLES/gl.h:634:72: error: 'GLclampx' has not been declared
frameworks/native/opengl/include/GLES/gl.h:641:60: error: variable or field 'glClearColorx' declared void
frameworks/native/opengl/include/GLES/gl.h:641:60: error: 'GLclampx' was not declared in this scope
frameworks/native/opengl/include/GLES/gl.h:641:74: error: 'GLclampx' was not declared in this scope
frameworks/native/opengl/include/GLES/gl.h:641:90: error: 'GLclampx' was not declared in this scope
frameworks/native/opengl/include/GLES/gl.h:641:105: error: 'GLclampx' was not declared in this scope
frameworks/native/opengl/include/GLES/gl.h:642:60: error: variable or field 'glClearDepthx' declared void
frameworks/native/opengl/include/GLES/gl.h:642:60: error: 'GLclampx' was not declared in this scope
frameworks/native/opengl/include/GLES/gl.h:645:79: error: 'GLfixed' does not name a type
frameworks/native/opengl/include/GLES/gl.h:647:56: error: variable or field 'glColor4x' declared void
frameworks/native/opengl/include/GLES/gl.h:647:56: error: 'GLfixed' was not declared in this scope
frameworks/native/opengl/include/GLES/gl.h:647:69: error: 'GLfixed' was not declared in this scope
frameworks/native/opengl/include/GLES/gl.h:647:84: error: 'GLfixed' was not declared in this scope
frameworks/native/opengl/include/GLES/gl.h:647:98: error: 'GLfixed' was not declared in this scope
frameworks/native/opengl/include/GLES/gl.h:659:60: error: variable or field 'glDepthRangex' declared void
frameworks/native/opengl/include/GLES/gl.h:659:60: error: 'GLclampx' was not declared in this scope
frameworks/native/opengl/include/GLES/gl.h:659:76: error: 'GLclampx' was not declared in this scope
frameworks/native/opengl/include/GLES/gl.h:668:67: error: 'GLfixed' has not been declared
frameworks/native/opengl/include/GLES/gl.h:669:74: error: 'GLfixed' does not name a type
frameworks/native/opengl/include/GLES/gl.h:671:57: error: variable or field 'glFrustumx' declared void
frameworks/native/opengl/include/GLES/gl.h:671:57: error: 'GLfixed' was not declared in this scope
frameworks/native/opengl/include/GLES/gl.h:671:71: error: 'GLfixed' was not declared in this scope
frameworks/native/opengl/include/GLES/gl.h:671:86: error: 'GLfixed' was not declared in this scope
frameworks/native/opengl/include/GLES/gl.h:671:102: error: 'GLfixed' was not declared in this scope
frameworks/native/opengl/include/GLES/gl.h:671:115: error: 'GLfixed' was not declared in this scope
frameworks/native/opengl/include/GLES/gl.h:671:130: error: 'GLfixed' was not declared in this scope
frameworks/native/opengl/include/GLES/gl.h:674:76: error: 'GLfixed' has not been declared
frameworks/native/opengl/include/GLES/gl.h:678:72: error: 'GLfixed' has not been declared
frameworks/native/opengl/include/GLES/gl.h:680:87: error: 'GLfixed' has not been declared
frameworks/native/opengl/include/GLES/gl.h:681:89: error: 'GLfixed' has not been declared
frameworks/native/opengl/include/GLES/gl.h:685:86: error: 'GLfixed' has not been declared
frameworks/native/opengl/include/GLES/gl.h:687:95: error: 'GLfixed' has not been declared
frameworks/native/opengl/include/GLES/gl.h:692:74: error: 'GLfixed' has not been declared
frameworks/native/opengl/include/GLES/gl.h:693:81: error: 'GLfixed' does not name a type
frameworks/native/opengl/include/GLES/gl.h:694:83: error: 'GLfixed' has not been declared
frameworks/native/opengl/include/GLES/gl.h:695:90: error: 'GLfixed' does not name a type
frameworks/native/opengl/include/GLES/gl.h:696:59: error: variable or field 'glLineWidthx' declared void
frameworks/native/opengl/include/GLES/gl.h:696:59: error: 'GLfixed' was not declared in this scope
frameworks/native/opengl/include/GLES/gl.h:698:66: error: 'GLfixed' does not name a type
frameworks/native/opengl/include/GLES/gl.h:700:85: error: 'GLfixed' has not been declared
frameworks/native/opengl/include/GLES/gl.h:701:92: error: 'GLfixed' does not name a type
frameworks/native/opengl/include/GLES/gl.h:703:66: error: 'GLfixed' does not name a type
frameworks/native/opengl/include/GLES/gl.h:704:79: error: 'GLfixed' has not been declared
frameworks/native/opengl/include/GLES/gl.h:704:90: error: 'GLfixed' has not been declared
frameworks/native/opengl/include/GLES/gl.h:704:101: error: 'GLfixed' has not been declared
frameworks/native/opengl/include/GLES/gl.h:704:112: error: 'GLfixed' has not been declared
frameworks/native/opengl/include/GLES/gl.h:705:57: error: variable or field 'glNormal3x' declared void
frameworks/native/opengl/include/GLES/gl.h:705:57: error: 'GLfixed' was not declared in this scope
frameworks/native/opengl/include/GLES/gl.h:705:69: error: 'GLfixed' was not declared in this scope
frameworks/native/opengl/include/GLES/gl.h:705:81: error: 'GLfixed' was not declared in this scope
frameworks/native/opengl/include/GLES/gl.h:707:55: error: variable or field 'glOrthox' declared void
frameworks/native/opengl/include/GLES/gl.h:707:55: error: 'GLfixed' was not declared in this scope
frameworks/native/opengl/include/GLES/gl.h:707:69: error: 'GLfixed' was not declared in this scope
frameworks/native/opengl/include/GLES/gl.h:707:84: error: 'GLfixed' was not declared in this scope
frameworks/native/opengl/include/GLES/gl.h:707:100: error: 'GLfixed' was not declared in this scope
frameworks/native/opengl/include/GLES/gl.h:707:113: error: 'GLfixed' was not declared in this scope
frameworks/native/opengl/include/GLES/gl.h:707:128: error: 'GLfixed' was not declared in this scope
frameworks/native/opengl/include/GLES/gl.h:709:78: error: 'GLfixed' has not been declared
frameworks/native/opengl/include/GLES/gl.h:710:85: error: 'GLfixed' does not name a type
frameworks/native/opengl/include/GLES/gl.h:711:59: error: variable or field 'glPointSizex' declared void
frameworks/native/opengl/include/GLES/gl.h:711:59: error: 'GLfixed' was not declared in this scope
frameworks/native/opengl/include/GLES/gl.h:712:63: error: variable or field 'glPolygonOffsetx' declared void
frameworks/native/opengl/include/GLES/gl.h:712:63: error: 'GLfixed' was not declared in this scope
frameworks/native/opengl/include/GLES/gl.h:712:79: error: 'GLfixed' was not declared in this scope
frameworks/native/opengl/include/GLES/gl.h:716:56: error: variable or field 'glRotatex' declared void
frameworks/native/opengl/include/GLES/gl.h:716:56: error: 'GLfixed' was not declared in this scope
frameworks/native/opengl/include/GLES/gl.h:716:71: error: 'GLfixed' was not declared in this scope
frameworks/native/opengl/include/GLES/gl.h:716:82: error: 'GLfixed' was not declared in this scope
frameworks/native/opengl/include/GLES/gl.h:716:93: error: 'GLfixed' was not declared in this scope
frameworks/native/opengl/include/GLES/gl.h:718:64: error: variable or field 'glSampleCoveragex' declared void
frameworks/native/opengl/include/GLES/gl.h:718:64: error: 'GLclampx' was not declared in this scope
frameworks/native/opengl/include/GLES/gl.h:718:90: error: expected primary-expression before 'invert'
frameworks/native/opengl/include/GLES/gl.h:719:55: error: variable or field 'glScalex' declared void
frameworks/native/opengl/include/GLES/gl.h:719:55: error: 'GLfixed' was not declared in this scope
frameworks/native/opengl/include/GLES/gl.h:719:66: error: 'GLfixed' was not declared in this scope
frameworks/native/opengl/include/GLES/gl.h:719:77: error: 'GLfixed' was not declared in this scope
frameworks/native/opengl/include/GLES/gl.h:727:85: error: 'GLfixed' has not been declared
frameworks/native/opengl/include/GLES/gl.h:729:92: error: 'GLfixed' does not name a type
frameworks/native/opengl/include/GLES/gl.h:732:91: error: 'GLfixed' has not been declared
frameworks/native/opengl/include/GLES/gl.h:734:98: error: 'GLfixed' does not name a type
frameworks/native/opengl/include/GLES/gl.h:736:59: error: variable or field 'glTranslatex' declared void
frameworks/native/opengl/include/GLES/gl.h:736:59: error: 'GLfixed' was not declared in this scope
frameworks/native/opengl/include/GLES/gl.h:736:70: error: 'GLfixed' was not declared in this scope
frameworks/native/opengl/include/GLES/gl.h:736:81: error: 'GLfixed' was not declared in this scope
make: *** [/home/neutrondev03/cm11/out/target/product/p715/obj/SHARED_LIBRARIES/gralloc.msm7x27a_intermediates/framebuffer.o] Error 1
make: *** Waiting for unfinished jobs....