[Android Q&A, Help & Troubleshooting] TheWhisp:
HI, I'm trying to compile CM9, but I always get this error:

target thumb C: libmm-omxcore <= vendor/qcom/opensource/omx/mm-core/omxcore/src/common/qc_omx_core.c
target thumb C: libmm-omxcore <= vendor/qcom/opensource/omx/mm-core/omxcore/src/7627/qc_registry_table.c
In file included from vendor/qcom/opensource/omx/mm-core/omxcore/inc/qc_omx_common.h:43,
from vendor/qcom/opensource/omx/mm-core/omxcore/src/common/qc_omx_core.h:39,
from vendor/qcom/opensource/omx/mm-core/omxcore/src/common/qc_omx_core.c:48:
vendor/qcom/opensource/omx/mm-core/omxcore/inc/OMX_QCOMExtns.h:846: warning: useless storage class specifier in empty declaration
vendor/qcom/opensource/omx/mm-core/omxcore/src/common/qc_omx_core.c: In function 'OMX_FreeHandle':
vendor/qcom/opensource/omx/mm-core/omxcore/src/common/qc_omx_core.c:511: warning: comparison between signed and unsigned integer expressions
In file included from vendor/qcom/opensource/omx/mm-core/omxcore/inc/qc_omx_common.h:43,
from vendor/qcom/opensource/omx/mm-core/omxcore/src/common/qc_omx_core.h:39,
from vendor/qcom/opensource/omx/mm-core/omxcore/src/7627/qc_registry_table.c:36:
vendor/qcom/opensource/omx/mm-core/omxcore/inc/OMX_QCOMExtns.h:846: warning: useless storage class specifier in empty declaration
target thumb C++: liboverlay <= hardware/qcom/display/liboverlay/overlayLib.cpp
target thumb C++: liboverlay <= hardware/qcom/display/liboverlay/overlayLibUI.cpp
target thumb C: libpagemap <= system/extras/libpagemap/pm_kernel.c
hardware/qcom/display/liboverlay/overlayLib.cpp:129:1: warning: "LOG_TAG" redefined
In file included from hardware/qcom/display/liboverlay/overlayLib.h:21,
from hardware/qcom/display/liboverlay/overlayLib.cpp:18:
system/core/include/cutils/log.h:68:1: warning: this is the location of the previous definition
hardware/qcom/display/liboverlay/overlayLibUI.cpp:20:1: warning: "LOG_TAG" redefined
In file included from hardware/qcom/display/liboverlay/overlayLib.h:21,
from hardware/qcom/display/liboverlay/overlayLibUI.h:23,
from hardware/qcom/display/liboverlay/overlayLibUI.cpp:18:
system/core/include/cutils/log.h:68:1: warning: this is the location of the previous definition
In file included from hardware/qcom/display/liboverlay/overlayLibUI.h:23,
from hardware/qcom/display/liboverlay/overlayLibUI.cpp:18:
hardware/qcom/display/liboverlay/overlayLib.h: In constructor 'overlay::FrameBufferInfo::FrameBufferInfo()':
hardware/qcom/display/liboverlay/overlayLib.h:182: error: 'MDP_BORDERFILL_SUPPORTED' was not declared in this scope
In file included from hardware/qcom/display/liboverlay/overlayLib.cpp:18:
hardware/qcom/display/liboverlay/overlayLib.h: In constructor 'overlay::FrameBufferInfo::FrameBufferInfo()':
hardware/qcom/display/liboverlay/overlayLib.h:182: error: 'MDP_BORDERFILL_SUPPORTED' was not declared in this scope
hardware/qcom/display/liboverlay/overlayLibUI.h: In constructor 'overlay::OverlayUI::OverlayUI()':
hardware/qcom/display/liboverlay/overlayLibUI.h:101: warning: 'overlay::OverlayUI::mFBNum' will be initialized after
hardware/qcom/display/liboverlay/overlayLibUI.h:99: warning: 'int overlay::OverlayUI::mZorder'
hardware/qcom/display/liboverlay/overlayLibUI.cpp:217: warning: when initialized here
hardware/qcom/display/liboverlay/overlayLibUI.cpp: In member function 'void overlay::OverlayUI::setDisplayParams(int, bool, bool, int, bool)':
hardware/qcom/display/liboverlay/overlayLibUI.cpp:269: error: 'MDP_BACKEND_COMPOSITION' was not declared in this scope
hardware/qcom/display/liboverlay/overlayLib.cpp: In function 'int overlay::initOverlay()':
hardware/qcom/display/liboverlay/overlayLib.cpp:377: error: 'msmfb_mixer_info_req' was not declared in this scope
hardware/qcom/display/liboverlay/overlayLib.cpp:377: error: expected ';' before 'req'
hardware/qcom/display/liboverlay/overlayLib.cpp:378: error: 'mdp_mixer_info' was not declared in this scope
hardware/qcom/display/liboverlay/overlayLib.cpp:378: error: 'minfo' was not declared in this scope
hardware/qcom/display/liboverlay/overlayLib.cpp:390: error: 'req' was not declared in this scope
hardware/qcom/display/liboverlay/overlayLib.cpp:391: error: 'MSMFB_MIXER_INFO' was not declared in this scope
hardware/qcom/display/liboverlay/overlayLibUI.cpp: In member function 'overlay::status_t overlay::OverlayUI::closeOVSession()':
hardware/qcom/display/liboverlay/overlayLibUI.cpp:430: warning: suggest parentheses around assignment used as truth value
make: *** [out/target/product/tass/obj/SHARED_LIBRARIES/liboverlay_intermediates/overlayLibUI.o] Error 1
make: *** Waiting for unfinished jobs....
hardware/qcom/display/liboverlay/overlayLib.cpp: In member function 'void overlay::OverlayControlChannel::setInformationFromFlags(int, mdp_overlay&)':
hardware/qcom/display/liboverlay/overlayLib.cpp:1296: error: 'MDP_SECURE_OVERLAY_SESSION' was not declared in this scope
hardware/qcom/display/liboverlay/overlayLib.cpp:1298: error: 'MDP_SECURE_OVERLAY_SESSION' was not declared in this scope
hardware/qcom/display/liboverlay/overlayLib.cpp:1301: error: 'MDP_SHARPENING' was not declared in this scope
hardware/qcom/display/liboverlay/overlayLib.cpp: In member function 'bool overlay::OverlayControlChannel::closeControlChannel()':
hardware/qcom/display/liboverlay/overlayLib.cpp:1497: warning: comparison between signed and unsigned integer expressions
hardware/qcom/display/liboverlay/overlayLib.cpp: In member function 'bool overlay::OverlayControlChannel::setPosition(int, int, uint32_t, uint32_t)':
hardware/qcom/display/liboverlay/overlayLib.cpp:1532: warning: comparison between signed and unsigned integer expressions
hardware/qcom/display/liboverlay/overlayLib.cpp:1533: warning: comparison between signed and unsigned integer expressions
hardware/qcom/display/liboverlay/overlayLib.cpp:1539: warning: comparison between signed and unsigned integer expressions
hardware/qcom/display/liboverlay/overlayLib.cpp:1539: warning: comparison between signed and unsigned integer expressions
hardware/qcom/display/liboverlay/overlayLib.cpp: In member function 'bool overlay::OverlayControlChannel::setTransform(int, bool)':
hardware/qcom/display/liboverlay/overlayLib.cpp:1611: warning: comparison between signed and unsigned integer expressions
hardware/qcom/display/liboverlay/overlayLib.cpp: In member function 'bool overlay::OverlayControlChannel::setVisualParam(int8_t, float)':
hardware/qcom/display/liboverlay/overlayLib.cpp:2250: error: 'MDP_BLOCK_MAX' was not declared in this scope
hardware/qcom/display/liboverlay/overlayLib.cpp:2256: error: 'MDP_BLOCK_VG_1' was not declared in this scope
hardware/qcom/display/liboverlay/overlayLib.cpp:2260: error: 'MDP_BLOCK_VG_2' was not declared in this scope
hardware/qcom/display/liboverlay/overlayLib.cpp:2284: error: 'MDP_SHARPENING' was not declared in this scope
hardware/qcom/display/liboverlay/overlayLib.cpp:2292: error: 'MDP_SHARPENING' was not declared in this scope
make: *** [out/target/product/tass/obj/SHARED_LIBRARIES/liboverlay_intermediates/overlayLib.o] Error 1

What could be wrong?