Error while building any AOSP ROM on MAC - General Questions and Answers

I'm getting this error when trying to build any ROM on my MAC. I haven't even managed to build a single ROM due to this issue.
The code below is for the pixel experience ROM based on android 10 and the device I'm building for is the Xiaomi Redmi Note 3(kenzo).
All ROMs give me the exact same error.
Please help me guys. Really wanna learn...
The error:
Code:
PANKAJs-iMac:firstrom pankajjaiswal$ lunch aosp_kenzo-userdebug
usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
Trying dependencies-only mode on a non-existing device tree?
usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
CUSTOM_VERSION=PixelExperience_kenzo-10.0-20200224-1205-UNOFFICIAL
TARGET_PRODUCT=aosp_kenzo
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=cortex-a53.a57
HOST_ARCH=x86_64
HOST_OS=darwin
HOST_OS_EXTRA=Darwin-17.7.0-x86_64-10.13.6
HOST_BUILD_TYPE=release
BUILD_ID=QQ1B.200205.002
OUT_DIR=/Volumes/android/firstrom/out
PRODUCT_SOONG_NAMESPACES= hardware/qcom-caf/msm8952 frameworks/av/camera/cameraserver frameworks/av/services/camera/libcameraservice
============================================
PANKAJs-iMac:firstrom pankajjaiswal$ mka bacon -j4
usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
CUSTOM_VERSION=PixelExperience_kenzo-10.0-20200224-1206-UNOFFICIAL
TARGET_PRODUCT=aosp_kenzo
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=cortex-a53.a57
HOST_ARCH=x86_64
HOST_OS=darwin
HOST_OS_EXTRA=Darwin-17.7.0-x86_64-10.13.6
HOST_BUILD_TYPE=release
BUILD_ID=QQ1B.200205.002
OUT_DIR=/Volumes/android/firstrom/out
PRODUCT_SOONG_NAMESPACES= hardware/qcom-caf/msm8952 frameworks/av/camera/cameraserver frameworks/av/services/camera/libcameraservice
============================================
usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
[100% 140/140] initializing build system ...
usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
[ 24% 142/584] including art/Android.mk ...
art/build/Android.common.mk:51: warning: unsupported HOST_ARCH=x86_64
[ 59% 348/584] including hardware/qcom-caf/msm8952/Android.mk ...
hardware/qcom-caf/msm8952/media/Android.mk:4: warning: target list is : msm8952
[100% 584/584] writing build rules ...
build/make/core/base_rules.mk:495: warning: overriding commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/etc/init/[email protected]'
build/make/core/base_rules.mk:495: warning: ignoring old commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/etc/init/[email protected]'
build/make/core/base_rules.mk:495: warning: overriding commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/etc/init/[email protected]'
build/make/core/base_rules.mk:495: warning: ignoring old commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/etc/init/[email protected]'
build/make/core/Makefile:28: warning: overriding commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/bin/wcnss_service'
build/make/core/base_rules.mk:480: warning: ignoring old commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/bin/wcnss_service'
build/make/core/Makefile:28: warning: overriding commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/bin/hw/rild'
build/make/core/base_rules.mk:480: warning: ignoring old commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/bin/hw/rild'
build/make/core/Makefile:28: warning: overriding commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/lib/[email protected]'
build/make/core/base_rules.mk:480: warning: ignoring old commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/lib/[email protected]'
build/make/core/Makefile:28: warning: overriding commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/lib/[email protected]'
build/make/core/base_rules.mk:480: warning: ignoring old commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/lib/[email protected]'
build/make/core/Makefile:28: warning: overriding commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/lib/[email protected]'
build/make/core/base_rules.mk:480: warning: ignoring old commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/lib/[email protected]'
build/make/core/Makefile:28: warning: overriding commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/lib/[email protected]'
build/make/core/base_rules.mk:480: warning: ignoring old commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/lib/[email protected]'
build/make/core/Makefile:28: warning: overriding commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/lib/libril.so'
build/make/core/base_rules.mk:480: warning: ignoring old commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/lib/libril.so'
build/make/core/Makefile:28: warning: overriding commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/lib64/libril.so'
build/make/core/base_rules.mk:480: warning: ignoring old commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/lib64/libril.so'
[ 2% 1980/80076] target C++: libgps.utils <= device/xiaomi/msm8956-common/gps
device/xiaomi/msm8956-common/gps/utils/loc_cfg.cpp:384:11: warning: unused variable 'lasts' [-Wunused-variable]
char *lasts;
^
device/xiaomi/msm8956-common/gps/utils/loc_cfg.cpp:385:22: warning: unused variable 'config_value' [-Wunused-variable]
loc_param_v_type config_value;
^
device/xiaomi/msm8956-common/gps/utils/loc_cfg.cpp:386:14: warning: unused variable 'i' [-Wunused-variable]
uint32_t i;
^
3 warnings generated.
[ 2% 1986/80076] target C++: libloc_core <= device/xiaomi/msm8956-common/gps/
device/xiaomi/msm8956-common/gps/core/data-items/DataItemsFactoryProxy.cpp:71:79: warning: format specifies type 'unsigned int' but the argument has type 'loc_core::get_concrete_data_item_fn *' (aka 'loc_core::IDataItemCore *(*)(e_DataItemId)') [-Wformat]
LOC_LOGD("Loaded function %s : %x",DATA_ITEMS_GET_CONCRETE_DI,getConcreteDIFunc);
~~ ^~~~~~~~~~~~~~~~~
device/xiaomi/msm8956-common/gps/utils/log_util.h:110:43: note: expanded from macro 'LOC_LOGD'
#define LOC_LOGD(...) IF_LOC_LOGD { ALOGD(__VA_ARGS__); }
^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:226:52: note: expanded from macro 'ALOGD'
#define ALOGD(...) ((void)ALOG(LOG_DEBUG, LOG_TAG, __VA_ARGS__))
^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:331:67: note: expanded from macro 'ALOG'
#define ALOG(priority, tag, ...) LOG_PRI(ANDROID_##priority, tag, __VA_ARGS__)
^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:94:69: note: expanded from macro 'LOG_PRI'
#define LOG_PRI(priority, tag, ...) android_printLog(priority, tag, __VA_ARGS__)
^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:85:34: note: expanded from macro 'android_printLog'
__android_log_print(prio, tag, __VA_ARGS__)
^~~~~~~~~~~
1 warning generated.
[ 2% 1987/80076] target C++: libloc_core <= device/xiaomi/msm8956-common/gps/
device/xiaomi/msm8956-common/gps/core/loc_core_log.cpp:105:34: warning: variable 'loc_eng_aiding_data_bits' is not needed and will not be emitted [-Wunneeded-internal-declaration]
static const loc_name_val_s_type loc_eng_aiding_data_bits[] =
^
device/xiaomi/msm8956-common/gps/core/loc_core_log.cpp:121:18: warning: unused variable 'loc_eng_aiding_data_bit_num' [-Wunused-const-variable]
static const int loc_eng_aiding_data_bit_num = sizeof(loc_eng_aiding_data_bits) / sizeof(loc_name_val_s_type);
^
2 warnings generated.
[ 2% 1991/80076] target C++: libgps.utils <= device/xiaomi/msm8956-common/gps
device/xiaomi/msm8956-common/gps/utils/loc_target.cpp:216:9: warning: unused variable 'ret' [-Wunused-variable]
int ret = 0;
^
1 warning generated.
[ 2% 2008/80076] target C++: libgps.utils <= device/xiaomi/msm8956-common/gps
device/xiaomi/msm8956-common/gps/utils/loc_nmea.cpp:985:11: warning: unused variable 'pMarker' [-Wunused-variable]
char* pMarker = sentence;
^
device/xiaomi/msm8956-common/gps/utils/loc_nmea.cpp:986:9: warning: unused variable 'lengthRemaining' [-Wunused-variable]
int lengthRemaining = sizeof(sentence);
^
device/xiaomi/msm8956-common/gps/utils/loc_nmea.cpp:987:9: warning: unused variable 'length' [-Wunused-variable]
int length = 0;
^
device/xiaomi/msm8956-common/gps/utils/loc_nmea.cpp:989:9: warning: unused variable 'sentenceCount' [-Wunused-variable]
int sentenceCount = 0;
^
device/xiaomi/msm8956-common/gps/utils/loc_nmea.cpp:990:9: warning: unused variable 'sentenceNumber' [-Wunused-variable]
int sentenceNumber = 1;
^
5 warnings generated.
[ 2% 2024/80076] target C++: libloc_core <= device/xiaomi/msm8956-common/gps/
device/xiaomi/msm8956-common/gps/core/SystemStatus.cpp:1423:37: warning: 'reinterpret_cast' to class 'loc_core::SystemStatusNetworkInfo *' from its base at non-zero offset 'loc_core::IDataItemCore *' behaves differently from 'static_cast' [-Wreinterpret-base-class]
SystemStatusNetworkInfo* data = reinterpret_cast<SystemStatusNetworkInfo*>(dataitem);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
device/xiaomi/msm8956-common/gps/core/SystemStatus.cpp:1423:37: note: use 'static_cast' to adjust the pointer correctly while downcasting
SystemStatusNetworkInfo* data = reinterpret_cast<SystemStatusNetworkInfo*>(dataitem);
^~~~~~~~~~~~~~~~
static_cast
device/xiaomi/msm8956-common/gps/core/SystemStatus.cpp:1570:12: warning: 26 enumeration values not handled in switch: 'INVALID_DATA_ITEM_ID', 'AIRPLANEMODE_DATA_ITEM_ID', 'ENH_DATA_ITEM_ID'... [-Wswitch]
switch(dataitem->getId())
^
2 warnings generated.
[ 2% 2034/80076] target C++: libgnss <= device/xiaomi/msm8956-common/gps/gnss
device/xiaomi/msm8956-common/gps/gnss/XtraSystemStatusObserver.cpp:205:33: warning: 'reinterpret_cast' to class 'loc_core::SystemStatusNetworkInfo *' from its base at non-zero offset 'loc_core::IDataItemCore *' behaves differently from 'static_cast' [-Wreinterpret-base-class]
reinterpret_cast<SystemStatusNetworkInfo*>(each);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
device/xiaomi/msm8956-common/gps/gnss/XtraSystemStatusObserver.cpp:205:33: note: use 'static_cast' to adjust the pointer correctly while downcasting
reinterpret_cast<SystemStatusNetworkInfo*>(each);
^~~~~~~~~~~~~~~~
static_cast
device/xiaomi/msm8956-common/gps/gnss/XtraSystemStatusObserver.cpp:213:48: warning: 'reinterpret_cast' to class 'loc_core::SystemStatusTac *' from its base at non-zero offset 'loc_core::IDataItemCore *' behaves differently from 'static_cast' [-Wreinterpret-base-class]
SystemStatusTac* tac = reinterpret_cast<SystemStatusTac*>(each);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
device/xiaomi/msm8956-common/gps/gnss/XtraSystemStatusObserver.cpp:213:48: note: use 'static_cast' to adjust the pointer correctly while downcasting
SystemStatusTac* tac = reinterpret_cast<SystemStatusTac*>(each);
^~~~~~~~~~~~~~~~
static_cast
device/xiaomi/msm8956-common/gps/gnss/XtraSystemStatusObserver.cpp:220:54: warning: 'reinterpret_cast' to class 'loc_core::SystemStatusMccMnc *' from its base at non-zero offset 'loc_core::IDataItemCore *' behaves differently from 'static_cast' [-Wreinterpret-base-class]
SystemStatusMccMnc* mccmnc = reinterpret_cast<SystemStatusMccMnc*>(each);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
device/xiaomi/msm8956-common/gps/gnss/XtraSystemStatusObserver.cpp:220:54: note: use 'static_cast' to adjust the pointer correctly while downcasting
SystemStatusMccMnc* mccmnc = reinterpret_cast<SystemStatusMccMnc*>(each);
^~~~~~~~~~~~~~~~
static_cast
3 warnings generated.
[ 2% 2036/80076] target C++: liblocation_api <= device/xiaomi/msm8956-common/
device/xiaomi/msm8956-common/gps/location/LocationAPIClientBase.cpp:156:18: warning: unused variable 'session' [-Wunused-variable]
uint32_t session = 0;
^
1 warning generated.
[ 3% 2406/80076] target C: libwpa_client <= external/wpa_supplicant_8/wpa_sup
external/wpa_supplicant_8/wpa_supplicant/src/common/wpa_ctrl.c:291:9: warning: 'readdir_r' is deprecated: readdir_r is deprecated; use readdir instead [-Wdeprecated-declarations]
while (readdir_r(dir, &entry, &result) == 0 && result != NULL) {
^
bionic/libc/include/dirent.h:83:92: note: 'readdir_r' has been explicitly marked deprecated here
int readdir_r(DIR* __dir, struct dirent* __entry, struct dirent** __buffer) __attribute__((__deprecated__("readdir_r is deprecated; use readdir instead")));
^
1 warning generated.
[ 3% 2447/80076] Building Kernel Config
FAILED: /Volumes/android/firstrom/out/target/product/kenzo/obj/KERNEL_OBJ/.config
/bin/bash -c "(PATH=/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-/bin:\$PATH PATH=/Volumes/android/firstrom/prebuilts/tools-custom/darwin-x86/bin:\$PATH LD_LIBRARY_PATH=/Volumes/android/firstrom/prebuilts/tools-custom/darwin-x86/lib:\$LD_LIBRARY_PATH PERL5LIB=/Volumes/android/firstrom/prebuilts/tools-custom/common/perl-base /Volumes/android/firstrom/prebuilts/build-tools/darwin-x86/bin/make -j CFLAGS_MODULE=\"-fno-pic\" HOSTCFLAGS=\"-I/Volumes/android/firstrom/external/elfutils/libelf -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib\" HOSTCC=/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/host/i686-apple-darwin-4.2.1/bin/i686-apple-darwin11-gcc HOSTCXX=/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/host/i686-apple-darwin-4.2.1/bin/i686-apple-darwin11-g++ -C kernel/xiaomi/msm8956 O=/Volumes/android/firstrom/out/target/product/kenzo/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"/usr/local/bin/ccache /Volumes/android/firstrom/prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= lineageos_kenzo_defconfig ) && (if [ ! -z \"\" ]; then echo \"Overriding kernel config with ''\"; echo >> /Volumes/android/firstrom/out/target/product/kenzo/obj/KERNEL_OBJ/.config; PATH=/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-/bin:\$PATH PATH=/Volumes/android/firstrom/prebuilts/tools-custom/darwin-x86/bin:\$PATH LD_LIBRARY_PATH=/Volumes/android/firstrom/prebuilts/tools-custom/darwin-x86/lib:\$LD_LIBRARY_PATH PERL5LIB=/Volumes/android/firstrom/prebuilts/tools-custom/common/perl-base /Volumes/android/firstrom/prebuilts/build-tools/darwin-x86/bin/make -j CFLAGS_MODULE=\"-fno-pic\" HOSTCFLAGS=\"-I/Volumes/android/firstrom/external/elfutils/libelf -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib\" HOSTCC=/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/host/i686-apple-darwin-4.2.1/bin/i686-apple-darwin11-gcc HOSTCXX=/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/host/i686-apple-darwin-4.2.1/bin/i686-apple-darwin11-g++ -C kernel/xiaomi/msm8956 O=/Volumes/android/firstrom/out/target/product/kenzo/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"/usr/local/bin/ccache /Volumes/android/firstrom/prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" oldconfig; fi ) && (PATH=/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-/bin:\$PATH PATH=/Volumes/android/firstrom/prebuilts/tools-custom/darwin-x86/bin:\$PATH LD_LIBRARY_PATH=/Volumes/android/firstrom/prebuilts/tools-custom/darwin-x86/lib:\$LD_LIBRARY_PATH PERL5LIB=/Volumes/android/firstrom/prebuilts/tools-custom/common/perl-base /Volumes/android/firstrom/prebuilts/build-tools/darwin-x86/bin/make -j CFLAGS_MODULE=\"-fno-pic\" HOSTCFLAGS=\"-I/Volumes/android/firstrom/external/elfutils/libelf -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib\" HOSTCC=/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/host/i686-apple-darwin-4.2.1/bin/i686-apple-darwin11-gcc HOSTCXX=/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/host/i686-apple-darwin-4.2.1/bin/i686-apple-darwin11-g++ -C kernel/xiaomi/msm8956 O=/Volumes/android/firstrom/out/target/product/kenzo/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"/usr/local/bin/ccache /Volumes/android/firstrom/prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" savedefconfig ) && (if [ ! -z \"\" ]; then echo \"Using additional config ''\"; kernel/xiaomi/msm8956/scripts/kconfig/merge_config.sh -m -O /Volumes/android/firstrom/out/target/product/kenzo/obj/KERNEL_OBJ /Volumes/android/firstrom/out/target/product/kenzo/obj/KERNEL_OBJ/.config kernel/xiaomi/msm8956/arch/arm64/configs/; PATH=/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-/bin:\$PATH PATH=/Volumes/android/firstrom/prebuilts/tools-custom/darwin-x86/bin:\$PATH LD_LIBRARY_PATH=/Volumes/android/firstrom/prebuilts/tools-custom/darwin-x86/lib:\$LD_LIBRARY_PATH PERL5LIB=/Volumes/android/firstrom/prebuilts/tools-custom/common/perl-base /Volumes/android/firstrom/prebuilts/build-tools/darwin-x86/bin/make -j CFLAGS_MODULE=\"-fno-pic\" HOSTCFLAGS=\"-I/Volumes/android/firstrom/external/elfutils/libelf -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib\" HOSTCC=/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/host/i686-apple-darwin-4.2.1/bin/i686-apple-darwin11-gcc HOSTCXX=/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/host/i686-apple-darwin-4.2.1/bin/i686-apple-darwin11-g++ -C kernel/xiaomi/msm8956 O=/Volumes/android/firstrom/out/target/product/kenzo/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"/usr/local/bin/ccache /Volumes/android/firstrom/prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" KCONFIG_ALLCONFIG=/Volumes/android/firstrom/out/target/product/kenzo/obj/KERNEL_OBJ/.config alldefconfig; fi )"
make: Entering directory '/Volumes/android/firstrom/kernel/xiaomi/msm8956'
GEN /Volumes/android/firstrom/out/target/product/kenzo/obj/KERNEL_OBJ/Makefile
HOSTCC scripts/basic/fixdep
couldn't understand kern.osversion `17.7.0'
i686-apple-darwin11-gcc: error trying to exec 'as': execvp: No such file or directory
make[2]: *** [scripts/Makefile.host:118: scripts/basic/fixdep] Error 1
make[1]: *** [/Volumes/android/firstrom/kernel/xiaomi/msm8956/Makefile:425: scripts_basic] Error 2
make: *** [Makefile:130: sub-make] Error 2
make: Leaving directory '/Volumes/android/firstrom/kernel/xiaomi/msm8956'
17:49:38 ninja failed with: exit status 1
#### failed to build some targets (13:45 (mm:ss)) ####
PANKAJs-iMac:firstrom pankajjaiswal$

Seppppx said:
I don't know what the error means, but this is the error.
KCONFIG_ALLCONFIG=/Volumes/android/firstrom/out/target/product/kenzo/obj/KERNEL_OBJ/.config alldefconfig; fi )"
make: Entering directory '/Volumes/android/firstrom/kernel/xiaomi/msm8956'
GEN /Volumes/android/firstrom/out/target/product/kenzo/obj/KERNEL_OBJ/Makefile
HOSTCC scripts/basic/fixdep
couldn't understand kern.osversion `17.7.0'
i686-apple-darwin11-gcc: error trying to exec 'as': execvp: No such file or directory
make[2]: *** [scripts/Makefile.host:118: scripts/basic/fixdep] Error 1
make[1]: *** [/Volumes/android/firstrom/kernel/xiaomi/msm8956/Makefile:425: scripts_basic] Error 2
make: *** [Makefile:130: sub-make] Error 2
make: Leaving directory '/Volumes/android/firstrom/kernel/xiaomi/msm8956'
17:49:38 ninja failed with: exit status 1
#### failed to build some targets (13:45 (mm:ss))
Click to expand...
Click to collapse
Ye ik,
i686-apple-darwin11-gcc: error trying to exec 'as': execvp: No such file or directory
But I can't figure out why, I know some people that compilation on Catalina is not broken. I'm running High Sierra tho

Can someone help?

Bro did u solve it?

0

Related

[Completed] Errors whilst compiling

Hey, I'm a maintainer for the OwnROM, I was trying to make a build for the i9300 when I got this error
Code:
including vendor/ownrom/vendorsetup.sh
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.4
OWNROM_VERSION=OWNROM-v1.0.3-OFFICIAL
TARGET_PRODUCT=ownrom_i9300
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.13.0-38-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=KTU84Q
OUT_DIR=/media/alectradar/sdb2/Android/out
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.4
OWNROM_VERSION=OWNROM-v1.0.3-OFFICIAL
TARGET_PRODUCT=ownrom_i9300
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.13.0-38-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=KTU84Q
OUT_DIR=/media/alectradar/sdb2/Android/out
============================================
/media/alectradar/sdb2/Android/out/target/product/i9300/obj/APPS/SignatureTest_intermediates
"ebtables is disabled on this build"
find: `src': No such file or directory
build/core/copy_headers.mk:15: warning: overriding recipe for target `/media/alectradar/sdb2/Android/out/target/product/i9300/obj/include/libsecmm/mfc_errno.h'
build/core/copy_headers.mk:15: warning: ignoring old recipe for target `/media/alectradar/sdb2/Android/out/target/product/i9300/obj/include/libsecmm/mfc_errno.h'
build/core/copy_headers.mk:15: warning: overriding recipe for target `/media/alectradar/sdb2/Android/out/target/product/i9300/obj/include/libsecmm/mfc_interface.h'
build/core/copy_headers.mk:15: warning: ignoring old recipe for target `/media/alectradar/sdb2/Android/out/target/product/i9300/obj/include/libsecmm/mfc_interface.h'
build/core/copy_headers.mk:15: warning: overriding recipe for target `/media/alectradar/sdb2/Android/out/target/product/i9300/obj/include/libsecmm/SsbSipMfcApi.h'
build/core/copy_headers.mk:15: warning: ignoring old recipe for target `/media/alectradar/sdb2/Android/out/target/product/i9300/obj/include/libsecmm/SsbSipMfcApi.h'
build/core/copy_headers.mk:15: warning: overriding recipe for target `/media/alectradar/sdb2/Android/out/target/product/i9300/obj/include/libsecmm/mfc_errno.h'
build/core/copy_headers.mk:15: warning: ignoring old recipe for target `/media/alectradar/sdb2/Android/out/target/product/i9300/obj/include/libsecmm/mfc_errno.h'
build/core/copy_headers.mk:15: warning: overriding recipe for target `/media/alectradar/sdb2/Android/out/target/product/i9300/obj/include/libsecmm/mfc_interface.h'
build/core/copy_headers.mk:15: warning: ignoring old recipe for target `/media/alectradar/sdb2/Android/out/target/product/i9300/obj/include/libsecmm/mfc_interface.h'
build/core/copy_headers.mk:15: warning: overriding recipe for target `/media/alectradar/sdb2/Android/out/target/product/i9300/obj/include/libsecmm/SsbSipMfcApi.h'
build/core/copy_headers.mk:15: warning: ignoring old recipe for target `/media/alectradar/sdb2/Android/out/target/product/i9300/obj/include/libsecmm/SsbSipMfcApi.h'
PRODUCT_COPY_FILES device/samsung/smdk4412-common/rootdir/init.trace.rc:root/init.trace.rc ignored.
PRODUCT_COPY_FILES device/samsung/smdk4412-common/configs/audio_effects.conf:system/etc/audio_effects.conf ignored.
build/core/Makefile:44: warning: overriding recipe for target `/media/alectradar/sdb2/Android/out/target/product/i9300/system/etc/wifi/wpa_supplicant.conf'
build/core/base_rules.mk:529: warning: ignoring old recipe for target `/media/alectradar/sdb2/Android/out/target/product/i9300/system/etc/wifi/wpa_supplicant.conf'
build/core/Makefile:44: warning: overriding recipe for target `/media/alectradar/sdb2/Android/out/target/product/i9300/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/base_rules.mk:529: warning: ignoring old recipe for target `/media/alectradar/sdb2/Android/out/target/product/i9300/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/Makefile:44: warning: overriding recipe for target `/media/alectradar/sdb2/Android/out/target/product/i9300/system/lib/libfimc.so'
build/core/base_rules.mk:529: warning: ignoring old recipe for target `/media/alectradar/sdb2/Android/out/target/product/i9300/system/lib/libfimc.so'
build/core/Makefile:44: warning: overriding recipe for target `/media/alectradar/sdb2/Android/out/target/product/i9300/system/lib/libfimg.so'
build/core/base_rules.mk:529: warning: ignoring old recipe for target `/media/alectradar/sdb2/Android/out/target/product/i9300/system/lib/libfimg.so'
build/core/Makefile:44: warning: overriding recipe for target `/media/alectradar/sdb2/Android/out/target/product/i9300/system/lib/libhwconverter.so'
build/core/base_rules.mk:529: warning: ignoring old recipe for target `/media/alectradar/sdb2/Android/out/target/product/i9300/system/lib/libhwconverter.so'
build/core/Makefile:44: warning: overriding recipe for target `/media/alectradar/sdb2/Android/out/target/product/i9300/system/lib/libhwjpeg.so'
build/core/base_rules.mk:529: warning: ignoring old recipe for target `/media/alectradar/sdb2/Android/out/target/product/i9300/system/lib/libhwjpeg.so'
build/core/Makefile:44: warning: overriding recipe for target `/media/alectradar/sdb2/Android/out/target/product/i9300/system/lib/libUMP.so'
build/core/base_rules.mk:529: warning: ignoring old recipe for target `/media/alectradar/sdb2/Android/out/target/product/i9300/system/lib/libUMP.so'
build/core/Makefile:44: warning: overriding recipe for target `/media/alectradar/sdb2/Android/out/target/product/i9300/system/lib/hw/sensors.smdk4x12.so'
build/core/base_rules.mk:529: warning: ignoring old recipe for target `/media/alectradar/sdb2/Android/out/target/product/i9300/system/lib/hw/sensors.smdk4x12.so'
No private recovery resources for TARGET_DEVICE i9300
make -C kernel/samsung/smdk4412 O=/media/alectradar/sdb2/Android/out/target/product/i9300/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/media/alectradar/sdb2/Android/prebuilts/misc/linux-x86/ccache/ccache /media/alectradar/sdb2/Android/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= cyanogenmod_i9300_defconfig
host Executable: mkbootimg (/media/alectradar/sdb2/Android/out/host/linux-x86/obj/EXECUTABLES/mkbootimg_intermediates/mkbootimg)
make[1]: Entering directory `/media/alectradar/sdb2/Android/kernel/samsung/smdk4412'
host Executable: acp (/media/alectradar/sdb2/Android/out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp)
host Executable: checkpolicy (/media/alectradar/sdb2/Android/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/checkpolicy)
host Executable: checkfc (/media/alectradar/sdb2/Android/out/host/linux-x86/obj/EXECUTABLES/checkfc_intermediates/checkfc)
host Executable: clang-tblgen (/media/alectradar/sdb2/Android/out/host/linux-x86/obj/EXECUTABLES/clang-tblgen_intermediates/clang-tblgen)
host Executable: tblgen (/media/alectradar/sdb2/Android/out/host/linux-x86/obj/EXECUTABLES/tblgen_intermediates/tblgen)
preparing StaticLib: libc_common [including /media/alectradar/sdb2/Android/out/target/product/i9300/obj/STATIC_LIBRARIES/libbionic_ssp_intermediates/libbionic_ssp.a]
preparing StaticLib: libc_common [including /media/alectradar/sdb2/Android/out/target/product/i9300/obj/STATIC_LIBRARIES/libc_bionic_intermediates/libc_bionic.a]
target StaticLib: liblogwrap (/media/alectradar/sdb2/Android/out/target/product/i9300/obj/STATIC_LIBRARIES/liblogwrap_intermediates/liblogwrap.a)
target StaticLib: libext4_utils_static (/media/alectradar/sdb2/Android/out/target/product/i9300/obj/STATIC_LIBRARIES/libext4_utils_static_intermediates/libext4_utils_static.a)
target StaticLib: libbatteryservice (/media/alectradar/sdb2/Android/out/target/product/i9300/obj/STATIC_LIBRARIES/libbatteryservice_intermediates/libbatteryservice.a)
target StaticLib: libbinder (/media/alectradar/sdb2/Android/out/target/product/i9300/obj/STATIC_LIBRARIES/libbinder_intermediates/libbinder.a)
preparing StaticLib: libc_common [including /media/alectradar/sdb2/Android/out/target/product/i9300/obj/STATIC_LIBRARIES/libc_freebsd_intermediates/libc_freebsd.a]
arch/arm/mach-exynos/Kconfig:883:warning: choice value used outside its choice group
arch/arm/mach-exynos/Kconfig:885:warning: defaults for choice values not supported
warning: (SEC_MODEM_M0_C2C && SEC_MODEM_M0 && SEC_MODEM_U1 && SEC_MODEM_IRON && SEC_MODEM_T0_TD_DUAL) selects LINK_DEVICE_HSIC which has unmet direct dependencies (MISC_DEVICES && MACH_U1 && SEC_MODEM)
warning: (SEC_MODEM_M0_C2C && SEC_MODEM_M0 && SEC_MODEM_IRON && SEC_MODEM_T0_TD_DUAL) selects UMTS_MODEM_XMM6262 which has unmet direct dependencies (MISC_DEVICES && MACH_U1 && SEC_MODEM)
warning: (SEC_MODEM_M0_C2C && SEC_MODEM_M0 && SEC_MODEM_IRON && SEC_MODEM_T0_TD_DUAL) selects UMTS_MODEM_XMM6262 which has unmet direct dependencies (MISC_DEVICES && MACH_U1 && SEC_MODEM)
warning: (SEC_MODEM_M0_C2C && SEC_MODEM_M0 && SEC_MODEM_U1 && SEC_MODEM_IRON && SEC_MODEM_T0_TD_DUAL) selects LINK_DEVICE_HSIC which has unmet direct dependencies (MISC_DEVICES && MACH_U1 && SEC_MODEM)
#
# configuration written to .config
#
make[1]: Leaving directory `/media/alectradar/sdb2/Android/kernel/samsung/smdk4412'
target StaticLib: libutils (/media/alectradar/sdb2/Android/out/target/product/i9300/obj/STATIC_LIBRARIES/libutils_intermediates/libutils.a)
host Executable: minigzip (/media/alectradar/sdb2/Android/out/host/linux-x86/obj/EXECUTABLES/minigzip_intermediates/minigzip)
target StaticLib: libext2fs (/media/alectradar/sdb2/Android/out/target/product/i9300/obj/STATIC_LIBRARIES/libext2fs_intermediates/libext2fs.a)
Symlink: /media/alectradar/sdb2/Android/out/target/product/i9300/recovery/root/sbin/fsck.exfat -> mount.exfat
preparing StaticLib: libc_common [including /media/alectradar/sdb2/Android/out/target/product/i9300/obj/STATIC_LIBRARIES/libc_netbsd_intermediates/libc_netbsd.a]
Symlink: /media/alectradar/sdb2/Android/out/target/product/i9300/recovery/root/sbin/mkfs.exfat -> mount.exfat
make: *** No rule to make target `/media/alectradar/sdb2/Android/out/target/product/i9300/obj/EXECUTABLES/recovery_intermediates/recovery', needed by `/media/alectradar/sdb2/Android/out/target/product/i9300/recovery/root.ts'. Stop.
make: *** Waiting for unfinished jobs....
Could anyone help me out here? I've built a build successfully last week, but after a repo sync, this happened. (I'm asking here because the ROM Owner is in a personal crisis. Also, I'm relatively new to all this, so please no hate )
Hi,
You may be new to compliling, but not XDA. I'm confident you know your way around the site as well as searching. ?
Please review the purpose of xda assist sticky,
http://forum.xda-developers.com/showthread.php?t=2764768
Thank you for understanding and thread closed.

[Q] How to Use a Different Kernel When Building CM12?

I have been learning how to compile CM12 on my own and it has been going really good so far. I've done two nightly builds for myself but now I am curious how I would go about compiling a custom kernel with it. Say I wanted to substitute in Franco's kernel or Faux. . .what do I need to do in order to sync the required code to my build?
Off the top of my head, I would think that the line in the local_manifest needs to be changed, but I honestly have no idea if it is that easy.
Here you go.
http://wiki.cyanogenmod.org/w/Doc:_integrated_kernel_building
So, I have added Franco's details into the local_manifest.xml file and done the repo sync command to pull down all of the source code. Franco's kernel source seemed to pull down successfully and I thought everything was good
However, when I try the "time brunch hammerhead" command, I get some errors. . .
Code:
PRODUCT_COPY_FILES device/lge/hammerhead/apns-full-conf.xml:system/etc/apns-conf.xml ignored.
PRODUCT_COPY_FILES device/lge/hammerhead/spn-conf.xml:system/etc/spn-conf.xml ignored.
build/core/Makefile:46: warning: overriding commands for target `/home/doug/cm12-n5/out/target/product/hammerhead/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/doug/cm12-n5/out/target/product/hammerhead/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/Makefile:46: warning: overriding commands for target `/home/doug/cm12-n5/out/target/product/hammerhead/system/lib/libgps.utils.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/doug/cm12-n5/out/target/product/hammerhead/system/lib/libgps.utils.so'
build/core/Makefile:46: warning: overriding commands for target `/home/doug/cm12-n5/out/target/product/hammerhead/system/lib/libloc_core.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/doug/cm12-n5/out/target/product/hammerhead/system/lib/libloc_core.so'
No private recovery resources for TARGET_DEVICE hammerhead
host C: mkbootimg <= system/core/mkbootimg/mkbootimg.c
host C: acp <= build/tools/acp/acp.c
host StaticLib: libmincrypt_32 (/home/doug/cm12-n5/out/host/linux-x86/obj32/STATIC_LIBRARIES/libmincrypt_intermediates/libmincrypt.a)
make -C kernel/lge/hammerhead O=/home/doug/cm12-n5/out/target/product/hammerhead/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" arm-eabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= cyanogenmod_hammerhead_defconfig
make[1]: Entering directory `/home/doug/cm12-n5/kernel/lge/hammerhead'
host StaticLib: libhost_32 (/home/doug/cm12-n5/out/host/linux-x86/obj32/STATIC_LIBRARIES/libhost_intermediates/libhost.a)
host Executable: mkbootfs (/home/doug/cm12-n5/out/host/linux-x86/obj32/EXECUTABLES/mkbootfs_intermediates/mkbootfs)
host C: checkpolicy <= external/checkpolicy/queue.c
host C: checkpolicy <= external/checkpolicy/module_compiler.c
host C: checkpolicy <= external/checkpolicy/parse_util.c
external/checkpolicy/module_compiler.c: In function 'add_perm_to_class':
external/checkpolicy/module_compiler.c:710:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/module_compiler.c: In function 'is_scope_in_stack':
external/checkpolicy/module_compiler.c:1233:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/module_compiler.c: In function 'end_optional':
external/checkpolicy/module_compiler.c:1448:22: warning: unused parameter 'pass' [-Wunused-parameter]
external/checkpolicy/module_compiler.c: In function 'copy_requirements':
external/checkpolicy/module_compiler.c:1511:11: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/module_compiler.c:1517:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
host C: checkpolicy <= external/checkpolicy/policy_define.c
GEN /home/doug/cm12-n5/out/target/product/hammerhead/obj/KERNEL_OBJ/Makefile
host C: checkpolicy <= external/checkpolicy/checkpolicy.c
host C++: checkpolicy <= /home/doug/cm12-n5/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_parse.cpp
cc1: warning: command line option '-Wsign-promo' is valid for C++/ObjC++ but not for C [enabled by default]
host C++: checkpolicy <= /home/doug/cm12-n5/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_scan.cpp
cc1: warning: command line option '-Wsign-promo' is valid for C++/ObjC++ but not for C [enabled by default]
host StaticLib: libsepol_32 (/home/doug/cm12-n5/out/host/linux-x86/obj32/STATIC_LIBRARIES/libsepol_intermediates/libsepol.a)
host C: checkfc <= external/sepolicy/tools/checkfc.c
external/checkpolicy/policy_define.c: In function 'define_dominance':
external/checkpolicy/policy_define.c:867:12: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/policy_define.c: In function 'clone_level':
external/checkpolicy/policy_define.c:997:38: warning: unused parameter 'key' [-Wunused-parameter]
external/checkpolicy/policy_define.c: In function 'define_compute_type_helper':
external/checkpolicy/policy_define.c:1569:2: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/policy_define.c: In function 'dominate_role_recheck':
external/checkpolicy/policy_define.c:2146:3: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/policy_define.c:2152:3: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/policy_define.c:2125:48: warning: unused parameter 'key' [-Wunused-parameter]
external/checkpolicy/policy_define.c: In function 'parse_semantic_categories':
external/checkpolicy/policy_define.c:3445:64: warning: unused parameter 'levdatum' [-Wunused-parameter]
host C: libselinux_32 <= external/libselinux/src/callbacks.c
external/checkpolicy/checkpolicy.c: In function 'display_bools':
external/checkpolicy/checkpolicy.c:296:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
external/checkpolicy/checkpolicy.c: In function 'check_level':
external/checkpolicy/checkpolicy.c:364:72: warning: unused parameter 'arg' [-Wunused-parameter]
external/checkpolicy/checkpolicy.c: In function 'main':
external/checkpolicy/checkpolicy.c:472:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
host C: libselinux_32 <= external/libselinux/src/check_context.c
host C: libselinux_32 <= external/libselinux/src/freecon.c
***
*** Can't find default configuration "arch/arm/configs/cyanogenmod_hammerhead_defconfig"!
***
make[3]: *** [cyanogenmod_hammerhead_defconfig] Error 1
make[2]: *** [cyanogenmod_hammerhead_defconfig] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/doug/cm12-n5/kernel/lge/hammerhead'
host C: libselinux_32 <= external/libselinux/src/init.c
make: *** [/home/doug/cm12-n5/out/target/product/hammerhead/obj/KERNEL_OBJ/.config] Error 2
make: *** Waiting for unfinished jobs....
make: *** wait: No child processes. Stop.
real 0m55.220s
user 0m46.604s
sys 0m11.489s
It seems to be hanging up on this error "Can't find default configuration "arch/arm/configs/cyanogenmod_hammerhead_defconfig"!" and I'm not sure how to proceed
I found this and he said that person needed to "Go to the device tree BoardConfig.mk and change cyanogenmod_d802_defconfig to d802_defconfig"
So I went into the BoardConfig.mk file and rmeoved the cyanogenmod bit from that line.
repo sync'd and set everything back up and it seems to be going through the full build right now *crossing my fingers*
Blah
So not I'm getting this error about 20 minutes into the build
Code:
target thumb C++: libqdutils <= hardware/qcom/display/msm8974/libqdutils/profiler.cpp
hardware/qcom/display/msm8974/libgralloc/ionalloc.cpp: In member function 'virtual int gralloc::IonAlloc::alloc_buffer(gralloc::alloc_data&)':
hardware/qcom/display/msm8974/libgralloc/ionalloc.cpp:76:18: error: 'struct ion_allocation_data' has no member named 'heap_id_mask'
ionAllocData.heap_id_mask = data.flags & ~ION_SECURE;
^
make: *** [/home/doug/cm12-n5/out/target/product/hammerhead/obj/SHARED_LIBRARIES/libmemalloc_intermediates/ionalloc.o] Error 1
make: *** Waiting for unfinished jobs....
Does anyone have any idea what this pertains to?

[Q] [5.1.1][LOLLIPOP][p720/p725]Builing CM 12.1 for the good old LG 3D OPTIMUS MAX

I've been trying for two month now to build cm-12.1 for this device. I made this post in order to get help to build it. This is a very good smartphone and I think that it deserves it. For this I need your help.
Here is my latest build error after 3 hour build. I make it again it took 2 minutes, same error
Code:
[email protected]:~/l$ make -j 8
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.1.1
CM_VERSION=12.1-20150624-UNOFFICIAL-p725
TARGET_PRODUCT=cm_p725
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a7
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.16.0-41-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=LMY48B
OUT_DIR=/home/a/l/out
============================================
"ebtables is disabled on this build"
find: `dummy': No such file or directory
PRODUCT_COPY_FILES vendor/cm/prebuilt/common/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.
No private recovery resources for TARGET_DEVICE p725
build/core/tasks/kernel.mk:102: ***************************************************************
build/core/tasks/kernel.mk:103: * Using prebuilt kernel binary instead of source *
build/core/tasks/kernel.mk:104: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED *
build/core/tasks/kernel.mk:105: * Please configure your device to download the kernel *
build/core/tasks/kernel.mk:106: * source repository to kernel/lge/p725
build/core/tasks/kernel.mk:107: * See http://wiki.cyanogenmod.org/w/Doc:_integrated_kernel_building
build/core/tasks/kernel.mk:108: * for more information *
build/core/tasks/kernel.mk:109: ***************************************************************
build/core/tasks/kernel.mk:278: warning: overriding commands for target `/home/a/l/out/target/product/p725/kernel'
build/core/Makefile:46: warning: ignoring old commands for target `/home/a/l/out/target/product/p725/kernel'
Copying: /home/a/l/out/target/common/obj/JAVA_LIBRARIES/android-support-v4-eclair_intermediates/classes.jar
target SharedLib: libandroid_runtime (/home/a/l/out/target/product/p725/obj/SHARED_LIBRARIES/libandroid_runtime_intermediates/LINKED/libandroid_runtime.so)
target Static Jar: android-support-v7-cardview-jellybean-mr1 (/home/a/l/out/target/common/obj/JAVA_LIBRARIES/android-support-v7-cardview-jellybean-mr1_intermediates/javalib.jar)
target Java: TextSecureLibrary (/home/a/l/out/target/common/obj/JAVA_LIBRARIES/TextSecureLibrary_intermediates/classes)
target thumb C++: libwebviewchromium <= external/chromium_org/android_webview/lib/main/webview_entry_point.cc
Install: /home/a/l/out/target/product/p725/system/bin/bootanimation
Install: /home/a/l/out/target/product/p725/system/bin/drmserver
frameworks/base/core/jni/android_view_Surface.cpp:404: error: undefined reference to 'android::uirenderer::AnimationContext::AnimationContext(android::uirenderer::renderthread::TimeLord&)'
frameworks/base/core/jni/android_view_Surface.cpp:431: error: undefined reference to 'android::uirenderer::renderthread::RenderProxy::syncAndDrawFrame(long long, long long, float)'
frameworks/base/core/jni/android_view_Surface.cpp:425: error: undefined reference to 'android::uirenderer::renderthread::RenderProxy::updateSurface(android::sp<ANativeWindow> const&)'
frameworks/base/core/jni/android_view_Surface.cpp:412: error: undefined reference to 'android::uirenderer::renderthread::RenderProxy::RenderProxy(bool, android::uirenderer::RenderNode*, android::uirenderer::IContextFactory*)'
frameworks/base/core/jni/android_view_Surface.cpp:413: error: undefined reference to 'android::uirenderer::renderthread::RenderProxy::loadSystemProperties()'
frameworks/base/core/jni/android_view_Surface.cpp:414: error: undefined reference to 'android::uirenderer::renderthread::RenderProxy::setSwapBehavior(android::uirenderer::renderthread::SwapBehavior)'
frameworks/base/core/jni/android_view_Surface.cpp:415: error: undefined reference to 'android::uirenderer::renderthread::RenderProxy::initialize(android::sp<ANativeWindow> const&)'
frameworks/base/core/jni/android_view_Surface.cpp:418: error: undefined reference to 'android::uirenderer::renderthread::RenderProxy::setup(int, int, android::uirenderer::Vector3 const&, float, unsigned char, unsigned char)'
frameworks/base/core/jni/android/graphics/Paint.cpp:809: error: undefined reference to 'android::uirenderer::Blur::convertRadiusToSigma(float)'
collect2: error: ld returned 1 exit status
make: *** [/home/a/l/out/target/product/p725/obj/SHARED_LIBRARIES/libandroid_runtime_intermediates/LINKED/libandroid_runtime.so] Error 1
make: *** Waiting for unfinished jobs....
Note: external/whispersystems/TextSecure/library/src/org/whispersystems/textsecure/push/PushServiceSocket.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
#### make failed to build some targets (02:00 (mm:ss)) ####
This is my new error
Code:
Export includes file: system/core/libion/Android.mk -- /home/a/l/out/target/product/p720/obj/SHARED_LIBRARIES/libion_intermediates/export_includes
Target wpa_supplicant.conf: /home/a/l/out/target/product/p720/obj/ETC/wpa_supplicant.conf_intermediates/wpa_supplicant.conf
make: *** No rule to make target `system/bluetooth/data/main.conf', needed by `/home/a/l/out/target/product/p720/system/etc/bluetooth/main.conf'. Stop.
make: *** Waiting for unfinished jobs....
GEN include/usage.h
GEN loginutils/Kbuild
GEN loginutils/Config.in
GEN shell/Kbuild
GEN shell/Config.in
GEN selinux/Kbuild
GEN selinux/Config.in
GEN util-linux/Kbuild
GEN util-linux/Config.in
GEN util-linux/volume_id/Kbuild
GEN util-linux/volume_id/Config.in
GEN archival/Kbuild
GEN archival/Config.in
GEN archival/libarchive/Kbuild
GEN mailutils/Kbuild
GEN mailutils/Config.in
GEN networking/Kbuild
GEN networking/Config.in
GEN networking/udhcp/Kbuild
GEN networking/udhcp/Config.in
GEN networking/libiproute/Kbuild
GEN debianutils/Kbuild
GEN debianutils/Config.in
GEN sysklogd/Kbuild
GEN sysklogd/Config.in
GEN applets/Kbuild
GEN runit/Kbuild
GEN runit/Config.in
GEN console-tools/Kbuild
GEN console-tools/Config.in
GEN findutils/Kbuild
GEN findutils/Config.in
GEN procps/Kbuild
GEN procps/Config.in
GEN init/Kbuild
GEN init/Config.in
GEN miscutils/Kbuild
GEN miscutils/Config.in
GEN coreutils/Kbuild
GEN coreutils/Config.in
GEN coreutils/libcoreutils/Kbuild
GEN modutils/Kbuild
GEN modutils/Config.in
GEN scripts/Kbuild
GEN editors/Kbuild
GEN editors/Config.in
GEN e2fsprogs/Kbuild
GEN e2fsprogs/Config.in
GEN e2fsprogs/old_e2fsprogs/Kbuild
GEN e2fsprogs/old_e2fsprogs/Config.in
GEN e2fsprogs/old_e2fsprogs/uuid/Kbuild
GEN e2fsprogs/old_e2fsprogs/e2p/Kbuild
GEN e2fsprogs/old_e2fsprogs/ext2fs/Kbuild
GEN e2fsprogs/old_e2fsprogs/blkid/Kbuild
GEN printutils/Kbuild
GEN printutils/Config.in
GEN libpwdgrp/Kbuild
GEN libbb/Kbuild
GEN libbb/Config.in
Using /home/a/l/external/busybox as source for busybox
GEN /home/a/l/out/target/product/p720/obj/busybox/full/Makefile
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/split-include
HOSTCC scripts/basic/docproc
/home/a/l/external/busybox/scripts/basic/split-include.c: In function ‘main’:
/home/a/l/external/busybox/scripts/basic/split-include.c:134:11: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(old_line, buffer_size, fp_target);
^
HOSTCC scripts/kconfig/conf.o
/home/a/l/external/busybox/scripts/kconfig/conf.c: In function ‘conf_askvalue’:
/home/a/l/external/busybox/scripts/kconfig/conf.c:106:8: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(line, 128, stdin);
^
/home/a/l/external/busybox/scripts/kconfig/conf.c: In function ‘conf_choice’:
/home/a/l/external/busybox/scripts/kconfig/conf.c:354:9: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(line, 128, stdin);
^
HOSTCC scripts/kconfig/kxgettext.o
HOSTCC scripts/kconfig/mconf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/lex.zconf.c
SHIPPED scripts/kconfig/zconf.hash.c
/home/a/l/external/busybox/scripts/kconfig/mconf.c: In function ‘show_textbox’:
/home/a/l/external/busybox/scripts/kconfig/mconf.c:847:7: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
write(fd, text, strlen(text));
^
/home/a/l/external/busybox/scripts/kconfig/mconf.c: In function ‘exec_conf’:
/home/a/l/external/busybox/scripts/kconfig/mconf.c:481:6: warning: ignoring return value of ‘pipe’, declared with attribute warn_unused_result [-Wunused-result]
pipe(pipefd);
^
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf -s Config.in
#
# using defaults found in .config
#
SPLIT include/autoconf.h -> include/config/*
HOSTCC applets/usage
HOSTCC applets/applet_tables
/home/a/l/external/busybox/applets/usage.c: In function ‘main’:
/home/a/l/external/busybox/applets/usage.c:52:8: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
write(STDOUT_FILENO, usage_array[i].usage, strlen(usage_array[i].usage) + 1);
^
GEN include/bbconfigopts.h
/home/a/l/external/busybox/applets/applet_tables.c: In function ‘main’:
/home/a/l/external/busybox/applets/applet_tables.c:144:9: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(line_old, sizeof(line_old), fp);
^
GEN include/applet_tables.h
HOSTCC applets/usage_pod
GEN include/usage_compressed.h
CC applets/applets.o
LD applets/built-in.o
make[1]: Leaving directory `/home/a/l/external/busybox'
#### make failed to build some targets (02:48 (mm:ss)) ####
Where are your sources, devtree and kernel. If i am not mistaken the p720 has 1g mem, so it would be easier to get the ddk1.9 gpu binaries working for your device. Take the l9 kernel for jellybean, add cosmo and cx support from cm10 kernel and your good to go kernel wise. Device tree needs upgrading of hwcomposer and domx, or use l9 device tree aswell with your device specific changes. Post your sources and i will try to help, i feel im so close with our p920 device, i think its vram specs i need to get right to bring up display.
Sent from my LG-D620 using XDA Free mobile app
---------- Post added at 19:01 ---------- Previous post was at 18:49 ----------
L9 kernel, https://github.com/dhiru1602/lge-kernel-omap4.l9 common dev tree, https://github.com/dhiru1602/android_device_lge_u2-common. Add support from https://github.com/CyanogenMod/lge-kernel-omap4, to the l9 kernel for cosmo and cx.
Sent from my LG-D620 using XDA Free mobile app
I don't think you realize how glad I am for you help. I try you suggestions and I will get back to you as soon as I get something.
Thanks again.
hi, im working on cm12.0 for LG prada, its so similar device to optimus 3d i guess. i following your work , so let me know about your progresses, ty {and sry for my eng}
Hi I just modified the l9 common tree with configuration for the p725 and I could buil the recovery image.
Here is the tree https://github.com/lung1/device_lge_p720
Still after I flashed the recovery image on the p725 it run into a bootloop but just when I tried to get into recovery. When I rebooted the devices it started Android so I didn't bricked it
Suggestions?
I forget to mention that I used the https://github.com/CyanogenMod/lge-kernel-omap4 kernel because it works. If I build cm-10 it works perfectly. I just used this kernel and https://github.com/CyanogenMod/android_device_lge_p720 .
Yes its will build, no problem but you are going to get bootloop or blank screen. The kernel still needs to be updated, because the common dev tree you are using has the 1.9 pvr and the cm10 tree has 1.8 pvr. Just check the pvr version in the dev trees of both, sgx-module/services4. Add the cosmo and cx support to the l9 kernel. Then the kernel will be inline with the common dev tree you are using. The pvr needs the ion,remoteproc rpmsg,dss and dsscomp updates thats in the l9 kernel.
Sent from my LG-D620 using XDA Free mobile app
I added the binaries for cosmo and cx2, here is the source https://github.com/lung1/kernel_lge_p720 . But now I can't build the recovery image. Here is the error.
Code:
[email protected]:~/l$ make recoveryimage
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.1.1
CM_VERSION=12.1-20150630-UNOFFICIAL-p720
TARGET_PRODUCT=cm_p720
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.16.0-41-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=LMY48B
OUT_DIR=/home/a/l/out
============================================
"ebtables is disabled on this build"
find: `omapmmlib/java': No such file or directory
find: `omapmmlib/java': No such file or directory
find: `dummy': No such file or directory
PRODUCT_COPY_FILES vendor/cm/prebuilt/common/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/etc/wifi/wpa_supplicant.conf'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/etc/wifi/wpa_supplicant.conf'
PRODUCT_COPY_FILES device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.
PRODUCT_COPY_FILES device/generic/goldfish/camera/media_profiles.xml:system/etc/media_profiles.xml ignored.
PRODUCT_COPY_FILES device/generic/goldfish/camera/media_codecs.xml:system/etc/media_codecs.xml ignored.
PRODUCT_COPY_FILES hardware/libhardware_legacy/audio/audio_policy.conf:system/etc/audio_policy.conf ignored.
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libril.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libril.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/hw/lights.omap4.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/hw/lights.omap4.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/hw/camera.omap4.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/hw/camera.omap4.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/hw/nfc.default.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/hw/nfc.default.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libtinyalsa.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libtinyalsa.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/bin/rild'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/bin/rild'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libmm_osal.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libmm_osal.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX_Core.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX_Core.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libion.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libion.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libtiutils.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libtiutils.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libdomx.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libdomx.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.MISC.SAMPLE.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.MISC.SAMPLE.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.CAMERA.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.CAMERA.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.DECODER.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.DECODER.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.H264E.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.H264E.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.MPEG4E.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.MPEG4E.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.DECODER.secure.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.DECODER.secure.so'
No private recovery resources for TARGET_DEVICE p720
make -C kernel/lge/omap4-common O=/home/a/l/out/target/product/p720/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/a/l/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= cyanogenmod_p720_defconfig
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
CHK include/linux/version.h
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make -C kernel/lge/omap4-common O=/home/a/l/out/target/product/p720/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/a/l/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" zImage
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
Using /home/a/l/kernel/lge/omap4-common as source for kernel
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[3]: `include/generated/mach-types.h' is up to date.
CALL /home/a/l/kernel/lge/omap4-common/scripts/checksyscalls.sh
CHK include/generated/compile.h
CC arch/arm/mach-omap2/omap_hsi.o
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/omap_hsi.c: In function 'hsi_get_hsi_platform_device':
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/omap_hsi.c:139:11: error: 'hsi_temp_ptr' undeclared (first use in this function)
dev = hsi_temp_ptr;
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/omap_hsi.c:139:11: note: each undeclared identifier is reported only once for each function it appears in
make[3]: *** [arch/arm/mach-omap2/omap_hsi.o] Error 1
make[2]: *** [arch/arm/mach-omap2] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make: *** [TARGET_KERNEL_BINARIES] Error 2
#### make failed to build some targets (01:29 (mm:ss)) ####
Error is in arch/arm/mach_omap2/omap_hsi.c, use meld to diff your changes with that of the l9 kernel. Also first test if kernel compiles before building complete rom. Do a (. build/envsetup.sh) then lunch, choose your device and then mm bootimage. Just to build bootimage. It saves time then to build a complete rom to check if you get kernel errors.
Sent from my LG-D620 using XDA Free mobile app
---------- Post added at 12:30 ---------- Previous post was at 12:24 ----------
As an alternative, you could use my updated kernel, its also cm10.2 with all updates for optimus 3d, i haven't changed carveouts for 1g devices, so it should work.
https://github.com/shaqfu786/lge-kernel-omap4. Here you go.
Sent from my LG-D620 using XDA Free mobile app
I found the error in the omap_hsi.c and fixed it. Here is the result:
Code:
[email protected]:~/l$ mm bootimage
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.1.1
CM_VERSION=12.1-20150630-UNOFFICIAL-p720
TARGET_PRODUCT=cm_p720
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.16.0-41-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=LMY48B
OUT_DIR=/home/a/l/out
============================================
"ebtables is disabled on this build"
find: `omapmmlib/java': No such file or directory
find: `omapmmlib/java': No such file or directory
find: `dummy': No such file or directory
PRODUCT_COPY_FILES vendor/cm/prebuilt/common/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/etc/wifi/wpa_supplicant.conf'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/etc/wifi/wpa_supplicant.conf'
PRODUCT_COPY_FILES device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.
PRODUCT_COPY_FILES device/generic/goldfish/camera/media_profiles.xml:system/etc/media_profiles.xml ignored.
PRODUCT_COPY_FILES device/generic/goldfish/camera/media_codecs.xml:system/etc/media_codecs.xml ignored.
PRODUCT_COPY_FILES hardware/libhardware_legacy/audio/audio_policy.conf:system/etc/audio_policy.conf ignored.
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libril.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libril.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/hw/lights.omap4.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/hw/lights.omap4.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/hw/camera.omap4.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/hw/camera.omap4.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/hw/nfc.default.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/hw/nfc.default.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libtinyalsa.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libtinyalsa.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/bin/rild'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/bin/rild'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libmm_osal.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libmm_osal.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX_Core.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX_Core.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libion.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libion.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libtiutils.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libtiutils.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libdomx.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libdomx.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.MISC.SAMPLE.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.MISC.SAMPLE.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.CAMERA.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.CAMERA.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.DECODER.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.DECODER.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.H264E.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.H264E.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.MPEG4E.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.MPEG4E.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.DECODER.secure.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.DECODER.secure.so'
No private recovery resources for TARGET_DEVICE p720
make -C kernel/lge/omap4-common O=/home/a/l/out/target/product/p720/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/a/l/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= cyanogenmod_p720_defconfig
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
CHK include/linux/version.h
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make -C kernel/lge/omap4-common O=/home/a/l/out/target/product/p720/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/a/l/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" zImage
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
Using /home/a/l/kernel/lge/omap4-common as source for kernel
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[3]: `include/generated/mach-types.h' is up to date.
CALL /home/a/l/kernel/lge/omap4-common/scripts/checksyscalls.sh
CHK include/generated/compile.h
LD arch/arm/mach-omap2/mailbox_mach.o
CC arch/arm/mach-omap2/lge/board-lg-wifi.o
CC arch/arm/mach-omap2/lge/cx2/../board-lg-wifi.o
CC arch/arm/mach-omap2/lge/cx2/cx2_i2c.o
In file included from /home/a/l/kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/board-lge-nfc.h:1:0,
from /home/a/l/kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/cx2_i2c.c:49:
/home/a/l/kernel/lge/omap4-common/include/linux/nfc/pn544_lge.h:44:28: fatal error: mach/board_lge.h: No such file or directory
#include <mach/board_lge.h>
^
compilation terminated.
make[5]: *** [arch/arm/mach-omap2/lge/cx2/cx2_i2c.o] Error 1
make[4]: *** [arch/arm/mach-omap2/lge/cx2] Error 2
make[3]: *** [arch/arm/mach-omap2/lge] Error 2
make[2]: *** [arch/arm/mach-omap2] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make: *** [TARGET_KERNEL_BINARIES] Error 2
#### make failed to build some targets (01:26 (mm:ss)) ####
I tried your alternative solution, and I had to delete the -Werror flag from drivers/net/wireless/bcmdhd/Makefile because of this error:
Code:
[email protected]:~/l$ mm bootimage
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.1.1
CM_VERSION=12.1-20150630-UNOFFICIAL-p720
TARGET_PRODUCT=cm_p720
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.16.0-41-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=LMY48B
OUT_DIR=/home/a/l/out
============================================
"ebtables is disabled on this build"
find: `omapmmlib/java': No such file or directory
find: `omapmmlib/java': No such file or directory
find: `dummy': No such file or directory
PRODUCT_COPY_FILES vendor/cm/prebuilt/common/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/etc/wifi/wpa_supplicant.conf'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/etc/wifi/wpa_supplicant.conf'
PRODUCT_COPY_FILES device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.
PRODUCT_COPY_FILES device/generic/goldfish/camera/media_profiles.xml:system/etc/media_profiles.xml ignored.
PRODUCT_COPY_FILES device/generic/goldfish/camera/media_codecs.xml:system/etc/media_codecs.xml ignored.
PRODUCT_COPY_FILES hardware/libhardware_legacy/audio/audio_policy.conf:system/etc/audio_policy.conf ignored.
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libril.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libril.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/hw/lights.omap4.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/hw/lights.omap4.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/hw/camera.omap4.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/hw/camera.omap4.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/hw/nfc.default.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/hw/nfc.default.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libtinyalsa.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libtinyalsa.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/bin/rild'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/bin/rild'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libmm_osal.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libmm_osal.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX_Core.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX_Core.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libion.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libion.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libtiutils.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libtiutils.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libdomx.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libdomx.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.MISC.SAMPLE.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.MISC.SAMPLE.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.CAMERA.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.CAMERA.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.DECODER.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.DECODER.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.H264E.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.H264E.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.MPEG4E.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.MPEG4E.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.DECODER.secure.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.DECODER.secure.so'
No private recovery resources for TARGET_DEVICE p720
make -C kernel/lge/omap4-common O=/home/a/l/out/target/product/p720/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/a/l/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= cyanogenmod_p720_defconfig
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
CHK include/linux/version.h
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make -C kernel/lge/omap4-common O=/home/a/l/out/target/product/p720/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/a/l/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" zImage
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
Using /home/a/l/kernel/lge/omap4-common as source for kernel
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[3]: `include/generated/mach-types.h' is up to date.
CALL /home/a/l/kernel/lge/omap4-common/scripts/checksyscalls.sh
CHK include/generated/compile.h
CC drivers/net/wireless/bcmdhd/src/wl/sys/wl_cfgp2p.o
../../../../../../kernel/lge/omap4-common/drivers/net/wireless/bcmdhd/src/wl/sys/wl_cfgp2p.c: In function 'wl_cfgp2p_ifidx':
../../../../../../kernel/lge/omap4-common/drivers/net/wireless/bcmdhd/src/wl/sys/wl_cfgp2p.c:458:31: error: argument to 'sizeof' in 'memcpy' call is the same expression as the destination; did you mean to dereference it? [-Werror=sizeof-pointer-memaccess]
memcpy(index, getbuf, sizeof(index));
^
cc1: all warnings being treated as errors
make[6]: *** [drivers/net/wireless/bcmdhd/src/wl/sys/wl_cfgp2p.o] Error 1
make[5]: *** [drivers/net/wireless/bcmdhd] Error 2
make[4]: *** [drivers/net/wireless] Error 2
make[3]: *** [drivers/net] Error 2
make[2]: *** [drivers] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make: *** [TARGET_KERNEL_BINARIES] Error 2
#### make failed to build some targets (01:29 (mm:ss)) ####
After I deleted I got this massage:
Code:
[email protected]:~/l$ mm bootimage
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.1.1
CM_VERSION=12.1-20150630-UNOFFICIAL-p720
TARGET_PRODUCT=cm_p720
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.16.0-41-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=LMY48B
OUT_DIR=/home/a/l/out
============================================
"ebtables is disabled on this build"
find: `omapmmlib/java': No such file or directory
find: `omapmmlib/java': No such file or directory
find: `dummy': No such file or directory
PRODUCT_COPY_FILES vendor/cm/prebuilt/common/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/etc/wifi/wpa_supplicant.conf'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/etc/wifi/wpa_supplicant.conf'
PRODUCT_COPY_FILES device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.
PRODUCT_COPY_FILES device/generic/goldfish/camera/media_profiles.xml:system/etc/media_profiles.xml ignored.
PRODUCT_COPY_FILES device/generic/goldfish/camera/media_codecs.xml:system/etc/media_codecs.xml ignored.
PRODUCT_COPY_FILES hardware/libhardware_legacy/audio/audio_policy.conf:system/etc/audio_policy.conf ignored.
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libril.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libril.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/hw/lights.omap4.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/hw/lights.omap4.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/hw/camera.omap4.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/hw/camera.omap4.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/hw/nfc.default.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/hw/nfc.default.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libtinyalsa.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libtinyalsa.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/bin/rild'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/bin/rild'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libmm_osal.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libmm_osal.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX_Core.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX_Core.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libion.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libion.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libtiutils.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libtiutils.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libdomx.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libdomx.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.MISC.SAMPLE.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.MISC.SAMPLE.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.CAMERA.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.CAMERA.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.DECODER.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.DECODER.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.H264E.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.H264E.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.MPEG4E.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.MPEG4E.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.DECODER.secure.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.DECODER.secure.so'
No private recovery resources for TARGET_DEVICE p720
make -C kernel/lge/omap4-common O=/home/a/l/out/target/product/p720/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/a/l/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= cyanogenmod_p720_defconfig
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
CHK include/linux/version.h
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make -C kernel/lge/omap4-common O=/home/a/l/out/target/product/p720/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/a/l/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" zImage
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
Using /home/a/l/kernel/lge/omap4-common as source for kernel
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[3]: `include/generated/mach-types.h' is up to date.
CALL /home/a/l/kernel/lge/omap4-common/scripts/checksyscalls.sh
CHK include/generated/compile.h
CC drivers/video/omap2/dsscomp/gralloc.o
../../../../../../kernel/lge/omap4-common/drivers/video/omap2/dsscomp/gralloc.c: In function 'dsscomp_gralloc_cb':
../../../../../../kernel/lge/omap4-common/drivers/video/omap2/dsscomp/gralloc.c:132:14: error: 'struct dsscomp_gralloc_t' has no member named 'adapt_info'
if ( gsync->adapt_info!=NULL )
^
../../../../../../kernel/lge/omap4-common/drivers/video/omap2/dsscomp/gralloc.c:134:29: error: 'struct dsscomp_gralloc_t' has no member named 'adapt_info'
dsscomp_adapt_free(gsync->adapt_info);
^
../../../../../../kernel/lge/omap4-common/drivers/video/omap2/dsscomp/gralloc.c:135:10: error: 'struct dsscomp_gralloc_t' has no member named 'adapt_info'
gsync->adapt_info = NULL;
^
../../../../../../kernel/lge/omap4-common/drivers/video/omap2/dsscomp/gralloc.c: In function 'dsscomp_gralloc_queue':
../../../../../../kernel/lge/omap4-common/drivers/video/omap2/dsscomp/gralloc.c:628:8: error: 'struct dsscomp_gralloc_t' has no member named 'adapt_info'
gsync->adapt_info = adapt_info;
^
../../../../../../kernel/lge/omap4-common/drivers/video/omap2/dsscomp/gralloc.c:646:12: error: 'struct dsscomp_gralloc_t' has no member named 'adapt_info'
if ( gsync->adapt_info!=NULL )
^
../../../../../../kernel/lge/omap4-common/drivers/video/omap2/dsscomp/gralloc.c:649:39: error: 'struct dsscomp_gralloc_t' has no member named 'adapt_info'
r= dsscomp_adapt_wait_complete(gsync->adapt_info, 100, &ret);
^
../../../../../../kernel/lge/omap4-common/drivers/video/omap2/dsscomp/gralloc.c:653:34: error: 'struct dsscomp_gralloc_t' has no member named 'adapt_info'
dsscomp_adapt_force_stop(gsync->adapt_info);
^
make[6]: *** [drivers/video/omap2/dsscomp/gralloc.o] Error 1
make[5]: *** [drivers/video/omap2/dsscomp] Error 2
make[4]: *** [drivers/video/omap2] Error 2
make[3]: *** [drivers/video] Error 2
make[2]: *** [drivers] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make: *** [TARGET_KERNEL_BINARIES] Error 2
#### make failed to build some targets (01:31 (mm:ss)) ####
Thanks again for your help!
Use meld again to diff your gralloc.c file. Strange i dont get gralloc errors my side when i compile the updated cm10.2 kernel.
Sent from my LG-D620 using XDA Free mobile app
Here is the error
Code:
CROSS_COMPILE="/home/a/l/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= cyanogenmod_p720_defconfig
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
CHK include/linux/version.h
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make -C kernel/lge/omap4-common O=/home/a/l/out/target/product/p720/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/a/l/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" zImage
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
CHK include/linux/version.h
Using /home/a/l/kernel/lge/omap4-common as source for kernel
CHK include/generated/utsrelease.h
make[3]: `include/generated/mach-types.h' is up to date.
CALL /home/a/l/kernel/lge/omap4-common/scripts/checksyscalls.sh
CHK include/generated/compile.h
CC arch/arm/plat-omap/omap_dsscomp.o
make[3]: *** No rule to make target `arch/arm/plat-omap/lge_err_handler.o', needed by `arch/arm/plat-omap/built-in.o'. Stop.
make[3]: *** Waiting for unfinished jobs....
CC arch/arm/plat-omap/android-display.o
CC mm/page_io.o
CC arch/arm/mach-omap2/hsmmc.o
CC arch/arm/mach-omap2/omap_fiq_debugger.o
CC arch/arm/mach-omap2/omap4-reboot-reason.o
CC arch/arm/mach-omap2/twl_i2c.o
CC arch/arm/mach-omap2/lge/board-lg-wifi.o
CC arch/arm/mach-omap2/lge/cx2/../board-lg-wifi.o
In file included from /home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:5:0,
from /home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/android-display.h:19,
from /home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/android-display.c:27:
/home/a/l/kernel/lge/omap4-common/include/video/dsscomp.h:1:0: error: unterminated #ifndef
#ifndef _LINUX_DSSCOMP_H
^
In file included from /home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/android-display.h:19:0,
from /home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/android-display.c:27:
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:16:44: warning: 'struct dss2_ovl_info' declared inside parameter list [enabled by default]
int dsscomp_set_ovl(dsscomp_t comp, struct dss2_ovl_info *ovl);
^
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:16:44: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:17:52: warning: 'struct dss2_ovl_info' declared inside parameter list [enabled by default]
int dsscomp_get_ovl(dsscomp_t comp, u32 ix, struct dss2_ovl_info *ovl);
^
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:18:44: warning: 'struct dss2_mgr_info' declared inside parameter list [enabled by default]
int dsscomp_set_mgr(dsscomp_t comp, struct dss2_mgr_info *mgr);
^
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:19:44: warning: 'struct dss2_mgr_info' declared inside parameter list [enabled by default]
int dsscomp_get_mgr(dsscomp_t comp, struct dss2_mgr_info *mgr);
^
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:21:11: warning: 'struct dss2_rect_t' declared inside parameter list [enabled by default]
struct dss2_rect_t win);
^
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:21:11: warning: 'enum dsscomp_setup_mode' declared inside parameter list [enabled by default]
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:29:4: warning: 'struct dsscomp_setup_dispc_data' declared inside parameter list [enabled by default]
void (*cb_fn)(void *, int), void *cb_arg);
^
make[3]: *** [arch/arm/plat-omap/android-display.o] Error 1
CC arch/arm/mach-omap2/lge/cx2/cx2_i2c.o
In file included from /home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/omap_dsscomp.c:29:0:
/home/a/l/kernel/lge/omap4-common/include/video/dsscomp.h:1:0: error: unterminated #ifndef
#ifndef _LINUX_DSSCOMP_H
^
In file included from /home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:5:0,
from /home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/omap_dsscomp.c:30:
/home/a/l/kernel/lge/omap4-common/include/video/dsscomp.h:1:0: error: unterminated #ifndef
#ifndef _LINUX_DSSCOMP_H
^
In file included from /home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/omap_dsscomp.c:30:0:
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:16:44: warning: 'struct dss2_ovl_info' declared inside parameter list [enabled by default]
int dsscomp_set_ovl(dsscomp_t comp, struct dss2_ovl_info *ovl);
^
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:16:44: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:17:52: warning: 'struct dss2_ovl_info' declared inside parameter list [enabled by default]
int dsscomp_get_ovl(dsscomp_t comp, u32 ix, struct dss2_ovl_info *ovl);
^
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:18:44: warning: 'struct dss2_mgr_info' declared inside parameter list [enabled by default]
int dsscomp_set_mgr(dsscomp_t comp, struct dss2_mgr_info *mgr);
^
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:19:44: warning: 'struct dss2_mgr_info' declared inside parameter list [enabled by default]
int dsscomp_get_mgr(dsscomp_t comp, struct dss2_mgr_info *mgr);
^
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:21:11: warning: 'struct dss2_rect_t' declared inside parameter list [enabled by default]
struct dss2_rect_t win);
^
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:21:11: warning: 'enum dsscomp_setup_mode' declared inside parameter list [enabled by default]
/home/a/l/kernel/lge/omap4-common/arch/arm/plat-omap/include/plat/dsscomp.h:29:4: warning: 'struct dsscomp_setup_dispc_data' declared inside parameter list [enabled by default]
void (*cb_fn)(void *, int), void *cb_arg);
^
make[3]: *** [arch/arm/plat-omap/omap_dsscomp.o] Error 1
make[2]: *** [arch/arm/plat-omap] Error 2
make[2]: *** Waiting for unfinished jobs....
../../../../../../kernel/lge/omap4-common/mm/page_io.c: In function 'end_swap_bio_read':
../../../../../../kernel/lge/omap4-common/mm/page_io.c:96:3: error: implicit declaration of function 'page_swap_info' [-Werror=implicit-function-declaration]
sis = page_swap_info(page);
^
../../../../../../kernel/lge/omap4-common/mm/page_io.c:96:7: warning: assignment makes pointer from integer without a cast [enabled by default]
sis = page_swap_info(page);
^
cc1: some warnings being treated as errors
make[3]: *** [mm/page_io.o] Error 1
make[2]: *** [mm] Error 2
CC arch/arm/mach-omap2/omap_ram_console.o
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/hsmmc.c:337:35: error: 'SDIO_VENDOR_ID_TI' undeclared here (not in a function)
.vendor = SDIO_VENDOR_ID_TI,
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/hsmmc.c:338:35: error: 'SDIO_DEVICE_ID_TI_WL12xx' undeclared here (not in a function)
.device = SDIO_DEVICE_ID_TI_WL12xx,
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/hsmmc.c: In function 'omap_hsmmc_pdata_init':
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/hsmmc.c:519:25: error: implicit declaration of function 'machine_is_omap_4430sdp' [-Werror=implicit-function-declaration]
if (machine_is_omap_4430sdp())
^
cc1: some warnings being treated as errors
make[3]: *** [arch/arm/mach-omap2/hsmmc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
CC drivers/mfd/twl-core.o
CC drivers/mfd/twl4030-irq.o
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/cx2_i2c.c:720:2: error: unknown field 'gpio_mhl' specified in initializer
.gpio_mhl = GPIO_MHL_SEL,
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/cx2_i2c.c:720:2: warning: excess elements in struct initializer [enabled by default]
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/cx2_i2c.c:720:2: warning: (near initialization for 'muic_pdata') [enabled by default]
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/cx2_i2c.c:721:2: error: unknown field 'gpio_ifx_vbus' specified in initializer
.gpio_ifx_vbus = GPIO_IFX_USB_VBUS_EN,
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/cx2_i2c.c:721:2: warning: excess elements in struct initializer [enabled by default]
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/cx2_i2c.c:721:2: warning: (near initialization for 'muic_pdata') [enabled by default]
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/cx2_i2c.c: In function 'lge_i2c_init':
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/cx2_i2c.c:906:6: warning: unused variable 'fixed_rev' [-Wunused-variable]
int fixed_rev = 0;
^
make[5]: *** [arch/arm/mach-omap2/lge/cx2/cx2_i2c.o] Error 1
make[4]: *** [arch/arm/mach-omap2/lge/cx2] Error 2
make[3]: *** [arch/arm/mach-omap2/lge] Error 2
make[2]: *** [arch/arm/mach-omap2] Error 2
CC drivers/mfd/twl6030-irq.o
CC drivers/muic/muic_class.o
CC drivers/input/touchscreen/touch_synaptics_s3000.o
CC drivers/mfd/twl4030-power.o
CC drivers/mfd/twl6030-pwm.o
CC drivers/muic/muic_client_class.o
CC drivers/mtd/mtdcore.o
CC drivers/muic/dp3t.o
CC drivers/mtd/mtdsuper.o
CC drivers/net/mii.o
CC drivers/net/ks8851.o
CC drivers/net/Space.o
CC drivers/muic/usif.o
CC drivers/mtd/mtdconcat.o
LD drivers/nfc/built-in.o
CC drivers/muic/fota.o
../../../../../../kernel/lge/omap4-common/drivers/muic/usif.c: In function 'usif_switch_ctrl':
../../../../../../kernel/lge/omap4-common/drivers/muic/usif.c:175:3: warning: 'return' with a value, in function returning void [enabled by default]
return 1;
^
CC drivers/net/loopback.o
CC drivers/muic/muic_tsu5611.o
LD drivers/platform/built-in.o
CC drivers/net/ppp_generic.o
CC drivers/muic/muic_tsu5611_cx2.o
CC drivers/power/power_supply_core.o
CC drivers/mtd/mtdpart.o
CC drivers/net/ppp_async.o
CC drivers/regulator/core.o
CC drivers/net/ppp_synctty.o
CC drivers/mtd/mtdchar.o
CC drivers/net/ppp_deflate.o
CC drivers/omap_hsi/xmd-tty.o
CC drivers/net/bsd_comp.o
CC drivers/net/ppp_mppe.o
CC drivers/mtd/mtd_blkdevs.o
CC drivers/net/pppox.o
CC drivers/mtd/mtdblock.o
CC drivers/omap_hsi/xmd-rmnet.o
CC drivers/regulator/dummy.o
CC drivers/regulator/fixed.o
CC drivers/omap_hsi/xmd-hsi-mcm.o
../../../../../../kernel/lge/omap4-common/drivers/mfd/twl-core.c: In function 'add_children':
../../../../../../kernel/lge/omap4-common/drivers/mfd/twl-core.c:708:13: error: 'struct twl4030_bci_platform_data' has no member named 'errata'
pdata->bci->errata = errata;
^
../../../../../../kernel/lge/omap4-common/drivers/mfd/twl-core.c: In function 'twl_probe':
../../../../../../kernel/lge/omap4-common/drivers/mfd/twl-core.c:1423:15: error: 'TWL6032_ERRATA_DB00119490' undeclared (first use in this function)
errata |= TWL6032_ERRATA_DB00119490;
^
../../../../../../kernel/lge/omap4-common/drivers/mfd/twl-core.c:1423:15: note: each undeclared identifier is reported only once for each function it appears in
make[4]: *** [drivers/mfd/twl-core.o] Error 1
make[4]: *** Waiting for unfinished jobs....
CC drivers/omap_hsi/xmd_hsi_mem.o
CC drivers/net/pppoe.o
CC drivers/mtd/chips/chipreg.o
CC drivers/net/pppolac.o
CC drivers/omap_hsi/xmd-hsi-ll.o
CC drivers/regulator/twl-regulator.o
CC drivers/omap_hsi/hsi_driver.o
LD drivers/mtd/chips/built-in.o
CC drivers/net/pppopns.o
LD drivers/mtd/devices/built-in.o
CC drivers/omap_hsi/hsi_driver_dma.o
CC drivers/net/slhc.o
CC drivers/omap_hsi/hsi_driver_int.o
CC drivers/remoteproc/remoteproc.o
LD drivers/mtd/lpddr/built-in.o
LD drivers/mtd/maps/built-in.o
CC drivers/net/tun.o
CC drivers/remoteproc/omap_remoteproc.o
CC drivers/omap_hsi/hsi_driver_if.o
CC drivers/mtd/nand/nand_ids.o
CC drivers/omap_hsi/hsi_driver_bus.o
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c: In function 'synaptics_ts_get_data':
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c:254:33: error: 'struct t_data' has no member named 'status'
data->curr_data[finger_index].status = FINGER_PRESSED;
^
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c:254:43: error: 'FINGER_PRESSED' undeclared (first use in this function)
data->curr_data[finger_index].status = FINGER_PRESSED;
^
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c:254:43: note: each undeclared identifier is reported only once for each function it appears in
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c: In function 'get_ic_info':
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c:414:18: error: 'struct touch_fw_info' has no member named 'ic_fw_identifier'
snprintf(fw_info->ic_fw_identifier, sizeof(fw_info->ic_fw_identifier),
^
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c:414:52: error: 'struct touch_fw_info' has no member named 'ic_fw_identifier'
snprintf(fw_info->ic_fw_identifier, sizeof(fw_info->ic_fw_identifier),
^
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c:416:18: error: 'struct touch_fw_info' has no member named 'ic_fw_version'
snprintf(fw_info->ic_fw_version, sizeof(fw_info->ic_fw_version), "%d", ts->fw_info.fw_rev);
^
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c:416:49: error: 'struct touch_fw_info' has no member named 'ic_fw_version'
snprintf(fw_info->ic_fw_version, sizeof(fw_info->ic_fw_version), "%d", ts->fw_info.fw_rev);
^
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c: In function 'synaptics_ts_fw_upgrade':
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c:678:35: error: 'struct touch_fw_info' has no member named 'fw_upgrade'
ret = FirmwareUpgrade(ts, fw_info->fw_upgrade.fw_path);
^
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c: At top level:
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c:761:2: warning: initialization from incompatible pointer type [enabled by default]
.data = synaptics_ts_get_data,
^
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c:761:2: warning: (near initialization for 'synaptics_ts_driver.data') [enabled by default]
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c:763:2: warning: initialization from incompatible pointer type [enabled by default]
.fw_upgrade = synaptics_ts_fw_upgrade,
^
../../../../../../kernel/lge/omap4-common/drivers/input/touchscreen/touch_synaptics_s3000.c:763:2: warning: (near initialization for 'synaptics_ts_driver.fw_upgrade') [enabled by default]
make[5]: *** [drivers/input/touchscreen/touch_synaptics_s3000.o] Error 1
make[4]: *** [drivers/input/touchscreen] Error 2
make[3]: *** [drivers/input] Error 2
make[3]: *** Waiting for unfinished jobs....
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611.c: In function 'muic_is_retain_mode':
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611.c:366:58: error: 'RETAIN_MAX' undeclared (first use in this function)
if((muic_retain_mode < NO_RETAIN)||(muic_retain_mode >= RETAIN_MAX)) {
^
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611.c:366:58: note: each undeclared identifier is reported only once for each function it appears in
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611.c: In function 'muic_process_retain_mode':
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611.c:376:58: error: 'RETAIN_MAX' undeclared (first use in this function)
if((muic_retain_mode < NO_RETAIN)||(muic_retain_mode >= RETAIN_MAX)) {
^
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611.c:386:8: error: 'BOOT_MHL' undeclared (first use in this function)
case BOOT_MHL : muic_set_mode(MUIC_MHL); break;
^
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611.c: In function 'muic_tsu5611_probe':
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611.c:794:23: error: 'struct muic_platform_data' has no member named 'gpio_mhl'
dev->gpio_mhl = pdata->gpio_mhl;
^
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611.c:795:28: error: 'struct muic_platform_data' has no member named 'gpio_ifx_vbus'
dev->gpio_ifx_vbus = pdata->gpio_ifx_vbus;
^
make[4]: *** [drivers/muic/muic_tsu5611.o] Error 1
make[4]: *** Waiting for unfinished jobs....
LD drivers/net/arm/built-in.o
CC drivers/power/power_supply_sysfs.o
CC drivers/omap_hsi/hsi_driver_gpio.o
CC drivers/omap_hsi/hsi_driver_fifo.o
CC drivers/remoteproc/rpres.o
LD drivers/mtd/nand/built-in.o
CC drivers/omap_hsi/hsi_driver_debugfs.o
CC drivers/power/twl6030_bci_battery.o
make[3]: *** [drivers/mfd] Error 2
CC drivers/power/rt9524_charger.o
LD drivers/mtd/tests/built-in.o
LD drivers/omap_hsi/omap_hsi.o
LD drivers/mtd/mtd.o
CC drivers/mtd/onenand/onenand_base.o
LD drivers/omap_hsi/ifx.o
LD drivers/omap_hsi/built-in.o
CC drivers/mtd/onenand/onenand_bbt.o
CC drivers/remoteproc/rpres_dev.o
LD drivers/mtd/onenand/onenand.o
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c:82:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
extern void android_USB_disconnect();// for usb disconnect event
^
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c: In function 'muic_set_ap_usb_mode':
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c:225:3: warning: format '%d' expects argument of type 'int', but argument 3 has type 'struct i2c_client *' [-Wformat=]
printk("muic %s, client : %d", __func__, client);
^
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c: In function 'muic_process_retention_mode':
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c:312:12: error: 'BOOT_MHL' undeclared (first use in this function)
}else if (BOOT_MHL == muic_retain_mode){
^
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c:312:12: note: each undeclared identifier is reported only once for each function it appears in
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c: In function 'muic_tsu5611_detect_accessory':
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c:429:6: warning: unused variable 'loop' [-Wunused-variable]
s32 loop = 0;
^
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c: In function 'muic_int_stat':
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c:672:43: warning: backslash and newline separated by space [enabled by default]
(id_register_value == IDNO_1001) || \
^
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c: In function 'muic_int_stat_read':
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c:718:2: warning: passing argument 3 of 'muic_i2c_read_byte' from incompatible pointer type [enabled by default]
ret = muic_i2c_read_byte(client, INT_STATUS1, &value);
^
In file included from ../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c:39:0:
../../../../../../kernel/lge/omap4-common/include/linux/muic/muic.h:136:5: note: expected 'u8 *' but argument is of type 'u32 *'
s32 muic_i2c_read_byte(struct i2c_client *client, u8 addr, u8 *value);
^
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c: At top level:
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c:732:2: warning: initialization from incompatible pointer type [enabled by default]
.read_int_state = muic_int_stat_read,
^
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c:732:2: warning: (near initialization for 'muic_dev.read_int_state') [enabled by default]
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c: In function 'tsu5611_probe':
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c:766:23: error: 'struct muic_platform_data' has no member named 'gpio_mhl'
dev->gpio_mhl = pdata->gpio_mhl;
^
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c:767:28: error: 'struct muic_platform_data' has no member named 'gpio_ifx_vbus'
dev->gpio_ifx_vbus = pdata->gpio_ifx_vbus;
^
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c: In function 'muic_set_mhl_mode':
../../../../../../kernel/lge/omap4-common/drivers/muic/muic_tsu5611_cx2.c:139:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make[4]: *** [drivers/muic/muic_tsu5611_cx2.o] Error 1
make[3]: *** [drivers/muic] Error 2
LD drivers/mtd/onenand/built-in.o
LD drivers/mtd/built-in.o
CC drivers/net/wireless/bcmdhd/src/bcmsdio/sys/bcmsdh.o
CC drivers/net/wireless/bcmdhd/src/bcmsdio/sys/bcmsdh_linux.o
CC drivers/net/wireless/bcmdhd/src/bcmsdio/sys/bcmsdh_sdmmc.o
CC drivers/net/wireless/bcmdhd/src/bcmsdio/sys/bcmsdh_sdmmc_linux.o
CC drivers/net/wireless/bcmdhd/src/dhd/sys/dhd_cdc.o
CC drivers/net/wireless/bcmdhd/src/dhd/sys/dhd_common.o
CC drivers/net/wireless/bcmdhd/src/dhd/sys/dhd_custom_gpio.o
CC drivers/net/wireless/bcmdhd/src/dhd/sys/dhd_linux.o
CC drivers/net/wireless/bcmdhd/src/dhd/sys/dhd_linux_sched.o
LD drivers/power/power_supply.o
CC drivers/net/wireless/bcmdhd/src/dhd/sys/dhd_cfg80211.o
../../../../../../kernel/lge/omap4-common/drivers/power/twl6030_bci_battery.c: In function 'twl6030_bci_battery_probe':
../../../../../../kernel/lge/omap4-common/drivers/power/twl6030_bci_battery.c:2564:20: error: 'struct twl4030_bci_platform_data' has no member named 'errata'
di->errata = pdata->errata;
^
../../../../../../kernel/lge/omap4-common/drivers/power/twl6030_bci_battery.c:2640:11: error: 'struct twl4030_bci_platform_data' has no member named 'sense_resistor_mohm'
if (pdata->sense_resistor_mohm) {
^
../../../../../../kernel/lge/omap4-common/drivers/power/twl6030_bci_battery.c:2641:42: error: 'struct twl4030_bci_platform_data' has no member named 'sense_resistor_mohm'
di->current_max_scale = (62000) / pdata->sense_resistor_mohm;
^
../../../../../../kernel/lge/omap4-common/drivers/power/twl6030_bci_battery.c:2652:19: error: 'TWL6032_ERRATA_DB00119490' undeclared (first use in this function)
if (di->errata & TWL6032_ERRATA_DB00119490) {
^
../../../../../../kernel/lge/omap4-common/drivers/power/twl6030_bci_battery.c:2652:19: note: each undeclared identifier is reported only once for each function it appears in
make[4]: *** [drivers/power/twl6030_bci_battery.o] Error 1
make[3]: *** [drivers/power] Error 2
CC drivers/net/wireless/bcmdhd/src/dhd/sys/dhd_sdio.o
CC drivers/net/wireless/bcmdhd/src/shared/aiutils.o
CC drivers/net/wireless/bcmdhd/src/shared/bcmevent.o
../../../../../../kernel/lge/omap4-common/drivers/regulator/twl-regulator.c:923:29: warning: 'twl6030_external_control_pin_ops' defined but not used [-Wunused-variable]
static struct regulator_ops twl6030_external_control_pin_ops = {
^
CC drivers/net/wireless/bcmdhd/src/shared/bcmutils.o
CC drivers/net/wireless/bcmdhd/src/shared/bcmwifi/src/bcmwifi_channels.o
CC drivers/net/wireless/bcmdhd/src/shared/hndpmu.o
CC drivers/net/wireless/bcmdhd/src/shared/linux_osl.o
CC drivers/net/wireless/bcmdhd/src/shared/sbutils.o
CC drivers/net/wireless/bcmdhd/src/shared/siutils.o
CC drivers/net/wireless/bcmdhd/src/wl/sys/wl_android.o
CC drivers/net/wireless/bcmdhd/src/wl/sys/wl_cfg80211.o
CC drivers/net/wireless/bcmdhd/src/wl/sys/wl_cfgp2p.o
../../../../../../kernel/lge/omap4-common/drivers/net/wireless/bcmdhd/src/wl/sys/wl_cfg80211.c:68:0: warning: "LINUX_VERSION_CODE" redefined [enabled by default]
#define LINUX_VERSION_CODE KERNEL_VERSION(3, 4, 0)
^
In file included from ../../../../../../kernel/lge/omap4-common/drivers/net/wireless/bcmdhd/src/include/linuxver.h:31:0,
from ../../../../../../kernel/lge/omap4-common/drivers/net/wireless/bcmdhd/src/wl/sys/wl_cfg80211.c:28:
include/linux/version.h:1:0: note: this is the location of the previous definition
#define LINUX_VERSION_CODE 196639
^
CC drivers/net/wireless/bcmdhd/src/wl/sys/wldev_common.o
CC drivers/net/wireless/bcmdhd/src/wl/sys/wl_linux_mon.o
CC drivers/net/wireless/bcmdhd/src/wl/sys/wl_roam.o
../../../../../../kernel/lge/omap4-common/drivers/net/wireless/bcmdhd/src/wl/sys/wl_linux_mon.c:44:0: warning: "LINUX_VERSION_CODE" redefined [enabled by default]
#define LINUX_VERSION_CODE KERNEL_VERSION(3, 4, 0)
^
In file included from ../../../../../../kernel/lge/omap4-common/drivers/net/wireless/bcmdhd/src/include/linuxver.h:31:0,
from ../../../../../../kernel/lge/omap4-common/drivers/net/wireless/bcmdhd/src/include/linux_osl.h:165,
from ../../../../../../kernel/lge/omap4-common/drivers/net/wireless/bcmdhd/src/include/osl.h:44,
from ../../../../../../kernel/lge/omap4-common/drivers/net/wireless/bcmdhd/src/wl/sys/wl_linux_mon.c:27:
include/linux/version.h:1:0: note: this is the location of the previous definition
#define LINUX_VERSION_CODE 196639
^
LD drivers/net/wireless/bcmdhd/bcmdhd.o
LD drivers/net/wireless/bcmdhd/built-in.o
LD drivers/net/wireless/built-in.o
LD drivers/remoteproc/built-in.o
LD drivers/net/built-in.o
LD drivers/regulator/built-in.o
make[2]: *** [drivers] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make: *** [TARGET_KERNEL_BINARIES] Error 2
#### make failed to build some targets (01:34 (mm:ss)) ####
I tried to copy again cx2_i2c.c but still no result.
No, check your i2c files in drivers and include file. Best way now is to check my latest commits and see which files were changed in drivers/i2c, could be that i left out some code specific to cx2, cause mine p920. Also diff with l9 kernel those folders.
Sent from my LG-D620 using XDA Free mobile app
The only difference was in drivers/i2c/busses/i2c-omap.c file. Site have this error:
Code:
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
CHK include/linux/version.h
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make -C kernel/lge/omap4-common O=/home/a/l/out/target/product/p720/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/a/l/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" zImage
make[1]: Entering directory `/home/a/l/kernel/lge/omap4-common'
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
Using /home/a/l/kernel/lge/omap4-common as source for kernel
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[3]: `include/generated/mach-types.h' is up to date.
CALL /home/a/l/kernel/lge/omap4-common/scripts/checksyscalls.sh
CHK include/generated/compile.h
CC arch/arm/mach-omap2/lge/board-lg-wifi.o
CC arch/arm/mach-omap2/lge/cx2/../board-lg-wifi.o
CC arch/arm/mach-omap2/lge/cx2/cx2_i2c.o
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/cx2_i2c.c:720:2: error: unknown field 'gpio_mhl' specified in initializer
.gpio_mhl = GPIO_MHL_SEL,
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/cx2_i2c.c:720:2: warning: excess elements in struct initializer [enabled by default]
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/cx2_i2c.c:720:2: warning: (near initialization for 'muic_pdata') [enabled by default]
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/cx2_i2c.c:721:2: error: unknown field 'gpio_ifx_vbus' specified in initializer
.gpio_ifx_vbus = GPIO_IFX_USB_VBUS_EN,
^
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/cx2_i2c.c:721:2: warning: excess elements in struct initializer [enabled by default]
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/cx2_i2c.c:721:2: warning: (near initialization for 'muic_pdata') [enabled by default]
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/cx2_i2c.c: In function 'lge_i2c_init':
../../../../../../kernel/lge/omap4-common/arch/arm/mach-omap2/lge/cx2/cx2_i2c.c:906:6: warning: unused variable 'fixed_rev' [-Wunused-variable]
int fixed_rev = 0;
^
make[5]: *** [arch/arm/mach-omap2/lge/cx2/cx2_i2c.o] Error 1
make[4]: *** [arch/arm/mach-omap2/lge/cx2] Error 2
make[3]: *** [arch/arm/mach-omap2/lge] Error 2
make[2]: *** [arch/arm/mach-omap2] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/a/l/kernel/lge/omap4-common'
make: *** [TARGET_KERNEL_BINARIES] Error 2
#### make failed to build some targets (01:35 (mm:ss)) ####
This is my kernel now https://github.com/lung1/kernel_lge_p720
I didn't have much time togo through your kernel, but what did catch my eye was that your lge-common.c is wrong, the changes you made. Swap out your file with the one from l9. Also copy the error mesg into google and it might bring up some results, i alway do that.
Sent from my LG-D620 using XDA Free mobile app
Ok perfect. Thanks so much for your help
I just want to tell you how I added support for cx2 and cosmo. I searched in this kernel https://github.com/CyanogenMod/lge-kernel-omap4 for all cosmo occurrences and added each and every instance to https://github.com/dhiru1602/lge-kernel-omap4 . Is that ok?
Or I should just add and change files in the arch/arm/mach-omap2 folder?
With your help I build the bootimage and recoveryimage with you kernel. I added here https://github.com/lung1/kernel_lge_p720/tree/cm-10.2-shaqfu786 . So many thanks!
But still the recoveryimage stucks into bootloop.
Thanks again! Trying to build ROM.
Here is the ROM result
Code:
[email protected]:~/l$ make -j 32
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.1.1
CM_VERSION=12.1-20150630-UNOFFICIAL-p720
TARGET_PRODUCT=cm_p720
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.16.0-41-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=LMY48B
OUT_DIR=/home/a/l/out
============================================
"ebtables is disabled on this build"
find: `omapmmlib/java': No such file or directory
find: `omapmmlib/java': No such file or directory
find: `dummy': No such file or directory
PRODUCT_COPY_FILES vendor/cm/prebuilt/common/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/etc/wifi/wpa_supplicant.conf'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/etc/wifi/wpa_supplicant.conf'
PRODUCT_COPY_FILES device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.
PRODUCT_COPY_FILES device/generic/goldfish/camera/media_profiles.xml:system/etc/media_profiles.xml ignored.
PRODUCT_COPY_FILES device/generic/goldfish/camera/media_codecs.xml:system/etc/media_codecs.xml ignored.
PRODUCT_COPY_FILES hardware/libhardware_legacy/audio/audio_policy.conf:system/etc/audio_policy.conf ignored.
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libril.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libril.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/hw/lights.omap4.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/hw/lights.omap4.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/hw/camera.omap4.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/hw/camera.omap4.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/hw/nfc.default.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/hw/nfc.default.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libtinyalsa.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libtinyalsa.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/bin/rild'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/bin/rild'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libmm_osal.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libmm_osal.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX_Core.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX_Core.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libion.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libion.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libtiutils.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libtiutils.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libdomx.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libdomx.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.MISC.SAMPLE.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.MISC.SAMPLE.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.CAMERA.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.CAMERA.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.DECODER.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.DECODER.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.H264E.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.H264E.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.MPEG4E.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.MPEG4E.so'
build/core/Makefile:46: warning: overriding commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.DECODER.secure.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/home/a/l/out/target/product/p720/system/lib/libOMX.TI.DUCATI1.VIDEO.DECODER.secure.so'
No private recovery resources for TARGET_DEVICE p720
make -C kernel/lge/oomap4-common O=/home/a/l/out/target/product/p720/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/a/l/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= cyanogenmod_p720_defconfig
make[1]: Entering directory `/home/a/l/kernel/lge/oomap4-common'
target thumb C++: libcamera_client <= frameworks/av/camera/ICameraClient.cpp
target thumb C++: libcamera_client <= frameworks/av/camera/ICameraService.cpp
target SharedLib: libcamera_metadata (/home/a/l/out/target/product/p720/obj/SHARED_LIBRARIES/libcamera_metadata_intermediates/LINKED/libcamera_metadata.so)
target thumb C++: libgui <= frameworks/native/libs/gui/IGraphicBufferProducer.cpp
target thumb C++: libgui <= frameworks/native/libs/gui/IProducerListener.cpp
target thumb C++: libgui <= frameworks/native/libs/gui/ISensorEventConnection.cpp
target thumb C++: libgui <= frameworks/native/libs/gui/ISensorServer.cpp
target thumb C++: libgui <= frameworks/native/libs/gui/ISurfaceComposer.cpp
target thumb C++: libgui <= frameworks/native/libs/gui/ISurfaceComposerClient.cpp
target thumb C++: libgui <= frameworks/native/libs/gui/LayerState.cpp
target thumb C++: libgui <= frameworks/native/libs/gui/Sensor.cpp
target thumb C++: libgui <= frameworks/native/libs/gui/SensorEventQueue.cpp
target thumb C++: libgui <= frameworks/native/libs/gui/SensorManager.cpp
frameworks/av/camera/ICameraClient.cpp: In member function 'virtual void android::BpCameraClient::notifyCallback(int32_t, int32_t, int32_t)':
frameworks/av/camera/ICameraClient.cpp:49:63: error: 'CAMERA_FRAME_DATA_FD' was not declared in this scope
if ((msgType == CAMERA_MSG_PREVIEW_FRAME) && (ext1 == CAMERA_FRAME_DATA_FD)) {
^
frameworks/av/camera/ICameraClient.cpp: In member function 'virtual android::status_t android::BnCameraClient::onTransact(uint32_t, const android::Parcel&, android::Parcel*, uint32_t)':
frameworks/av/camera/ICameraClient.cpp:101:67: error: 'CAMERA_FRAME_DATA_FD' was not declared in this scope
if ((msgType == CAMERA_MSG_PREVIEW_FRAME) && (ext1 == CAMERA_FRAME_DATA_FD)) {
^
make: *** [/home/a/l/out/target/product/p720/obj/SHARED_LIBRARIES/libcamera_client_intermediates/ICameraClient.o] Error 1
make: *** Waiting for unfinished jobs....
target thumb C++: libgui <= frameworks/native/libs/gui/StreamSplitter.cpp
GEN /home/a/l/out/target/product/p720/obj/KERNEL_OBJ/Makefile
In file included from system/media/camera/include/system/camera_metadata.h:23:0,
from frameworks/av/include/camera/CameraMetadata.h:20,
from frameworks/av/include/camera/CaptureResult.h:21,
from frameworks/av/include/camera/camera2/ICameraDeviceCallbacks.h:27,
from frameworks/av/camera/ICameraService.cpp:37:
system/media/camera/include/system/camera_vendor_tags.h:36:8: error: redefinition of 'struct vendor_tag_ops'
struct vendor_tag_ops {
^
In file included from frameworks/av/include/camera/ICameraServiceListener.h:23:0,
from frameworks/av/camera/ICameraService.cpp:31:
device/lge/p720/include/hardware/camera_common.h:261:8: error: previous definition of 'struct vendor_tag_ops'
struct vendor_tag_ops {
^
make: *** [/home/a/l/out/target/product/p720/obj/SHARED_LIBRARIES/libcamera_client_intermediates/ICameraService.o] Error 1
frameworks/native/libs/gui/Sensor.cpp: In constructor 'android::Sensor::Sensor(const sensor_t*, int)':
frameworks/native/libs/gui/Sensor.cpp:236:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (mFlags != hwSensor->flags) {
^
#
# configuration written to .config
#
make[1]: Leaving directory `/home/a/l/kernel/lge/oomap4-common'
#### make failed to build some targets (01:34 (mm:ss)) ####
Ok, now work on device tree. Fault is with camera service, so check your include, kernel-headers, and camera folder. Again diff with mine and l9. Also in kernel plat-omap/android_display.c compare it with l9. Understand that my kernel im trying to build for 512mb device, so vram and some other carvouts you would have to use l9 carveouts to bring up display, like android_display.c for example. For now, fix device tree to get complete rom to compile, then we can trace error from the dmesg. You doing good so far, good luck.:thumbup:
Sent from my LG-D620 using XDA Free mobile app

[HELP] Learning to use Linaro toolchain - build error

Ey !
Im currently trying to build Euphoria OS for Nexus 5 using arm-cortex_a15-linux-gnueabihf-linaro_4.9.3-2015.03 toolchain from here.
I edited /build/envsetup.sh file like it :
Code:
# The gcc toolchain does not exists for windows/cygwin. In this case, do not reference it.
export ANDROID_TOOLCHAIN=
export ANDROID_TOOLCHAIN_2ND_ARCH=
local ARCH=$(get_build_var TARGET_ARCH)
case $ARCH in
x86) toolchaindir=x86/x86_64-linux-android-$targetgccversion/bin
;;
x86_64) toolchaindir=x86/x86_64-linux-android-$targetgccversion/bin
;;
arm) toolchaindir=arm/arm-cortex_a15-linux-gnueabihf-$targetgccversion/bin
;;
arm64) toolchaindir=aarch64/aarch64-linux-android-$targetgccversion/bin;
toolchaindir2=arm/arm-linux-androideabi-$targetgccversion2/bin
;;
mips|mips64) toolchaindir=mips/mips64el-linux-android-$targetgccversion/bin
;;
*)
echo "Can't find toolchain for unknown architecture: $ARCH"
toolchaindir=xxxxxxxxx
;;
esac
if [ -d "$gccprebuiltdir/$toolchaindir" ]; then
export ANDROID_TOOLCHAIN=$gccprebuiltdir/$toolchaindir
fi
if [ -d "$gccprebuiltdir/$toolchaindir2" ]; then
export ANDROID_TOOLCHAIN_2ND_ARCH=$gccprebuiltdir/$toolchaindir2
fi
unset ANDROID_KERNEL_TOOLCHAIN_PATH
case $ARCH in
arm)
# Legacy toolchain configuration used for ARM kernel compilation
toolchaindir=arm/arm-cortex_a15-linux-gnueabihf-$targetgccversion/bin
if [ -d "$gccprebuiltdir/$toolchaindir" ]; then
export ARM_EABI_TOOLCHAIN="$gccprebuiltdir/$toolchaindir"
ANDROID_KERNEL_TOOLCHAIN_PATH="$ARM_EABI_TOOLCHAIN":
fi
;;
*)
# No need to set ARM_EABI_TOOLCHAIN for other ARCHs
;;
esac
LINE 136 TO 178
I edited too, /build/core/combo/TARGET_linux-arm.mk, like it :
Code:
# Decouple NDK library selection with platform compiler version
$(combo_2nd_arch_prefix)TARGET_NDK_GCC_VERSION := linaro_4.9.3-2015.03
ifeq ($(strip $(TARGET_GCC_VERSION_EXP)),)
$(combo_2nd_arch_prefix)TARGET_GCC_VERSION := linaro_4.9.3-2015.03
LINE 37 TO 41
Then, i face this error :
Code:
[email protected]:~$ cd '/home/thomas/Bureau/Euphoria-OS'
[email protected]:~/Bureau/Euphoria-OS$ . build/envsetup.sh
including device/moto/shamu/vendorsetup.sh
including device/asus/tilapia/vendorsetup.sh
including device/asus/grouper/vendorsetup.sh
including device/asus/fugu/vendorsetup.sh
including device/asus/flo/vendorsetup.sh
including device/asus/deb/vendorsetup.sh
including device/samsung/manta/vendorsetup.sh
including device/lge/hammerhead/vendorsetup.sh
including device/lge/mako/vendorsetup.sh
including device/generic/mini-emulator-x86_64/vendorsetup.sh
including device/generic/mini-emulator-arm64/vendorsetup.sh
including device/generic/mini-emulator-mips/vendorsetup.sh
including device/generic/mini-emulator-x86/vendorsetup.sh
including device/generic/mini-emulator-armv7-a-neon/vendorsetup.sh
including device/htc/flounder/vendorsetup.sh
including vendor/eos/vendorsetup.sh
including sdk/bash_completion/adb.bash
[email protected]:~/Bureau/Euphoria-OS/$ brunch hammerhead
including vendor/eos/vendorsetup.sh
============================================
PLATFORM_VERSION_CODENAME=UNOFFICIAL
PLATFORM_VERSION=5.1.1
ROM_VERSION=1.1-hammerhead-UNOFFICIAL-20150708
TARGET_PRODUCT=eos_hammerhead
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_GCC_VERSION=linaro_4.9.3-2015.03
TARGET_NDK_GCC_VERSION=linaro_4.9.3-2015.03
TARGET_KERNEL_TOOLCHAIN=linaro_4.9.3-2015.03
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.16.0-30-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=LYZ28E
OUT_DIR=/home/thomas/Bureau/Euphoria-OS/out
============================================
============================================
PLATFORM_VERSION_CODENAME=UNOFFICIAL
PLATFORM_VERSION=5.1.1
ROM_VERSION=1.1-hammerhead-UNOFFICIAL-20150708
TARGET_PRODUCT=eos_hammerhead
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_GCC_VERSION=linaro_4.9.3-2015.03
TARGET_NDK_GCC_VERSION=linaro_4.9.3-2015.03
TARGET_KERNEL_TOOLCHAIN=linaro_4.9.3-2015.03
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.16.0-30-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=LYZ28E
OUT_DIR=/home/thomas/Bureau/Euphoria-OS/out
============================================
find: `dummy': No such file or directory
build/core/Makefile:47: warning: overriding commands for target `/home/thomas/Bureau/Euphoria-OS/out/target/product/hammerhead/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/base_rules.mk:552: warning: ignoring old commands for target `/home/thomas/Bureau/Euphoria-OS/out/target/product/hammerhead/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/Makefile:47: warning: overriding commands for target `/home/thomas/Bureau/Euphoria-OS/out/target/product/hammerhead/system/lib/hw/gps.msm8974.so'
build/core/base_rules.mk:552: warning: ignoring old commands for target `/home/thomas/Bureau/Euphoria-OS/out/target/product/hammerhead/system/lib/hw/gps.msm8974.so'
build/core/Makefile:47: warning: overriding commands for target `/home/thomas/Bureau/Euphoria-OS/out/target/product/hammerhead/system/lib/libgps.utils.so'
build/core/base_rules.mk:552: warning: ignoring old commands for target `/home/thomas/Bureau/Euphoria-OS/out/target/product/hammerhead/system/lib/libgps.utils.so'
build/core/Makefile:47: warning: overriding commands for target `/home/thomas/Bureau/Euphoria-OS/out/target/product/hammerhead/system/lib/libloc_core.so'
build/core/base_rules.mk:552: warning: ignoring old commands for target `/home/thomas/Bureau/Euphoria-OS/out/target/product/hammerhead/system/lib/libloc_core.so'
build/core/Makefile:47: warning: overriding commands for target `/home/thomas/Bureau/Euphoria-OS/out/target/product/hammerhead/system/lib/libloc_eng.so'
build/core/base_rules.mk:552: warning: ignoring old commands for target `/home/thomas/Bureau/Euphoria-OS/out/target/product/hammerhead/system/lib/libloc_eng.so'
PRODUCT_COPY_FILES vendor/eos/prebuilt/common/vendor/lib/drm/libdrmwvmplugin.so:system/vendor/lib/drm/libdrmwvmplugin.so ignored.
build/core/Makefile:47: warning: overriding commands for target `/home/thomas/Bureau/Euphoria-OS/out/target/product/hammerhead/system/vendor/lib/mediadrm/libdrmclearkeyplugin.so'
build/core/base_rules.mk:552: warning: ignoring old commands for target `/home/thomas/Bureau/Euphoria-OS/out/target/product/hammerhead/system/vendor/lib/mediadrm/libdrmclearkeyplugin.so'
PRODUCT_COPY_FILES vendor/eos/prebuilt/common/vendor/lib/mediadrm/libwvdrmengine.so:system/vendor/lib/mediadrm/libwvdrmengine.so ignored.
No private recovery resources for TARGET_DEVICE hammerhead
host C: acp <= build/tools/acp/acp.c
host StaticLib: libmincrypt_32 (/home/thomas/Bureau/Euphoria-OS/out/host/linux-x86/obj32/STATIC_LIBRARIES/libmincrypt_intermediates/libmincrypt.a)
make -C kernel/lge/hammerhead O=/home/thomas/Bureau/Euphoria-OS/out/target/product/hammerhead/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /home/thomas/Bureau/Euphoria-OS/prebuilts/gcc/linux-x86/arm/arm-cortex_a15-linux-gnueabihf-linaro_4.9.3-2015.03/bin/arm-eabi-" headers_install
host StaticLib: libhost_32 (/home/thomas/Bureau/Euphoria-OS/out/host/linux-x86/obj32/STATIC_LIBRARIES/libhost_intermediates/libhost.a)
make[1]: Entering directory `/home/thomas/Bureau/Euphoria-OS/kernel/lge/hammerhead'
host Executable: mkbootfs (/home/thomas/Bureau/Euphoria-OS/out/host/linux-x86/obj32/EXECUTABLES/mkbootfs_intermediates/mkbootfs)
host StaticLib: libsepol_32 (/home/thomas/Bureau/Euphoria-OS/out/host/linux-x86/obj32/STATIC_LIBRARIES/libsepol_intermediates/libsepol.a)
host StaticLib: libpcre_32 (/home/thomas/Bureau/Euphoria-OS/out/host/linux-x86/obj32/STATIC_LIBRARIES/libpcre_intermediates/libpcre.a)
/bin/bash: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-linaro_4.9.3-2015.03/bin/arm-linux-androideabi-gcc: No such file or directory
make: *** [/home/thomas/Bureau/Euphoria-OS/out/target/product/hammerhead/obj/lib/crtbegin_static1.o] Error 127
make: *** Waiting for unfinished jobs....
CHK include/linux/version.h
make[1]: Leaving directory `/home/thomas/Bureau/Euphoria-OS/kernel/lge/hammerhead'
#### make failed to build some targets (08:04 (mm:ss)) ####
real 8m4.067s
user 2m41.268s
sys 0m32.045s
[email protected]:~/Bureau/Euphoria-OS$
I cant get rid of this error.
Does somebody knows what files do i need to edit to correctly build Euphoria ?
Thanks !
I used this thread to switch the tool chain ... Try it.
shri_chanakya said:
I used this thread to switch the tool chain ... Try it.
Click to expand...
Click to collapse
Trying right now, thanks man !
EDIT : Some errors i sucessfully fixed. Running now my optimized build

Android AOSP source code's static analyser don't work.

My computer use Ubuntu 16.04 X64 LTS, and I compile Android 6.0's source code.And I success compile all code.
Then, CODE_ROOT/build/envsetup.sh is every insteresting.Look this function
Code:
# Return driver for "make", if any (eg. static analyzer)
function getdriver()
{
local T="$1"
test "$WITH_STATIC_ANALYZER" = "0" && unset WITH_STATIC_ANALYZER
if [ -n "$WITH_STATIC_ANALYZER" ]; then
echo "\
$T/prebuilts/misc/linux-x86/analyzer/tools/scan-build/scan-build \
--use-analyzer $T/prebuilts/misc/linux-x86/analyzer/bin/analyzer \
--status-bugs \
--top=$T"
fi
}
then,I insert defect code in CODE_ROOT/frameworks/av/media/mediaserver/main_mediaserver.cpp
Code:
int main(int argc __unused, char** argv)
{
signal(SIGPIPE, SIG_IGN);
char value[PROPERTY_VALUE_MAX];
bool doLog = (property_get("ro.test_harness", value, "0") > 0) && (atoi(value) == 1);
int b = 3 / 0;
int bb = 3 / 0;
malloc(-1);
pid_t childPid;
// FIXME The advantage of making the process containing media.log service the parent process of
// the process that contains all the other real services, is that it allow
then, run these commands
Code:
WITH_STATIC_ANALYZER=1
mmm frameworks/av/media/mediaserver/
but,result is this
Code:
scan-build: Emitting reports for this run to '/tmp/scan-build-2016-10-10-214038-24568-1'.
make: Entering directory '/home/cao/code/aosp/6.0'
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-38-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_BUILD_TYPE=release
BUILD_ID=MRA58K
OUT_DIR=/mnt/big_disk/aosp/out/6.0
============================================
Import includes file: /mnt/big_disk/aosp/out/6.0/target/product/generic/obj/STATIC_LIBRARIES/libregistermsext_intermediates/import_includes
target thumb C++: libregistermsext <= frameworks/av/media/mediaserver/register.cpp
Export includes file: frameworks/av/media/mediaserver/Android.mk -- /mnt/big_disk/aosp/out/6.0/target/product/generic/obj/STATIC_LIBRARIES/libregistermsext_intermediates/export_includes
target StaticLib: libregistermsext (/mnt/big_disk/aosp/out/6.0/target/product/generic/obj/STATIC_LIBRARIES/libregistermsext_intermediates/libregistermsext.a)
Import includes file: /mnt/big_disk/aosp/out/6.0/target/product/generic/obj/EXECUTABLES/mediaserver_intermediates/import_includes
target thumb C++: mediaserver <= frameworks/av/media/mediaserver/main_mediaserver.cpp
frameworks/av/media/mediaserver/main_mediaserver.cpp: In function 'int main(int, char**)':
frameworks/av/media/mediaserver/main_mediaserver.cpp:49:15: warning: division by zero [-Wdiv-by-zero]
int b = 3 / 0;
^
frameworks/av/media/mediaserver/main_mediaserver.cpp:50:16: warning: division by zero [-Wdiv-by-zero]
int bb = 3 / 0;
^
frameworks/av/media/mediaserver/main_mediaserver.cpp:51:15: warning: ignoring return value of 'void* malloc(size_t)', declared with attribute warn_unused_result [-Wunused-result]
malloc(-1);
^
target Executable: mediaserver (/mnt/big_disk/aosp/out/6.0/target/product/generic/obj/EXECUTABLES/mediaserver_intermediates/LINKED/mediaserver)
target Unpacked: mediaserver (/mnt/big_disk/aosp/out/6.0/target/product/generic/obj/EXECUTABLES/mediaserver_intermediates/PACKED/mediaserver)
target Symbolic: mediaserver (/mnt/big_disk/aosp/out/6.0/target/product/generic/symbols/system/bin/mediaserver)
Export includes file: frameworks/av/media/mediaserver/Android.mk -- /mnt/big_disk/aosp/out/6.0/target/product/generic/obj/EXECUTABLES/mediaserver_intermediates/export_includes
target Strip: mediaserver (/mnt/big_disk/aosp/out/6.0/target/product/generic/obj/EXECUTABLES/mediaserver_intermediates/mediaserver)
Notice file: frameworks/av/media/mediaserver/NOTICE -- /mnt/big_disk/aosp/out/6.0/target/product/generic/obj/NOTICE_FILES/src//system/bin/mediaserver.txt
Notice file: frameworks/av/media/mediaserver/NOTICE -- /mnt/big_disk/aosp/out/6.0/target/product/generic/obj/NOTICE_FILES/src//system/lib/libregistermsext.a.txt
Install: /mnt/big_disk/aosp/out/6.0/target/product/generic/system/bin/mediaserver
make: Leaving directory '/home/cao/code/aosp/6.0'
scan-build: Removing directory '/tmp/scan-build-2016-10-10-214038-24568-1' because it contains no reports.
scan-build: No bugs found.
Obviously,clang warning these defects.But ! finally,<scan-build: No bugs found.>
WHY NO BUGS???
still fail
ic2y said:
My computer use Ubuntu 16.04 X64 LTS, and I compile Android 6.0's source code.And I success compile all code.
Then, CODE_ROOT/build/envsetup.sh is every insteresting.Look this function
Code:
# Return driver for "make", if any (eg. static analyzer)
function getdriver()
{
local T="$1"
test "$WITH_STATIC_ANALYZER" = "0" && unset WITH_STATIC_ANALYZER
if [ -n "$WITH_STATIC_ANALYZER" ]; then
echo "\
$T/prebuilts/misc/linux-x86/analyzer/tools/scan-build/scan-build \
--use-analyzer $T/prebuilts/misc/linux-x86/analyzer/bin/analyzer \
--status-bugs \
--top=$T"
fi
}
then,I insert defect code in CODE_ROOT/frameworks/av/media/mediaserver/main_mediaserver.cpp
Code:
int main(int argc __unused, char** argv)
{
signal(SIGPIPE, SIG_IGN);
char value[PROPERTY_VALUE_MAX];
bool doLog = (property_get("ro.test_harness", value, "0") > 0) && (atoi(value) == 1);
int b = 3 / 0;
int bb = 3 / 0;
malloc(-1);
pid_t childPid;
// FIXME The advantage of making the process containing media.log service the parent process of
// the process that contains all the other real services, is that it allow
then, run these commands
Code:
WITH_STATIC_ANALYZER=1
mmm frameworks/av/media/mediaserver/
but,result is this
Code:
scan-build: Emitting reports for this run to '/tmp/scan-build-2016-10-10-214038-24568-1'.
make: Entering directory '/home/cao/code/aosp/6.0'
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-38-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_BUILD_TYPE=release
BUILD_ID=MRA58K
OUT_DIR=/mnt/big_disk/aosp/out/6.0
============================================
Import includes file: /mnt/big_disk/aosp/out/6.0/target/product/generic/obj/STATIC_LIBRARIES/libregistermsext_intermediates/import_includes
target thumb C++: libregistermsext <= frameworks/av/media/mediaserver/register.cpp
Export includes file: frameworks/av/media/mediaserver/Android.mk -- /mnt/big_disk/aosp/out/6.0/target/product/generic/obj/STATIC_LIBRARIES/libregistermsext_intermediates/export_includes
target StaticLib: libregistermsext (/mnt/big_disk/aosp/out/6.0/target/product/generic/obj/STATIC_LIBRARIES/libregistermsext_intermediates/libregistermsext.a)
Import includes file: /mnt/big_disk/aosp/out/6.0/target/product/generic/obj/EXECUTABLES/mediaserver_intermediates/import_includes
target thumb C++: mediaserver <= frameworks/av/media/mediaserver/main_mediaserver.cpp
frameworks/av/media/mediaserver/main_mediaserver.cpp: In function 'int main(int, char**)':
frameworks/av/media/mediaserver/main_mediaserver.cpp:49:15: warning: division by zero [-Wdiv-by-zero]
int b = 3 / 0;
^
frameworks/av/media/mediaserver/main_mediaserver.cpp:50:16: warning: division by zero [-Wdiv-by-zero]
int bb = 3 / 0;
^
frameworks/av/media/mediaserver/main_mediaserver.cpp:51:15: warning: ignoring return value of 'void* malloc(size_t)', declared with attribute warn_unused_result [-Wunused-result]
malloc(-1);
^
target Executable: mediaserver (/mnt/big_disk/aosp/out/6.0/target/product/generic/obj/EXECUTABLES/mediaserver_intermediates/LINKED/mediaserver)
target Unpacked: mediaserver (/mnt/big_disk/aosp/out/6.0/target/product/generic/obj/EXECUTABLES/mediaserver_intermediates/PACKED/mediaserver)
target Symbolic: mediaserver (/mnt/big_disk/aosp/out/6.0/target/product/generic/symbols/system/bin/mediaserver)
Export includes file: frameworks/av/media/mediaserver/Android.mk -- /mnt/big_disk/aosp/out/6.0/target/product/generic/obj/EXECUTABLES/mediaserver_intermediates/export_includes
target Strip: mediaserver (/mnt/big_disk/aosp/out/6.0/target/product/generic/obj/EXECUTABLES/mediaserver_intermediates/mediaserver)
Notice file: frameworks/av/media/mediaserver/NOTICE -- /mnt/big_disk/aosp/out/6.0/target/product/generic/obj/NOTICE_FILES/src//system/bin/mediaserver.txt
Notice file: frameworks/av/media/mediaserver/NOTICE -- /mnt/big_disk/aosp/out/6.0/target/product/generic/obj/NOTICE_FILES/src//system/lib/libregistermsext.a.txt
Install: /mnt/big_disk/aosp/out/6.0/target/product/generic/system/bin/mediaserver
make: Leaving directory '/home/cao/code/aosp/6.0'
scan-build: Removing directory '/tmp/scan-build-2016-10-10-214038-24568-1' because it contains no reports.
scan-build: No bugs found.
Obviously,clang warning these defects.But ! finally,<scan-build: No bugs found.>
WHY NO BUGS???
Click to expand...
Click to collapse

Categories

Resources