[Android Q&A, Help & Troubleshooting] David_Vaz:
Hello, I trying build CyanogenMod 11 for Huawei Ascend G510 with this sources:

# CM-10.2 Dependencies

Dazzozo/android_device_huawei_u8951

Dazzozo/android_device_huawei_u8833

Dazzozo/android_device_huawei_msm7x27a-common

Dazzozo/proprietary_vendor_huawei

Dazzozo/huawei-kernel-3.4

# Legacy Display and Media

legaCyMod/android_hardware_qcom_display-legacy

legaCyMod/android_hardware_qcom_media-legacy

# WiFi

legaCyMod/android_hardware_atheros_wlan

Dazzozo/android_hardware_atheros_wifi_ath6kl-huawei

From these github's accounts:

https://github.com/legaCyMod

https://github.com/Dazzozo

And get this error / errors:

Install: /home/davidvaz/android/rom/CyanogenMod/out/target/product/u8951/system/bin/mksh
Install: /home/davidvaz/android/rom/CyanogenMod/out/target/product/u8951/system/bin/ntfs-3g
target Symbolic: ntfsfix (/home/davidvaz/android/rom/CyanogenMod/out/target/product/u8951/symbols/system/bin/ntfsfix)
target Executable: ping (/home/davidvaz/android/rom/CyanogenMod/out/target/product/u8951/obj/EXECUTABLES/ping_intermediates/LINKED/ping)
target SharedLib: librilutils (/home/davidvaz/android/rom/CyanogenMod/out/target/product/u8951/obj/SHARED_LIBRARIES/librilutils_intermediates/LINKED/librilutils.so)
target Executable: schedtest (/home/davidvaz/android/rom/CyanogenMod/out/target/product/u8951/obj/EXECUTABLES/schedtest_intermediates/LINKED/schedtest)
target Executable: sdcard (/home/davidvaz/android/rom/CyanogenMod/out/target/product/u8951/obj/EXECUTABLES/sdcard_intermediates/LINKED/sdcard)
target Executable: set_ext4_err_bit (/home/davidvaz/android/rom/CyanogenMod/out/target/product/u8951/obj/EXECUTABLES/set_ext4_err_bit_intermediates/LINKED/set_ext4_err_bit)
Symlink: /home/davidvaz/android/rom/CyanogenMod/out/target/product/u8951/system/bin/sh -> mksh
target Executable: showlease (/home/davidvaz/android/rom/CyanogenMod/out/target/product/u8951/obj/EXECUTABLES/showlease_intermediates/LINKED/showlease)
target Executable: tc (/home/davidvaz/android/rom/CyanogenMod/out/target/product/u8951/obj/EXECUTABLES/tc_intermediates/LINKED/tc)
target StaticExecutable: su (/home/davidvaz/android/rom/CyanogenMod/out/target/product/u8951/obj/EXECUTABLES/su_intermediates/LINKED/su)
target Jar: apache-xml (/home/davidvaz/android/rom/CyanogenMod/out/target/common/obj/JAVA_LIBRARIES/apache-xml_intermediates/javalib.jar)
Copying: /home/davidvaz/android/rom/CyanogenMod/out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/noproguard.classes.jar
target Dex: okhttp
target SharedLib: libstagefright_amrnb_common (/home/davidvaz/android/rom/CyanogenMod/out/target/product/u8951/obj/SHARED_LIBRARIES/libstagefright_amrnb_common_intermediates/LINKED/libstagefright_amrnb_common.so)
mkdir -p /home/davidvaz/android/rom/CyanogenMod/out/target/product/u8951/obj/STATIC_LIBRARIES/ui_gl_gl_gyp_intermediates; cp /home/davidvaz/android/rom/CyanogenMod/out/target/product/u8951/obj/GYP/shared_intermediates/ui/gl/gl_bindings_autogen_gl.cc /home/davidvaz/android/rom/CyanogenMod/out/target/product/u8951/obj/STATIC_LIBRARIES/ui_gl_gl_gyp_intermediates/gl_bindings_autogen_gl.cc
mkdir -p /home/davidvaz/android/rom/CyanogenMod/out/target/product/u8951/obj/STATIC_LIBRARIES/ui_gl_gl_gyp_intermediates; cp /home/davidvaz/android/rom/CyanogenMod/out/target/product/u8951/obj/GYP/shared_intermediates/ui/gl/gl_bindings_autogen_mock.cc /home/davidvaz/android/rom/CyanogenMod/out/target/product/u8951/obj/STATIC_LIBRARIES/ui_gl_gl_gyp_intermediates/gl_bindings_autogen_mock.cc
mkdir -p /home/davidvaz/android/rom/CyanogenMod/out/target/product/u8951/obj/STATIC_LIBRARIES/ui_gl_gl_gyp_intermediates; cp /home/davidvaz/android/rom/CyanogenMod/out/target/product/u8951/obj/GYP/shared_intermediates/ui/gl/gl_bindings_autogen_osmesa.cc /home/davidvaz/android/rom/CyanogenMod/out/target/product/u8951/obj/STATIC_LIBRARIES/ui_gl_gl_gyp_intermediates/gl_bindings_autogen_osmesa.cc
mkdir -p /home/davidvaz/android/rom/CyanogenMod/out/target/product/u8951/obj/STATIC_LIBRARIES/ui_gl_gl_gyp_intermediates; cp /home/davidvaz/android/rom/CyanogenMod/out/target/product/u8951/obj/GYP/shared_intermediates/ui/gl/gl_bindings_autogen_egl.cc /home/davidvaz/android/rom/CyanogenMod/out/target/product/u8951/obj/STATIC_LIBRARIES/ui_gl_gl_gyp_intermediates/gl_bindings_autogen_egl.cc
target thumb C++: v8_tools_gyp_v8_snapshot_gyp <= /home/davidvaz/android/rom/CyanogenMod/out/target/product/u8951/obj/STATIC_LIBRARIES/v8_tools_gyp_v8_snapshot_gyp_intermediates/libraries.cc
target thumb C++: v8_tools_gyp_v8_snapshot_gyp <= /home/davidvaz/android/rom/CyanogenMod/out/target/product/u8951/obj/STATIC_LIBRARIES/v8_tools_gyp_v8_snapshot_gyp_intermediates/experimental-libraries.cc
target thumb C++: v8_tools_gyp_v8_snapshot_gyp <= /home/davidvaz/android/rom/CyanogenMod/out/target/product/u8951/obj/STATIC_LIBRARIES/v8_tools_gyp_v8_snapshot_gyp_intermediates/snapshot.cc
target thumb C++: v8_tools_gyp_v8_snapshot_gyp <= /home/davidvaz/android/rom/CyanogenMod/out/target/product/u8951/obj/STATIC_LIBRARIES/v8_tools_gyp_v8_snapshot_gyp_intermediates/i18n-libraries.cc
target thumb C++: audio.primary.msm7x27a <= device/huawei/u8833/audio/AudioHardware_cad.cpp
In file included from device/huawei/u8833/audio/AudioHardware_cad.cpp:39:0:
device/huawei/u8833/audio/AudioHardware.h:71:0: warning: "SRS_DISABLE" redefined [enabled by default]
In file included from device/huawei/u8833/audio/AudioHardware.h:32:0,
from device/huawei/u8833/audio/AudioHardware_cad.cpp:39:
device/huawei/msm7x27a-common/include/linux/msm_audio.h:140:0: note: this is the location of the previous definition
In file included from device/huawei/u8833/audio/AudioHardware_cad.cpp:39:0:
device/huawei/u8833/audio/AudioHardware.h: In constructor 'android_audio_legacy::AudioHardware::AudioHardware()':
device/huawei/u8833/audio/AudioHardware.h:622:25: warning: 'android_audio_legacy::AudioHardware::mTtyMode' will be initialized after [-Wreorder]
device/huawei/u8833/audio/AudioHardware.h:603:37: warning: 'android_audio_legacy::AudioHardware::AudioStreamOutMSM72xx* android_audio_legacy::AudioHardware::mOutput' [-Wreorder]
device/huawei/u8833/audio/AudioHardware_cad.cpp:154:1: warning: when initialized here [-Wreorder]
In file included from device/huawei/u8833/audio/AudioHardware_cad.cpp:39:0:
device/huawei/u8833/audio/AudioHardware.h:603:37: warning: 'android_audio_legacy::AudioHardware::mOutput' will be initialized after [-Wreorder]
device/huawei/u8833/audio/AudioHardware.h:601:25: warning: 'bool android_audio_legacy::AudioHardware::mBluetoothVGS' [-Wreorder]
device/huawei/u8833/audio/AudioHardware_cad.cpp:154:1: warning: when initialized here [-Wreorder]
In file included from device/huawei/u8833/audio/AudioHardware_cad.cpp:39:0:
device/huawei/u8833/audio/AudioHardware.h:626:18: warning: 'android_audio_legacy::AudioHardware::mVoipOutActive' will be initialized after [-Wreorder]
device/huawei/u8833/audio/AudioHardware.h:605:36: warning: 'android_audio_legacy::AudioHardware::AudioStreamOutDirect* android_audio_legacy::AudioHardware::mDirectOutput' [-Wreorder]
device/huawei/u8833/audio/AudioHardware_cad.cpp:154:1: warning: when initialized here [-Wreorder]
device/huawei/u8833/audio/AudioHardware_cad.cpp: In member function 'virtual android::status_t android_audio_legacy::AudioHardware::setParameters(const android::String8&)':
device/huawei/u8833/audio/AudioHardware_cad.cpp:618:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/huawei/u8833/audio/AudioHardware_cad.cpp: In member function 'uint32_t android_audio_legacy::AudioHardware::getMvsMode(int)':
device/huawei/u8833/audio/AudioHardware_cad.cpp:645:10: error: 'EVRC' is not a member of 'android_audio_legacy::AudioSystem'
device/huawei/u8833/audio/AudioHardware_cad.cpp:648:10: error: 'EVRCB' is not a member of 'android_audio_legacy::AudioSystem'
device/huawei/u8833/audio/AudioHardware_cad.cpp:651:10: error: 'EVRCWB' is not a member of 'android_audio_legacy::AudioSystem'
device/huawei/u8833/audio/AudioHardware_cad.cpp: In member function 'virtual size_t android_audio_legacy::AudioHardware::getInputBufferSize(uint32_t, int, int)':
device/huawei/u8833/audio/AudioHardware_cad.cpp:872:21: error: 'EVRC' is not a member of 'android_audio_legacy::AudioSystem'
device/huawei/u8833/audio/AudioHardware_cad.cpp:873:21: error: 'EVRCB' is not a member of 'android_audio_legacy::AudioSystem'
device/huawei/u8833/audio/AudioHardware_cad.cpp:874:21: error: 'EVRCWB' is not a member of 'android_audio_legacy::AudioSystem'
device/huawei/u8833/audio/AudioHardware_cad.cpp:875:21: error: 'QCELP' is not a member of 'android_audio_legacy::AudioSystem'
device/huawei/u8833/audio/AudioHardware_cad.cpp:887:24: error: 'EVRC' is not a member of 'android_audio_legacy::AudioSystem'
device/huawei/u8833/audio/AudioHardware_cad.cpp:889:24: error: 'QCELP' is not a member of 'android_audio_legacy::AudioSystem'
device/huawei/u8833/audio/AudioHardware_cad.cpp: In member function 'virtual android::status_t android_audio_legacy::AudioHardware::setVoiceVolume(float)':
device/huawei/u8833/audio/AudioHardware_cad.cpp:956:53: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/huawei/u8833/audio/AudioHardware_cad.cpp:956:98: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/huawei/u8833/audio/AudioHardware_cad.cpp: In function 'android::status_t android_audio_legacy::do_route_audio_rpc(uint32_t, bool, bool, int)':
device/huawei/u8833/audio/AudioHardware_cad.cpp:1116:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/huawei/u8833/audio/AudioHardware_cad.cpp:1116:65: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/huawei/u8833/audio/AudioHardware_cad.cpp: In member function 'android::status_t android_audio_legacy::AudioHardware::doRouting(android_audio_legacy::AudioHardware::AudioStreamInMSM72xx*, int)':
device/huawei/u8833/audio/AudioHardware_cad.cpp:1336:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/huawei/u8833/audio/AudioHardware_cad.cpp:1339:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
device/huawei/u8833/audio/AudioHardware_cad.cpp: In member function 'android::status_t android_audio_legacy::AudioHardware::AudioStreamInVoip::set(android_audio_legacy::AudioHardware*, uint32_t, int*, uint32_t*, uint32_t*, android_audio_legacy::AudioSystem::audio_in_acoustics)':
device/huawei/u8833/audio/AudioHardware_cad.cpp:1544:63: warning: comparison is always false due to limited range of data type [-Wtype-limits]
device/huawei/u8833/audio/AudioHardware_cad.cpp: In member function 'virtual ssize_t android_audio_legacy::AudioHardware::AudioStreamInVoip::read(void*, ssize_t)':
device/huawei/u8833/audio/AudioHardware_cad.cpp:1716:34: warning: pointer of type 'void *' used in arithmetic [-Wpointer-arith]
In file included from device/huawei/u8833/audio/AudioHardware_cad.cpp:39:0:
device/huawei/u8833/audio/AudioHardware.h: In constructor 'android_audio_legacy::AudioHardware::AudioStreamOutDirect::AudioStreamOutDirect()':
device/huawei/u8833/audio/AudioHardware.h:345:29: warning: 'android_audio_legacy::AudioHardware::AudioStreamOutDirect::mStartCount' will be initialized after [-Wreorder]
device/huawei/u8833/audio/AudioHardware.h:344:29: warning: 'int android_audio_legacy::AudioHardware::AudioStreamOutDirect::mRetryCount' [-Wreorder]
device/huawei/u8833/audio/AudioHardware_cad.cpp:2083:1: warning: when initialized here [-Wreorder]
device/huawei/u8833/audio/AudioHardware_cad.cpp: In member function 'android::status_t android_audio_legacy::AudioHardware::AudioStreamOutDirect::set(android_audio_legacy::AudioHardware*, uint32_t, int*, uint32_t*, uint32_t*)':
device/huawei/u8833/audio/AudioHardware_cad.cpp:2099:63: warning: comparison is always false due to limited range of data type [-Wtype-limits]
device/huawei/u8833/audio/AudioHardware_cad.cpp: In member function 'virtual ssize_t android_audio_legacy::AudioHardware::AudioStreamOutDirect::write(const void*, size_t)':
device/huawei/u8833/audio/AudioHardware_cad.cpp:2247:34: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
device/huawei/u8833/audio/AudioHardware_cad.cpp: In member function 'android::status_t android_audio_legacy::AudioHardware::AudioStreamInMSM72xx::set(android_audio_legacy::AudioHardware*, uint32_t, int*, uint32_t*, uint32_t*, android_audio_legacy::AudioSystem::audio_in_acoustics)':
[B]device/huawei/u8833/audio/AudioHardware_cad.cpp:2403:23: error: 'EVRC' is not a member of 'android_audio_legacy::AudioSystem'
device/huawei/u8833/audio/AudioHardware_cad.cpp:2404:23: error: 'QCELP' is not a member of 'android_audio_legacy::AudioSystem'
device/huawei/u8833/audio/AudioHardware_cad.cpp:2496:27: error: 'EVRC' is not a member of 'android_audio_legacy::AudioSystem'
device/huawei/u8833/audio/AudioHardware_cad.cpp:2497:27: error: 'QCELP' is not a member of 'android_audio_legacy::AudioSystem'
device/huawei/u8833/audio/AudioHardware_cad.cpp:2559:14: error: 'EVRC' is not a member of 'android_audio_legacy::AudioSystem'
device/huawei/u8833/audio/AudioHardware_cad.cpp:2566:21: error: 'EVRC' is not a member of 'android_audio_legacy::AudioSystem'
device/huawei/u8833/audio/AudioHardware_cad.cpp:2571:14: error: 'QCELP' is not a member of 'android_audio_legacy::AudioSystem'
device/huawei/u8833/audio/AudioHardware_cad.cpp:2578:21: error: 'QCELP' is not a member of 'android_audio_legacy::AudioSystem'[/B]
device/huawei/u8833/audio/AudioHardware_cad.cpp: In constructor 'android_audio_legacy::AudioHardware::AudioSessionOutLPA::AudioSessionOutLPA(android_audio_legacy::AudioHardware*, uint32_t, int, uint32_t, uint32_t, int, android::status_t*)':
device/huawei/u8833/audio/AudioHardware_cad.cpp:2704:27: warning: converting to non-pointer type 'pthread_t {aka long int}' from NULL [-Wconversion-null]
device/huawei/u8833/audio/AudioHardware_cad.cpp: In member function 'virtual size_t android_audio_legacy::AudioHardware::getInputBufferSize(uint32_t, int, int)':
[B]device/huawei/u8833/audio/AudioHardware_cad.cpp:901:1: error: control reaches end of non-void function [-Werror=return-type][/B]
[B]cc1plus: some warnings being treated as errors
make: *** [/home/davidvaz/android/rom/CyanogenMod/out/target/product/u8951/obj/SHARED_LIBRARIES/audio.primary.msm7x27a_intermediates/AudioHardware_cad.o] Error 1
make: *** Waiting for unfinished jobs....[/B]
davidvaz@DavidVaz ~/android/rom/CyanogenMod $

Any help to me?? Thanks :good::good: