Compilation problems with [ROM][4.4.2][TeamCanjica] CODINAP - Galaxy Ace II Q&A, Help & Troubleshooting

Hi guys,
In order to familiarize myself with android development world I am trying to compile [ROM][4.4.2][TeamCanjica] CODINAP on Debian 7 64bits VM freshly created.
After lot of issues resolved thanks to community (thank you Poppmensa and Rox), I am now block with this issue in "brunch codinap" state :
Code:
Host TableGen: libclangFrontendTool (gen-opt-parser-defs) <= external/clang/include/clang/Driver/Options.td
Import includes file: /root/cyanogenmod/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libclangFrontendTool_intermediates/import_includes
host C++: libclangFrontendTool <= external/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
host StaticLib: libclangFrontendTool (/root/cyanogenmod/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libclangFrontendTool_intermediates/libclangFrontendTool.a)
Host Clang TableGen: libclangFrontend (gen-clang-attr-list) <= external/clang/include/clang/Basic/Attr.td
Host Clang TableGen: libclangFrontend (gen-clang-attr-classes) <= external/clang/include/clang/Basic/Attr.td
Host Clang TableGen: libclangFrontend (gen-clang-attr-parsed-attr-list) <= external/clang/include/clang/Basic/Attr.td
Host Clang TableGen: libclangFrontend (gen-clang-comment-command-list) <= external/clang/include/clang/AST/CommentCommands.td
Host Clang TableGen: libclangFrontend (gen-clang-comment-nodes) <= external/clang/include/clang/Basic/CommentNodes.td
Host Clang TableGen: libclangFrontend (gen-clang-diags-defs -clang-component=AST) <= external/clang/include/clang/Basic/Diagnostic.td
Host Clang TableGen: libclangFrontend (gen-clang-diags-defs -clang-component=Common) <= external/clang/include/clang/Basic/Diagnostic.td
Host Clang TableGen: libclangFrontend (gen-clang-diags-defs -clang-component=Driver) <= external/clang/include/clang/Basic/Diagnostic.td
Host Clang TableGen: libclangFrontend (gen-clang-diags-defs -clang-component=Frontend) <= external/clang/include/clang/Basic/Diagnostic.td
Host Clang TableGen: libclangFrontend (gen-clang-diags-defs -clang-component=Lex) <= external/clang/include/clang/Basic/Diagnostic.td
Host Clang TableGen: libclangFrontend (gen-clang-diags-defs -clang-component=Sema) <= external/clang/include/clang/Basic/Diagnostic.td
Host Clang TableGen: libclangFrontend (gen-clang-decl-nodes) <= external/clang/include/clang/Basic/DeclNodes.td
Host Clang TableGen: libclangFrontend (gen-clang-stmt-nodes) <= external/clang/include/clang/Basic/StmtNodes.td
Host TableGen: libclangFrontend (gen-opt-parser-defs) <= external/clang/include/clang/Driver/Options.td
Updating Clang version info.
Import includes file: /root/cyanogenmod/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libclangFrontend_intermediates/import_includes
[COLOR="Red"]host C++: libclangFrontend <= external/clang/lib/Frontend/ASTConsumers.cpp
make: *** [/root/cyanogenmod/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libclangFrontend_intermediates/ASTConsumers.o] Killed[/COLOR]
Is somebody have an idea to solve this?
Thanks in advance,

Did the build process stop? Or did it continue?
Gesendet von meinem GT-I9070 mit Tapatalk
---------- Post added at 05:36 PM ---------- Previous post was at 05:35 PM ----------
Why brunch codinap? Try lunch codinap ... What rom do you try? Cyanogenmod?
Gesendet von meinem GT-I9070 mit Tapatalk
---------- Post added at 05:37 PM ---------- Previous post was at 05:36 PM ----------
If it is Cyanogenmod try 'lunch cm_codinap-userdebug'
Gesendet von meinem GT-I9070 mit Tapatalk

Btw next time ask in q & a...
Sent from my GT-I8160 using Tapatalk

Flo0008 said:
Did the build process stop? Or did it continue?
Gesendet von meinem GT-I9070 mit Tapatalk
---------- Post added at 05:36 PM ---------- Previous post was at 05:35 PM ----------
Why brunch codinap? Try lunch codinap ... What rom do you try? Cyanogenmod?
Gesendet von meinem GT-I9070 mit Tapatalk
---------- Post added at 05:37 PM ---------- Previous post was at 05:36 PM ----------
If it is Cyanogenmod try 'lunch cm_codinap-userdebug'
Gesendet von meinem GT-I9070 mit Tapatalk
Click to expand...
Click to collapse
It's stop :crying:
Yes, it's Cyanogen CM11 for i8160P by TeamCanjica.
I used brunch codinap as mentionned by the instruction given by the team :
https://github.com/TeamCanjica/android_device_samsung_codinap
Anyway I will try your proposal.
[EDIT]
Here is the result of your two commands :
[email protected]:~/cyanogenmod/system# lunch codinap
Invalid lunch combo: codinap
[email protected]:~/cyanogenmod/system# lunch cm_codinap-userdebug
Looking for dependencies
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
CM_VERSION=11-20140430-UNOFFICIAL-codinap
TARGET_PRODUCT=cm_codinap
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.2.0-4-amd64-x86_64-with-debian-7.5
HOST_BUILD_TYPE=release
BUILD_ID=KVT49L
OUT_DIR=/root/cyanogenmod/system/out
============================================
Have to precise that it's my first Android build compilation so consider me as a newbee.

teddytsen said:
Btw next time ask in q & a...
Sent from my GT-I8160 using Tapatalk
Click to expand...
Click to collapse
Oups... sorry, I didn't know.

Flo0008 said:
Did the build process stop? Or did it continue?
Gesendet von meinem GT-I9070 mit Tapatalk
---------- Post added at 05:36 PM ---------- Previous post was at 05:35 PM ----------
Why brunch codinap? Try lunch codinap ... What rom do you try? Cyanogenmod?
Gesendet von meinem GT-I9070 mit Tapatalk
---------- Post added at 05:37 PM ---------- Previous post was at 05:36 PM ----------
If it is Cyanogenmod try 'lunch cm_codinap-userdebug'
Gesendet von meinem GT-I9070 mit Tapatalk
Click to expand...
Click to collapse
As lunch cm_codinap-userdebug failed I tried new command (brunch cm_codinap-userdebug) :
Code:
[email protected]:~/cyanogenmod/system# brunch cm_codinap-userdebug
including vendor/cm/vendorsetup.sh
Looking for dependencies
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
CM_VERSION=11-20140430-UNOFFICIAL-codinap
TARGET_PRODUCT=cm_codinap
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.2.0-4-amd64-x86_64-with-debian-7.5
HOST_BUILD_TYPE=release
BUILD_ID=KVT49L
OUT_DIR=/root/cyanogenmod/system/out
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
CM_VERSION=11-20140430-UNOFFICIAL-codinap
TARGET_PRODUCT=cm_codinap
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.2.0-4-amd64-x86_64-with-debian-7.5
HOST_BUILD_TYPE=release
BUILD_ID=KVT49L
OUT_DIR=/root/cyanogenmod/system/out
============================================
/root/cyanogenmod/system/out/target/product/codinap/obj/APPS/SignatureTest_intermediates
find: `src': No such file or directory
build/core/Makefile:44: warning: overriding commands for target `/root/cyanogenmod/system/out/target/product/codinap/system/etc/wifi/wpa_supplicant.conf'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/root/cyanogenmod/system/out/target/product/codinap/system/etc/wifi/wpa_supplicant.conf'
PRODUCT_COPY_FILES hardware/broadcom/wlan/bcmdhd/config/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf ignored.
PRODUCT_COPY_FILES hardware/broadcom/wlan/bcmdhd/config/p2p_supplicant_overlay.conf:system/etc/wifi/p2p_supplicant_overlay.conf ignored.
build/core/Makefile:44: warning: overriding commands for target `/root/cyanogenmod/system/out/target/product/codinap/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/root/cyanogenmod/system/out/target/product/codinap/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/Makefile:44: warning: overriding commands for target `/root/cyanogenmod/system/out/target/product/codinap/obj/lib/libril.so'
build/core/dynamic_binary.mk:117: warning: ignoring old commands for target `/root/cyanogenmod/system/out/target/product/codinap/obj/lib/libril.so'
build/core/Makefile:44: warning: overriding commands for target `/root/cyanogenmod/system/out/target/product/codinap/system/lib/libFFTEm.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/root/cyanogenmod/system/out/target/product/codinap/system/lib/libFFTEm.so'
build/core/Makefile:44: warning: overriding commands for target `/root/cyanogenmod/system/out/target/product/codinap/system/lib/libril.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/root/cyanogenmod/system/out/target/product/codinap/system/lib/libril.so'
build/core/Makefile:44: warning: overriding commands for target `/root/cyanogenmod/system/out/target/product/codinap/system/bin/rild'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/root/cyanogenmod/system/out/target/product/codinap/system/bin/rild'
build/core/Makefile:44: warning: overriding commands for target `/root/cyanogenmod/system/out/target/product/codinap/system/lib/libexpat.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/root/cyanogenmod/system/out/target/product/codinap/system/lib/libexpat.so'
build/core/Makefile:44: warning: overriding commands for target `/root/cyanogenmod/system/out/target/product/codinap/system/lib/libpower.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/root/cyanogenmod/system/out/target/product/codinap/system/lib/libpower.so'
build/core/Makefile:44: warning: overriding commands for target `/root/cyanogenmod/system/out/target/product/codinap/system/lib/libstlport.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/root/cyanogenmod/system/out/target/product/codinap/system/lib/libstlport.so'
No private recovery resources for TARGET_DEVICE codinap
build/core/tasks/kernel.mk:175: warning: overriding commands for target `TARGET_KERNEL_BINARIES'
device/samsung/u8500-common/shbootimg.mk:26: warning: ignoring old commands for target `TARGET_KERNEL_BINARIES'
make -C kernel/samsung/u8500 O=/root/cyanogenmod/system/out/target/product/codinap/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /root/cyanogenmod/system/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= cyanogenmod_i8160P_defconfig
make[1]: Entering directory `/root/cyanogenmod/system/kernel/samsung/u8500'
GEN /root/cyanogenmod/system/out/target/product/codinap/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#
make[1]: Leaving directory `/root/cyanogenmod/system/kernel/samsung/u8500'
make -C kernel/samsung/u8500 O=/root/cyanogenmod/system/out/target/product/codinap/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /root/cyanogenmod/system/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-" headers_install
make[1]: Entering directory `/root/cyanogenmod/system/kernel/samsung/u8500'
CHK include/linux/version.h
make[1]: Leaving directory `/root/cyanogenmod/system/kernel/samsung/u8500'
host C++: libclangFrontend <= external/clang/lib/Frontend/ASTMerge.cpp
host C++: libclangFrontend <= external/clang/lib/Frontend/ASTUnit.cpp
make: *** [/root/cyanogenmod/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libclangFrontend_intermediates/ASTUnit.o] Killed
[email protected]:~/cyanogenmod/system#
What is the difference between lunch cm_codinap-userdebug and lunch cm_codinap? If it would work, performance of device running a "userdebug" build would be impacted?

The brunch command combines lunch and make otapackage ...
Try this things:
. build/envsetup.sh
lunch cm_codinap-userdebug
and tell me errors or whatever you have now ...
Gesendet von meinem GT-I9070 mit Tapatalk
---------- Post added at 06:46 PM ---------- Previous post was at 06:42 PM ----------
Btw did you install all needed tools or did you only work with the instruction of TC on github?
Gesendet von meinem GT-I9070 mit Tapatalk
---------- Post added at 06:50 PM ---------- Previous post was at 06:46 PM ----------
I mean did you install the tools mentioned here:
http://forum.xda-developers.com/showthread.php?t=2351504
Gesendet von meinem GT-I9070 mit Tapatalk
---------- Post added at 06:51 PM ---------- Previous post was at 06:50 PM ----------
Install the tools until Point 4
Gesendet von meinem GT-I9070 mit Tapatalk

Flo0008 said:
The brunch command combines lunch and make otapackage ...
Try this things:
. build/envsetup.sh
lunch cm_codinap-userdebug
and tell me errors or whatever you have now ...
Gesendet von meinem GT-I9070 mit Tapatalk
---------- Post added at 06:46 PM ---------- Previous post was at 06:42 PM ----------
Btw did you install all needed tools or did you only work with the instruction of TC on github?
Gesendet von meinem GT-I9070 mit Tapatalk
---------- Post added at 06:50 PM ---------- Previous post was at 06:46 PM ----------
I mean did you install the tools mentioned here:
http://forum.xda-developers.com/showthread.php?t=2351504
Gesendet von meinem GT-I9070 mit Tapatalk
---------- Post added at 06:51 PM ---------- Previous post was at 06:50 PM ----------
Install the tools until Point 4
Gesendet von meinem GT-I9070 mit Tapatalk
Click to expand...
Click to collapse
Thank you for your support Flo0008,
Result of
Code:
. build/envsetup.sh
lunch cm_codinap-userdebug
was posted earlier.
It as a clean Debian 64 bit install. I just added buildessential package, git and ia32-libs.
I will look at your insteresting link on Monday. My compilation VM is not accessible during the weekend.
Thanks again, :good:

snyfear said:
Thank you for your support Flo0008,
Result of
Code:
. build/envsetup.sh
lunch cm_codinap-userdebug
was posted earlier.
It as a clean Debian 64 bit install. I just added buildessential package, git and ia32-libs.
I will look at your insteresting link on Monday. My compilation VM is not accessible during the weekend.
Thanks again, :good:
Click to expand...
Click to collapse
No problem You can ask everytime you want

Flo0008 said:
No problem You can ask everytime you want
Click to expand...
Click to collapse
Hi Flo0008,
Interesting compilation tutorial indeed, thank you.
I removed packages openjdk-7-jre openjdk-7-jdk and followed the 4 first point, and even the fifth.
Error is different now, but compilation still failed with brunch codinap command :
Code:
[email protected] ~/cyanogenmod/system $ brunch codinap
including vendor/cm/vendorsetup.sh
Looking for dependencies
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
CM_VERSION=11-20140504-UNOFFICIAL-codinap
TARGET_PRODUCT=cm_codinap
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.2.0-4-amd64-x86_64-with-debian-7.5
HOST_BUILD_TYPE=release
BUILD_ID=KVT49L
OUT_DIR=/root/cyanogenmod/system/out
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
CM_VERSION=11-20140504-UNOFFICIAL-codinap
TARGET_PRODUCT=cm_codinap
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.2.0-4-amd64-x86_64-with-debian-7.5
HOST_BUILD_TYPE=release
BUILD_ID=KVT49L
OUT_DIR=/root/cyanogenmod/system/out
============================================
/root/cyanogenmod/system/out/target/product/codinap/obj/APPS/SignatureTest_intermediates
find: `src': No such file or directory
build/core/Makefile:44: warning: overriding commands for target `/root/cyanogenmod/system/out/target/product/codinap/system/etc/wifi/wpa_supplicant.conf'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/root/cyanogenmod/system/out/target/product/codinap/system/etc/wifi/wpa_supplicant.conf'
PRODUCT_COPY_FILES hardware/broadcom/wlan/bcmdhd/config/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf ignored.
PRODUCT_COPY_FILES hardware/broadcom/wlan/bcmdhd/config/p2p_supplicant_overlay.conf:system/etc/wifi/p2p_supplicant_overlay.conf ignored.
build/core/Makefile:44: warning: overriding commands for target `/root/cyanogenmod/system/out/target/product/codinap/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/root/cyanogenmod/system/out/target/product/codinap/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/Makefile:44: warning: overriding commands for target `/root/cyanogenmod/system/out/target/product/codinap/obj/lib/libril.so'
build/core/dynamic_binary.mk:117: warning: ignoring old commands for target `/root/cyanogenmod/system/out/target/product/codinap/obj/lib/libril.so'
build/core/Makefile:44: warning: overriding commands for target `/root/cyanogenmod/system/out/target/product/codinap/system/lib/libFFTEm.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/root/cyanogenmod/system/out/target/product/codinap/system/lib/libFFTEm.so'
build/core/Makefile:44: warning: overriding commands for target `/root/cyanogenmod/system/out/target/product/codinap/system/lib/libril.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/root/cyanogenmod/system/out/target/product/codinap/system/lib/libril.so'
build/core/Makefile:44: warning: overriding commands for target `/root/cyanogenmod/system/out/target/product/codinap/system/bin/rild'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/root/cyanogenmod/system/out/target/product/codinap/system/bin/rild'
build/core/Makefile:44: warning: overriding commands for target `/root/cyanogenmod/system/out/target/product/codinap/system/lib/libexpat.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/root/cyanogenmod/system/out/target/product/codinap/system/lib/libexpat.so'
build/core/Makefile:44: warning: overriding commands for target `/root/cyanogenmod/system/out/target/product/codinap/system/lib/libpower.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/root/cyanogenmod/system/out/target/product/codinap/system/lib/libpower.so'
build/core/Makefile:44: warning: overriding commands for target `/root/cyanogenmod/system/out/target/product/codinap/system/lib/libstlport.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/root/cyanogenmod/system/out/target/product/codinap/system/lib/libstlport.so'
No private recovery resources for TARGET_DEVICE codinap
build/core/tasks/kernel.mk:175: warning: overriding commands for target `TARGET_KERNEL_BINARIES'
device/samsung/u8500-common/shbootimg.mk:26: warning: ignoring old commands for target `TARGET_KERNEL_BINARIES'
make -C kernel/samsung/u8500 O=/root/cyanogenmod/system/out/target/product/codinap/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/root/cyanogenmod/system/prebuilts/misc/linux-x86/ccache/ccache /root/cyanogenmod/system/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= cyanogenmod_i8160P_defconfig
make[1]: Entering directory `/root/cyanogenmod/system/kernel/samsung/u8500'
GEN /root/cyanogenmod/system/out/target/product/codinap/obj/KERNEL_OBJ/Makefile
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
#
# configuration written to .config
#
make[1]: Leaving directory `/root/cyanogenmod/system/kernel/samsung/u8500'
make -C kernel/samsung/u8500 O=/root/cyanogenmod/system/out/target/product/codinap/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/root/cyanogenmod/system/prebuilts/misc/linux-x86/ccache/ccache /root/cyanogenmod/system/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-" headers_install
make[1]: Entering directory `/root/cyanogenmod/system/kernel/samsung/u8500'
CHK include/linux/version.h
make[1]: Leaving directory `/root/cyanogenmod/system/kernel/samsung/u8500'
Header: /root/cyanogenmod/system/out/host/linux-x86/obj/include/libpng/png.h
Header: /root/cyanogenmod/system/out/host/linux-x86/obj/include/libpng/pngconf.h
Header: /root/cyanogenmod/system/out/target/product/codinap/obj/include/libpng/png.h
Header: /root/cyanogenmod/system/out/target/product/codinap/obj/include/libpng/pngconf.h
host C++: libclangFrontend <= external/clang/lib/Frontend/CacheTokens.cpp
host C++: libclangFrontend <= external/clang/lib/Frontend/ChainedDiagnosticConsumer.cpp
host C++: libclangFrontend <= external/clang/lib/Frontend/ChainedIncludesSource.cpp
make: *** [/root/cyanogenmod/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libclangFrontend_intermediates/ChainedIncludesSource.o] Killed
[email protected] ~/cyanogenmod/system $
Here is the result of lunch cm_codinap-userdebug :
Code:
[email protected] ~/cyanogenmod/system $ lunch cm_codinap-userdebug
Looking for dependencies
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
CM_VERSION=11-20140504-UNOFFICIAL-codinap
TARGET_PRODUCT=cm_codinap
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.2.0-4-amd64-x86_64-with-debian-7.5
HOST_BUILD_TYPE=release
BUILD_ID=KVT49L
OUT_DIR=/root/cyanogenmod/system/out
============================================
[email protected] ~/cyanogenmod/system $
Next step will probably (if I don't find any new clue) to restart everything from scratch by installing this time a Ubuntu 12.04 instead of Debian 7.
Anyway thanks you for your help. :good:

You have to run . build/envsetup.sh before brunch ...
Gesendet von meinem GT-N7000 mit Tapatalk

Flo0008 said:
You have to run . build/envsetup.sh before brunch ...
Gesendet von meinem GT-N7000 mit Tapatalk
Click to expand...
Click to collapse
I finally reinstalled my compilation machine to fit the requierements described in link you gave me.
I am now working with an ubuntu 12.04 server now.
I don't know if it's the new distribution or the fact that I increased my VM RAM to 1Go instead of 512Mo but my compilation went really further.
After one hour of compilation I thought it will succeed but no, here is a new error :
Code:
host StaticLib: libLLVMTarget (/home/igs/cyanogenmod/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMTarget_intermediates/libLLVMTarget.a)
Export includes file: external/clang/tools/driver/Android.mk -- /home/igs/cyanogenmod/system/out/host/linux-x86/obj/EXECUTABLES/clang_intermediates/export_includes
host Executable: clang (/home/igs/cyanogenmod/system/out/host/linux-x86/obj/EXECUTABLES/clang_intermediates/clang)
/home/igs/cyanogenmod/system/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/../lib/gcc/i686-linux/4.6.x-google/../../../../i686-linux/bin/ld: BFD (GNU Binutils) 2.21 internal error, aborting at /i/toolchain-src//binutils/binutils-2.21/bfd/merge.c line 873 in _bfd_merged_section_offset
/home/igs/cyanogenmod/system/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/../lib/gcc/i686-linux/4.6.x-google/../../../../i686-linux/bin/ld: Please report this bug.
collect2: ld returned 1 exit status
make: *** [/home/igs/cyanogenmod/system/out/host/linux-x86/obj/EXECUTABLES/clang_intermediates/clang] Erreur 1
Does it remind something to somebody?
Anyway I thing I am now very closed to the goal.
Thanks in advance,

Related

[Q] Problem compiling CM7 from source

Hey guys,
I've tried to get CM7 to compile from source on xubuntu x64 by following this, substituting the blade specific commands for buzz ones, but keep on hitting the following error.
Does anyone know what might be causing it? My google-fu isn't helping much.
Code:
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.4
TARGET_PRODUCT=cyanogen_buzz
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GINGERBREAD
============================================
build/core/base_rules.mk:479: warning: overriding commands for target `out/target/product/buzz/recovery/root/sbin/tune2fs'
bootable/recovery/Android.mk:92: warning: ignoring old commands for target `out/target/product/buzz/recovery/root/sbin/tune2fs'
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
build/core/Makefile:21: warning: overriding commands for target `out/target/product/buzz/system/usr/keychars/qwerty.kcm.bin'
build/core/base_rules.mk:479: warning: ignoring old commands for target `out/target/product/buzz/system/usr/keychars/qwerty.kcm.bin'
build/core/Makefile:21: warning: overriding commands for target `out/target/product/buzz/system/usr/keychars/qwerty2.kcm.bin'
build/core/base_rules.mk:479: warning: ignoring old commands for target `out/target/product/buzz/system/usr/keychars/qwerty2.kcm.bin'
build/core/Makefile:21: warning: overriding commands for target `out/target/product/buzz/system/usr/keylayout/AVRCP.kl'
sdk/emulator/keymaps/Android.mk:18: warning: ignoring old commands for target `out/target/product/buzz/system/usr/keylayout/AVRCP.kl'
build/core/Makefile:21: warning: overriding commands for target `out/target/product/buzz/system/usr/keylayout/qwerty.kl'
sdk/emulator/keymaps/Android.mk:13: warning: ignoring old commands for target `out/target/product/buzz/system/usr/keylayout/qwerty.kl'
No private recovery resources for TARGET_DEVICE buzz
host C: acp <= build/tools/acp/acp.c
host C: libhost <= build/libs/host/CopyFile.c
In file included from /usr/include/bits/errno.h:25:0,
from /usr/include/errno.h:36,
from build/tools/acp/acp.c:22:
/usr/include/linux/errno.h:4:23: fatal error: asm/errno.h: No such file or directory
compilation terminated.
make: *** [out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from /usr/include/bits/errno.h:25:0,
from /usr/include/errno.h:36,
from build/libs/host/CopyFile.c:24:
/usr/include/linux/errno.h:4:23: fatal error: asm/errno.h: No such file or directory
compilation terminated.
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/CopyFile.o] Error 1
C4NCER said:
Hey guys,
I've tried to get CM7 to compile from source on xubuntu x64 by following this, substituting the blade specific commands for buzz ones, but keep on hitting the following error.
Does anyone know what might be causing it? My google-fu isn't helping much.
Code:
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=2.3.4
TARGET_PRODUCT=cyanogen_buzz
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=GINGERBREAD
============================================
build/core/base_rules.mk:479: warning: overriding commands for target `out/target/product/buzz/recovery/root/sbin/tune2fs'
bootable/recovery/Android.mk:92: warning: ignoring old commands for target `out/target/product/buzz/recovery/root/sbin/tune2fs'
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
find: `out/target/common/docs/gen': No such file or directory
build/core/Makefile:21: warning: overriding commands for target `out/target/product/buzz/system/usr/keychars/qwerty.kcm.bin'
build/core/base_rules.mk:479: warning: ignoring old commands for target `out/target/product/buzz/system/usr/keychars/qwerty.kcm.bin'
build/core/Makefile:21: warning: overriding commands for target `out/target/product/buzz/system/usr/keychars/qwerty2.kcm.bin'
build/core/base_rules.mk:479: warning: ignoring old commands for target `out/target/product/buzz/system/usr/keychars/qwerty2.kcm.bin'
build/core/Makefile:21: warning: overriding commands for target `out/target/product/buzz/system/usr/keylayout/AVRCP.kl'
sdk/emulator/keymaps/Android.mk:18: warning: ignoring old commands for target `out/target/product/buzz/system/usr/keylayout/AVRCP.kl'
build/core/Makefile:21: warning: overriding commands for target `out/target/product/buzz/system/usr/keylayout/qwerty.kl'
sdk/emulator/keymaps/Android.mk:13: warning: ignoring old commands for target `out/target/product/buzz/system/usr/keylayout/qwerty.kl'
No private recovery resources for TARGET_DEVICE buzz
host C: acp <= build/tools/acp/acp.c
host C: libhost <= build/libs/host/CopyFile.c
In file included from /usr/include/bits/errno.h:25:0,
from /usr/include/errno.h:36,
from build/tools/acp/acp.c:22:
/usr/include/linux/errno.h:4:23: fatal error: asm/errno.h: No such file or directory
compilation terminated.
make: *** [out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from /usr/include/bits/errno.h:25:0,
from /usr/include/errno.h:36,
from build/libs/host/CopyFile.c:24:
/usr/include/linux/errno.h:4:23: fatal error: asm/errno.h: No such file or directory
compilation terminated.
make: *** [out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/CopyFile.o] Error 1
Click to expand...
Click to collapse
Weird error. Never seen it before.
Anyway, you shouldn't do the extract-files part in that guide, it's kinda not used anymore. You should clone Arne's vendor config from here ($git clone https://github.com/arco/proprietary_vendor_htc.git /android/system/vendor/htc)
Oh and here's what I always do to build (I have the vendor config cloned to vendor/htc):
Code:
$cd /android/system
$repo sync -j7
$cd vendor/htc
$git pull
$cd ../..
$. build/envsetup.sh && lunch cyanogen_buzz-eng
$make -j7 bacon
nhnt11 said:
Weird error. Never seen it before.
Anyway, you shouldn't do the extract-files part in that guide, it's kinda not used anymore. You should clone Arne's vendor config from here ($git clone https://github.com/arco/proprietary_vendor_htc.git /android/system/vendor/htc)
Oh and here's what I always do to build (I have the vendor config cloned to vendor/htc):
Code:
$cd /android/system
$repo sync -j7
$cd vendor/htc
$git pull
$cd ../..
$. build/envsetup.sh && lunch cyanogen_buzz-eng
$make -j7 bacon
Click to expand...
Click to collapse
Cheers, I figured it out, was missing gcc and g++ multilibs, and then an ncurses-dev package and then an package for lz compression. Most of it seems to be due to running a 64bit build of linux and ubuntu dropping/renaming a few packages.
C4NCER said:
Cheers, I figured it out, was missing gcc and g++ multilibs, and then an ncurses-dev package and then an package for lz compression. Most of it seems to be due to running a 64bit build of linux and ubuntu dropping/renaming a few packages.
Click to expand...
Click to collapse
oh lol ok xD
Alternate fix for asm/errno.h: No such file or directory
Got the error building on ubuntu x86_64 11.04 (natty) while following docs at source.android.com/source/building.html
I fixed it by going into /usr/include/asm and symlinking everying from ../x86_64-linux-gnu/asm/ to the current directory.
# for f in `ls ../x86_64-linux-gnu/asm/*.h`; do echo "$f"; link=`basename "$f"`; ln -s "$f" $link; done
Click to expand...
Click to collapse
Don't do what is suggested above.
Correct thing to do is just make sure gcc-multilib is installed / up-to date
(I had the same issue with current Debian unstable)
If you really cannot install packages for whatever reason just make a symlink.

Compiling CM9 from source for the E4GT

Because I know you want to... don't you??
http://aosp.chris41g.org/chris41g_o...How-To-Compile-CyanogenMod-9-from-Source.aspx
Uh....yeah. thx chris!
Sent from my SPH-D710 using xda premium
So when's compiling cm9 kernel from source dropping Chris?!
Sent from my SPH-D710 using xda app-developers app
Custodian said:
So when's compiling cm9 kernel from source dropping Chris?!
Sent from my SPH-D710 using xda app-developers app
Click to expand...
Click to collapse
Whenever I give Samsung permission...
Thanks for this chris41g! Going to try and build my own nightlies!
Thanks for your work!
Lots of great treats lately from you!
Sent from my Super Galaxy'd SPH-D710
chris41g said:
Whenever I give Samsung permission...
Click to expand...
Click to collapse
Ok...that should not have been as funny as it was.
Sent from my SCH-R760 using Tapatalk 2
Your site says gummy for e4gt in the title, can we have a build guide for that?
Sent from my SPH-D710 using Tapatalk 2
Taco991 said:
Your site says gummy for e4gt in the title, can we have a build guide for that?
Sent from my SPH-D710 using Tapatalk 2
Click to expand...
Click to collapse
Coming soon...
Sent from my SPH-D710 using Tapatalk
Being able to compile from source or an actual release?
Sent from my SPH-D710 using Tapatalk 2
Taco991 said:
Being able to compile from source or an actual release?
Sent from my SPH-D710 using Tapatalk 2
Click to expand...
Click to collapse
Just an actual, working Gummy release. No tut for now at least.
Sent from my SPH-D710 using Tapatalk
Alright, so compiling from source isn't possible atm? I'd be happy to test anything if you need help...
Sent from my SPH-D710 using Tapatalk 2
Taco991 said:
Alright, so compiling from source isn't possible atm? I'd be happy to test anything if you need help...
Sent from my SPH-D710 using Tapatalk 2
Click to expand...
Click to collapse
chris41g had to do quite alot to get it going so just no tut for now. Release coming soon... Best way to get the chance to possssibly test would be in the IRC channel and catch a link.
Sent from my SPH-D710 using Tapatalk
Alright, what's his irc chan?
Sent from my SPH-D710 using Tapatalk 2
Don't expect a release tomorrow or something lol. Its on freenode #ics-dev-e4gt
Sent from my SPH-D710 using Tapatalk
We are really fortunate to have Chris41g back in the game again. Thank you Chris
DataHawg said:
We are really fortunate to have Chris41g back in the game again. Thank you Chris
Click to expand...
Click to collapse
could we get a sneak peek? lol maybe a screenie or something might calm the crowd! I understand if thats not possible tho :crying:
Thanks for the work u do Chris41..much appreciated!!
a little help please
first let me say this is awesome tutorial and im glad we have it thank you Chris for making it for all of us that are totally new to compiling from source or porting android.
i followed it to the T but im not sure what i did wrong, is there any way possible you can help?
Code:
__ __
__ __/ /_ __ ______ / /___ __
/ / / / __ \/ / / / __ \/ __/ / / /
/ /_/ / /_/ / /_/ / / / / /_/ /_/ /
\__,_/_.___/\__,_/_/ /_/\__/\__,_/
__
____ ___ _________/ /
/ __ \/ _ \/ ___/ __ /
/ / / / __/ / / /_/ /
/_/ /_/\___/_/ \__,_/
[email protected]:~$ cd ~/android/system/
[email protected]:~/android/system$ e4gttools/apply.sh
error: no project has branch auto
### fix ringtones
*****************************
Current Directory: packages/apps/Phone
*****************************
HEAD is now at dbaf4b3 Fix translation
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2427 100 2427 0 0 1826 0 0:00:01 0:00:01 --:--:-- 2019
(Stripping trailing CRs from patch.)
patching file src/com/android/phone/CallNotifier.java
(Stripping trailing CRs from patch.)
patching file src/com/android/phone/Ringer.java
SUCCESS: e4gttools/apply.sh has completed.
[email protected]:~/android/system$ . build/envsetup.sh && breakfast cm_epic4gtouch-userdebug
including device/samsung/epic4gtouch/vendorsetup.sh
including device/ti/panda/vendorsetup.sh
including vendor/cm/vendorsetup.sh
including sdk/bash_completion/adb.bash
including vendor/cm/vendorsetup.sh
Looking for dependencies
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.4
TARGET_PRODUCT=cm_epic4gtouch
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=IMM76L
============================================
[email protected]:~/android/system$ export USE_CCACHE=1 CM_EXPERIMENTAL=1
[email protected]:~/android/system$ mka bacon
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.4
TARGET_PRODUCT=cm_epic4gtouch
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=IMM76L
============================================
build/core/copy_headers.mk:15: warning: overriding commands for target `out/target/product/epic4gtouch/obj/include/libsecmm/mfc_errno.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `out/target/product/epic4gtouch/obj/include/libsecmm/mfc_errno.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `out/target/product/epic4gtouch/obj/include/libsecmm/mfc_interface.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `out/target/product/epic4gtouch/obj/include/libsecmm/mfc_interface.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `out/target/product/epic4gtouch/obj/include/libsecmm/SsbSipMfcApi.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `out/target/product/epic4gtouch/obj/include/libsecmm/SsbSipMfcApi.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `out/target/product/epic4gtouch/obj/include/libsecmm/mfc_errno.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `out/target/product/epic4gtouch/obj/include/libsecmm/mfc_errno.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `out/target/product/epic4gtouch/obj/include/libsecmm/mfc_interface.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `out/target/product/epic4gtouch/obj/include/libsecmm/mfc_interface.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `out/target/product/epic4gtouch/obj/include/libsecmm/SsbSipMfcApi.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `out/target/product/epic4gtouch/obj/include/libsecmm/SsbSipMfcApi.h'
build/core/dynamic_binary.mk:112: warning: overriding commands for target `.so'
build/core/dynamic_binary.mk:95: warning: ignoring old commands for target `.so'
build/core/shared_library.mk:54: warning: overriding commands for target `.so'
build/core/dynamic_binary.mk:112: warning: ignoring old commands for target `.so'
system/core/toolbox/Android.mk:98: warning: overriding commands for target `out/target/product/epic4gtouch/system/bin/lsof'
build/core/base_rules.mk:523: warning: ignoring old commands for target `out/target/product/epic4gtouch/system/bin/lsof'
build/core/Makefile:36: warning: overriding commands for target `out/target/product/epic4gtouch/system/app/Superuser.apk'
build/core/base_rules.mk:523: warning: ignoring old commands for target `out/target/product/epic4gtouch/system/app/Superuser.apk'
build/core/Makefile:36: warning: overriding commands for target `out/target/product/epic4gtouch/system/etc/mkshrc'
build/core/base_rules.mk:523: warning: ignoring old commands for target `out/target/product/epic4gtouch/system/etc/mkshrc'
build/core/Makefile:36: warning: overriding commands for target `out/target/product/epic4gtouch/system/etc/wifi/wpa_supplicant.conf'
build/core/base_rules.mk:523: warning: ignoring old commands for target `out/target/product/epic4gtouch/system/etc/wifi/wpa_supplicant.conf'
No private recovery resources for TARGET_DEVICE epic4gtouch
make -C kernel/samsung/epic4gtouch O=/home/ubuntunerd/android/system/out/target/product/epic4gtouch/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/ubuntunerd/android/system/prebuilt/linux-x86/ccache/ccache /home/ubuntunerd/android/system/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-" headers_install
make[1]: Entering directory `/home/ubuntunerd/android/system/kernel/samsung/epic4gtouch'
host StaticLib: libhost (out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/libhost.a)
host Executable: mkbootfs (out/host/linux-x86/obj/EXECUTABLES/mkbootfs_intermediates/mkbootfs)
true
host StaticLib: libz (out/host/linux-x86/obj/STATIC_LIBRARIES/libz_intermediates/libz.a)
target SharedLib: libdl (out/target/product/epic4gtouch/obj/SHARED_LIBRARIES/libdl_intermediates/LINKED/libdl.so)
target StaticLib: libc_common (out/target/product/epic4gtouch/obj/STATIC_LIBRARIES/libc_common_intermediates/libc_common.a)
CHK include/linux/version.h
UPD include/linux/version.h
target StaticLib: libext2fs (out/target/product/epic4gtouch/obj/STATIC_LIBRARIES/libext2fs_intermediates/libext2fs.a)
target StaticLib: libext2_blkid (out/target/product/epic4gtouch/obj/STATIC_LIBRARIES/libext2_blkid_intermediates/libext2_blkid.a)
target StaticLib: libext2_uuid (out/target/product/epic4gtouch/obj/STATIC_LIBRARIES/libext2_uuid_intermediates/libext2_uuid.a)
target StaticLib: libext2_profile (out/target/product/epic4gtouch/obj/STATIC_LIBRARIES/libext2_profile_intermediates/libext2_profile.a)
HOSTCC scripts/unifdef
target StaticLib: libext2_com_err (out/target/product/epic4gtouch/obj/STATIC_LIBRARIES/libext2_com_err_intermediates/libext2_com_err.a)
target StaticLib: libext2_e2p (out/target/product/epic4gtouch/obj/STATIC_LIBRARIES/libext2_e2p_intermediates/libext2_e2p.a)
target StaticLib: libext4_utils (out/target/product/epic4gtouch/obj/STATIC_LIBRARIES/libext4_utils_intermediates/libext4_utils.a)
target StaticLib: libz (out/target/product/epic4gtouch/obj/STATIC_LIBRARIES/libz_intermediates/libz.a)
target StaticLib: libminzip (out/target/product/epic4gtouch/obj/STATIC_LIBRARIES/libminzip_intermediates/libminzip.a)
target StaticLib: libunz (out/target/product/epic4gtouch/obj/STATIC_LIBRARIES/libunz_intermediates/libunz.a)
target StaticLib: libmincrypt (out/target/product/epic4gtouch/obj/STATIC_LIBRARIES/libmincrypt_intermediates/libmincrypt.a)
target StaticLib: libminizip (out/target/product/epic4gtouch/obj/STATIC_LIBRARIES/libminizip_intermediates/libminizip.a)
Lex: libedify <= bootable/recovery/edify/lexer.l
/bin/bash: flex: command not found
make: *** [out/host/linux-x86/obj/EXECUTABLES/edify_intermediates/lexer.cpp] Error 127
make: *** Waiting for unfinished jobs....
INSTALL include/asm-generic (34 files)
INSTALL include/drm (13 files)
INSTALL include/linux/byteorder (2 files)
INSTALL include/mtd (5 files)
INSTALL include/linux/caif (2 files)
INSTALL include/linux/can (4 files)
INSTALL include/rdma (6 files)
INSTALL include/linux/dvb (8 files)
INSTALL include/linux/hdlc (1 file)
INSTALL include/scsi/fc (4 files)
INSTALL include/linux/isdn (1 file)
INSTALL include/scsi (3 files)
INSTALL include/linux/mmc (1 file)
INSTALL include/linux/netfilter/ipset (4 files)
INSTALL include/linux/netfilter_arp (2 files)
INSTALL include/linux/netfilter (69 files)
INSTALL include/linux/netfilter_bridge (18 files)
INSTALL include/linux/netfilter_ipv4 (14 files)
INSTALL include/linux/netfilter_ipv6 (11 files)
INSTALL include/linux/raid (2 files)
INSTALL include/linux/nfsd (6 files)
INSTALL include/sound (8 files)
INSTALL include/linux/spi (1 file)
INSTALL include/linux/sunrpc (1 file)
INSTALL include/linux/tc_act (7 files)
INSTALL include/video (3 files)
INSTALL include/linux/tc_ematch (4 files)
INSTALL include/xen (2 files)
INSTALL include/linux/usb (9 files)
INSTALL include (0 file)
INSTALL include/linux/wimax (1 file)
INSTALL include/linux (364 files)
INSTALL include/asm (32 files)
make[1]: Leaving directory `/home/ubuntunerd/android/system/kernel/samsung/epic4gtouch'
[email protected]:~/android/system$
now im getting:
Code:
make: *** [out/host/linux-x86/obj/EXECUTABLES/edify_intermediates/lexer.cpp] Error 127
make: *** Waiting for unfinished jobs....
/bin/bash: flex: command not found
make: *** [out/target/product/epic4gtouch/obj/STATIC_LIBRARIES/libedify_intermediates/lexer.cpp] Error 127
[email protected]:~/android/system$
i got further this time i manage to compile something but there is no zip in the out folder, terminal ended like this:
Code:
Notice file: bionic/linker/NOTICE -- out/target/product/epic4gtouch/obj/NOTICE_FILES/src//system/bin/linker.txt
Notice file: bionic/libc/NOTICE -- out/target/product/epic4gtouch/obj/NOTICE_FILES/src//system/lib/libc_nomalloc.a.txt
Notice file: system/core/logcat/NOTICE -- out/target/product/epic4gtouch/obj/NOTICE_FILES/src//system/bin/logcat.txt
Notice file: system/core/logwrapper/NOTICE -- out/target/product/epic4gtouch/obj/NOTICE_FILES/src//system/bin/logwrapper.txt
Notice file: system/extras/ext4_utils/NOTICE -- out/target/product/epic4gtouch/obj/NOTICE_FILES/src//system/bin/make_ext4fs.txt
Notice file: system/extras/ext4_utils/NOTICE -- out/target/product/epic4gtouch/obj/NOTICE_FILES/src//system/lib/libext4_utils.so.txt
make: *** No rule to make target `out/target/product/epic4gtouch/obj/lib/libmediayamahaservice.so', needed by `out/target/product/epic4gtouch/obj/EXECUTABLES/mediaserver_intermediates/LINKED/mediaserver'. Stop.
make: *** Waiting for unfinished jobs....
[email protected]:~/android/system$
if anybody can help i will greatly appreciated

[Q] Stock CM 11 (4.4.1) Compiling Errors

So earlier I posted a problem I had building CM 11 (4.4.0), and due to lack of help, I never got a working build. However, this morning, I OTA Updated through CyanogenMod's servers to their first CM 11 Build for d2att (4.4.1). I did the obligatory repo sync, and also a source build/envsetup.sh, a breakfast d2att and then brunch d2att. Once it started compiling, I did not run into my usual slew of errors for a little while, and then hit them, but with the build continuing for 2 minutes after the errors, instead of the normal stop. Sadly, it did stop, but not on the same note as it did before today... Here's the code after brunch d2att:
Code:
[email protected]:~/android/system$ brunch d2att
including vendor/cm/vendorsetup.sh
Looking for dependencies
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.1
CM_VERSION=11-20131208-UNOFFICIAL-d2att
TARGET_PRODUCT=cm_d2att
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.11.0-15-generic-x86_64-with-Ubuntu-13.10-saucy
HOST_BUILD_TYPE=release
BUILD_ID=KOT49E
OUT_DIR=/home/matthew/android/system/out
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.1
CM_VERSION=11-20131208-UNOFFICIAL-d2att
TARGET_PRODUCT=cm_d2att
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.11.0-15-generic-x86_64-with-Ubuntu-13.10-saucy
HOST_BUILD_TYPE=release
BUILD_ID=KOT49E
OUT_DIR=/home/matthew/android/system/out
============================================
Clean step: rm -rf /home/matthew/android/system/out/target/product/d2att/system/build.prop
/home/matthew/android/system/out/target/product/d2att/obj/APPS/SignatureTest_intermediates
find: `src': No such file or directory
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/matthew/android/system/out/target/product/d2att/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/matthew/android/system/out/target/product/d2att/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `/home/matthew/android/system/out/target/product/d2att/obj/include/qcom/display/copybit_priv.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/home/matthew/android/system/out/target/product/d2att/obj/include/qcom/display/copybit_priv.h'
build/core/Makefile:44: warning: overriding commands for target `/home/matthew/android/system/out/target/product/d2att/system/lib/libril.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matthew/android/system/out/target/product/d2att/system/lib/libril.so'
build/core/Makefile:44: warning: overriding commands for target `/home/matthew/android/system/out/target/product/d2att/system/bin/rild'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matthew/android/system/out/target/product/d2att/system/bin/rild'
build/core/Makefile:44: warning: overriding commands for target `/home/matthew/android/system/out/target/product/d2att/system/lib/libsecril-client.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matthew/android/system/out/target/product/d2att/system/lib/libsecril-client.so'
build/core/Makefile:44: warning: overriding commands for target `/home/matthew/android/system/out/target/product/d2att/system/lib/libreference-ril.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matthew/android/system/out/target/product/d2att/system/lib/libreference-ril.so'
build/core/Makefile:44: warning: overriding commands for target `/home/matthew/android/system/out/target/product/d2att/system/lib/libinvensense_hal.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matthew/android/system/out/target/product/d2att/system/lib/libinvensense_hal.so'
build/core/Makefile:44: warning: overriding commands for target `/home/matthew/android/system/out/target/product/d2att/system/lib/libmllite.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matthew/android/system/out/target/product/d2att/system/lib/libmllite.so'
build/core/Makefile:44: warning: overriding commands for target `/home/matthew/android/system/out/target/product/d2att/system/lib/libmlplatform.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matthew/android/system/out/target/product/d2att/system/lib/libmlplatform.so'
build/core/Makefile:44: warning: overriding commands for target `/home/matthew/android/system/out/target/product/d2att/system/etc/wifi/wpa_supplicant.conf'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matthew/android/system/out/target/product/d2att/system/etc/wifi/wpa_supplicant.conf'
build/core/Makefile:44: warning: overriding commands for target `/home/matthew/android/system/out/target/product/d2att/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/matthew/android/system/out/target/product/d2att/system/etc/permissions/android.software.live_wallpaper.xml'
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/AVRCP.kl:system/usr/keylayout/AVRCP.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Generic.kl:system/usr/keylayout/Generic.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_045e_Product_028e.kl:system/usr/keylayout/Vendor_045e_Product_028e.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_046d_Product_c216.kl:system/usr/keylayout/Vendor_046d_Product_c216.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_046d_Product_c294.kl:system/usr/keylayout/Vendor_046d_Product_c294.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_046d_Product_c299.kl:system/usr/keylayout/Vendor_046d_Product_c299.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_046d_Product_c532.kl:system/usr/keylayout/Vendor_046d_Product_c532.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_054c_Product_0268.kl:system/usr/keylayout/Vendor_054c_Product_0268.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_05ac_Product_0239.kl:system/usr/keylayout/Vendor_05ac_Product_0239.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_22b8_Product_093d.kl:system/usr/keylayout/Vendor_22b8_Product_093d.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keychars/Generic.kcm:system/usr/keychars/Generic.kcm ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keychars/Virtual.kcm:system/usr/keychars/Virtual.kcm ignored.
No private recovery resources for TARGET_DEVICE d2att
Header: /home/matthew/android/system/out/target/product/d2att/obj/include/qcom/display/gralloc_priv.h
Import includes file: /home/matthew/android/system/out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/import_includes
make -C kernel/samsung/d2 O=/home/matthew/android/system/out/target/product/d2att/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/matthew/android/system/prebuilts/misc/linux-x86/ccache/ccache /home/matthew/android/system/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-" VARIANT_DEFCONFIG=cyanogen_d2_defconfig SELINUX_DEFCONFIG=m2selinux_defconfig cyanogen_d2att_defconfig
make[1]: Entering directory `/home/matthew/android/system/kernel/samsung/d2'
/bin/bash: prebuilts/misc/linux-x86/ccache/ccache: No such file or directory
make: *** [/home/matthew/android/system/out/target/product/d2att/obj/lib/crtbrand.o] Error 127
make: *** Waiting for unfinished jobs....
HOSTCC scripts/basic/fixdep
GEN /home/matthew/android/system/out/target/product/d2att/obj/KERNEL_OBJ/Makefile
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
drivers/media/video/msm_apexq/Kconfig:126:warning: choice value used outside its choice group
drivers/media/video/msm_apexq/Kconfig:131:warning: choice value used outside its choice group
KCONFIG_SELINUX(arch/arm/configs/m2selinux_defconfig)
KCONFIG_LOG_SELINUX((null))
KCONFIG_VARIANT(arch/arm/configs/cyanogen_d2_defconfig)
arch/arm/configs/cyanogen_d2_defconfig:837:warning: override: reassigning to symbol NETWORK_SECMARK
arch/arm/configs/cyanogen_d2_defconfig:841:warning: override: reassigning to symbol NETFILTER_ADVANCED
KCONFIG_DEBUG((null))
#
# configuration written to .config
#
make[1]: Leaving directory `/home/matthew/android/system/kernel/samsung/d2'
[email protected]:~/android/system$
[/HIDE]
If anyone can tell me what went wrong or where I can get some help, my ears are open! Thanks!

CM12.1 brunch issue

I have download the device,vendor,knernel and placeed the zip file and extracted file into the path:
the download path:
github find the armani-dev
and download the android_device_xiaomi_armani,proprietary_vendor_xiaomi,android_kernel_xiaomi_armani
device/xiaomi/armani.
kernel/xiaomi/armani.
vendor/xiaomi/armani
then run the command:brunch armani,and sent the error as bellow,please help me .
[email protected]:~/cm# brunch armani
including vendor/cm/vendorsetup.sh
Trying dependencies-only mode on a non-existing device tree?
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.1.1
CM_VERSION=12.1-20151017-UNOFFICIAL-armani
TARGET_PRODUCT=cm_armani
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_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.13.0-32-generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=LMY48W
OUT_DIR=/root/cm/out
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.1.1
CM_VERSION=12.1-20151017-UNOFFICIAL-armani
TARGET_PRODUCT=cm_armani
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_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.13.0-32-generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=LMY48W
OUT_DIR=/root/cm/out
============================================
find: `dummy': No such file or directory
find: `../../../../../../external/hamcrest/src': No such file or directory
find: `../../../../../../external/junit/src/org': No such file or directory
find: `../../../../../../external/hamcrest/src': No such file or directory
build/core/copy_headers.mk:15: warning: overriding commands for target `/root/cm/out/target/product/armani/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/root/cm/out/target/product/armani/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `/root/cm/out/target/product/armani/obj/include/qcom/display/copybit_priv.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/root/cm/out/target/product/armani/obj/include/qcom/display/copybit_priv.h'
build/core/Makefile:46: warning: overriding commands for target `/root/cm/out/target/product/armani/system/lib/libqminvapi.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/root/cm/out/target/product/armani/system/lib/libqminvapi.so'
No private recovery resources for TARGET_DEVICE armani
make -C kernel/xiaomi/armani O=/root/cm/out/target/product/armani/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" arm-eabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= cyanogenmod_armani_defconfig
make[1]: Entering directory `/root/cm/kernel/xiaomi/armani'
Install: /root/cm/out/target/product/armani/root/file_contexts
make: *** No rule to make target `/root/cm/out/target/product/armani/obj/STATIC_LIBRARIES/libinit_msm_intermediates/export_includes', needed by `/root/cm/out/target/product/armani/obj/EXECUTABLES/init_intermediates/import_includes'. Stop.
make: *** Waiting for unfinished jobs....
GEN /root/cm/out/target/product/armani/obj/KERNEL_OBJ/Makefile
#
# configuration written to .config
#
make[1]: Leaving directory `/root/cm/kernel/xiaomi/armani'
#### make failed to build some targets (03:10 (mm:ss)) ####
looks like some file are missing..
Do a
Code:
repo sync -f --force-sync
then
Code:
brunch armani
or take some help from here http://forum.xda-developers.com/general/help/asus-zenfone-6-a600cg-cyanogenmod-t3221750
neonkat said:
looks like some file are missing..
Do a
Code:
repo sync -f --force-sync
then
Code:
brunch armani
or take some help from here http://forum.xda-developers.com/general/help/asus-zenfone-6-a600cg-cyanogenmod-t3221750
Click to expand...
Click to collapse
thanks !
it has been solved!
but there are other issue as bellow:
make[5]: *** No rule to make target `/root/cm/kernel/xiaomi/armani/include/linux/netfilter/xt_CONNMARK.h', needed by `/root/cm/out/target/product/armani/obj/KERNEL_OBJ/usr/include/linux/netfilter/.install'. Stop.
jiang18109913 said:
thanks !
it has been solved!
but there are other issue as bellow:
make[5]: *** No rule to make target `/root/cm/kernel/xiaomi/armani/include/linux/netfilter/xt_CONNMARK.h', needed by `/root/cm/out/target/product/armani/obj/KERNEL_OBJ/usr/include/linux/netfilter/.install'. Stop.
Click to expand...
Click to collapse
Glad to know it helped
i will tell you a simple trick..just take first few part of your error..like from "make.....kernel/" which is common for other devices also and paste it in google search..you will surely get some help because you are not the only one to face that issue...
i am learning kernel part and hence don't have a lot of knowledge in rom building but you can post your errors here:-http://forum.xda-developers.com/showthread.php?t=2814763
someone will surely help you.
---------- Post added at 11:03 PM ---------- Previous post was at 10:22 PM ----------
tried to google..no fix..try to search for missing files on the github repository(i think i spelled it corect)..put them to appropriate place and again brunch..
*use the file search option on the repository to save time.
neonkat said:
Glad to know it helped
i will tell you a simple trick..just take first few part of your error..like from "make.....kernel/" which is common for other devices also and paste it in google search..you will surely get some help because you are not the only one to face that issue...
i am learning kernel part and hence don't have a lot of knowledge in rom building but you can post your errors here:-http://forum.xda-developers.com/showthread.php?t=2814763
someone will surely help you.
---------- Post added at 11:03 PM ---------- Previous post was at 10:22 PM ----------
tried to google..no fix..try to search for missing files on the github repository(i think i spelled it corect)..put them to appropriate place and again brunch..
*use the file search option on the repository to save time.
Click to expand...
Click to collapse
thanks!
now I have the error as bllow:
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: out/host/linux-x86/obj32/SHARED_LIBRARIES/libjavacore_intermediates/luni/src/main/native/android_system_OsConstants.o: file is empty
libcore/luni/src/main/native/Register.cpp:36: error: undefined reference to 'register_android_system_OsConstants(_JNIEnv*)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [out/host/linux-x86/obj32/lib/libjavacore.so] Error 1
can you help me?
jiang18109913 said:
thanks!
now I have the error as bllow:
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: out/host/linux-x86/obj32/SHARED_LIBRARIES/libjavacore_intermediates/luni/src/main/native/android_system_OsConstants.o: file is empty
libcore/luni/src/main/native/Register.cpp:36: error: undefined reference to 'register_android_system_OsConstants(_JNIEnv*)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [out/host/linux-x86/obj32/lib/libjavacore.so] Error 1
can you help me?
Click to expand...
Click to collapse
i tried searching for a fix but got nothing..i am not a rom expert as said before..please post your queries in the link provided in post #5.
there is a bunch of devs helping noobs.
jiang18109913 said:
thanks!
now I have the error as bllow:
prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.6//x86_64-linux/bin/ld: error: out/host/linux-x86/obj32/SHARED_LIBRARIES/libjavacore_intermediates/luni/src/main/native/android_system_OsConstants.o: file is empty
libcore/luni/src/main/native/Register.cpp:36: error: undefined reference to 'register_android_system_OsConstants(_JNIEnv*)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [out/host/linux-x86/obj32/lib/libjavacore.so] Error 1
can you help me?
Click to expand...
Click to collapse
don't go on posting eveywhere?...
here:-http://forum.xda-developers.com/oneplus-one/help/compilation-help-t2942448/post56922402
check the last post right there and try to follow..if more errors,tell me?.
neonkat said:
don't go on posting eveywhere...
here:-http://forum.xda-developers.com/oneplus-one/help/compilation-help-t2942448/post56922402
check the last post right there and try to follow..if more errors,tell me.
Click to expand...
Click to collapse
thank you! I have build the ROM.thank you very much again.
jiang18109913 said:
thank you! I have build the ROM.thank you very much again.
Click to expand...
Click to collapse
that's nice ?.

Building LineageOS for cancro (Xiaomi mi3w) problem

Hello,
I'm trying to build the lineageOS cm-14.1 version for Cancro
I did
Code:
$ repo init -u ssh://[email protected]/LineageOS/android.git -b cm-14.1
$ repo sync
$ breakfast cancro
including vendor/cm/vendorsetup.sh
Looking for dependencies in device/xiaomi/cancro
Looking for dependencies in device/qcom/common
Dependencies file not found, bailing out.
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
LINEAGE_VERSION=14.1-20170102-UNOFFICIAL-cancro
TARGET_PRODUCT=lineage_cancro
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_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-57-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NMF26Q
OUT_DIR=/path/to/android/system/out
============================================
Then:
Code:
$ brunch cancro
including vendor/cm/vendorsetup.sh
Looking for dependencies in device/xiaomi/cancro
Looking for dependencies in device/qcom/common
Dependencies file not found, bailing out.
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
LINEAGE_VERSION=14.1-20170102-UNOFFICIAL-cancro
TARGET_PRODUCT=lineage_cancro
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_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-57-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NMF26Q
OUT_DIR=/path/to/android/system/out
============================================
make: Entering directory '/path/to/android/system'
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
LINEAGE_VERSION=14.1-20170102-UNOFFICIAL-cancro
TARGET_PRODUCT=lineage_cancro
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_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-57-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NMF26Q
OUT_DIR=/path/to/android/system/out
============================================
Running kati to generate build-lineage_cancro.ninja...
Environment variable BUILD_NUMBER was modified (8e31167344 => 8b61fedda4), regenerating...
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=7.1.1
LINEAGE_VERSION=14.1-20170102-UNOFFICIAL-cancro
TARGET_PRODUCT=lineage_cancro
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_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-57-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=NMF26Q
OUT_DIR=/path/to/android/system/out
============================================
build/core/binary.mk:1253: external/deqp/Android.mk: libdeqp: Unused source files: \
build/core/binary.mk:1253: external/pdfium/third_party/pdfiumbigint.mk: libpdfiumbigint: Unused source files: bigint/BigInteger.cc bigint/BigIntegerUtils.cc bigint/BigUnsigned.cc bigint/BigUnsignedInABase.cc
frameworks/av/camera/cameraserver/Android.mk:18: Target has integrated cameraserver into mediaserver. This is weakening security measures introduced in 7.0
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
find: ‘/path/to/android/system/out/target/common/obj/SHARED_LIBRARIES/libwifi-hal-mock_intermediates’: No such file or directory
build/core/package_internal.mk:143: Empty argument supplied to find-subdir-assets
No private recovery resources for TARGET_DEVICE cancro
build/core/java.mk:334: warning: overriding commands for target `/path/to/android/system/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceService.java'
build/core/java.mk:334: warning: ignoring old commands for target `/path/to/android/system/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceService.java'
build/core/java.mk:334: warning: overriding commands for target `/path/to/android/system/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceServiceCB.java'
build/core/java.mk:334: warning: ignoring old commands for target `/path/to/android/system/out/target/common/obj/APPS/Dialer_intermediates/src/src/org/codeaurora/presenceserv/IPresenceServiceCB.java'
build/core/base_rules.mk:316: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/root/res/images/charger/battery_fail.png'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/bin/wcnss_service'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/bin/wcnss_service'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b00'
./device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b00'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b01'
./device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b01'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b02'
./device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b02'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b04'
./device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b04'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b06'
./device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b06'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b07'
./device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b07'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b08'
./device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b08'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b09'
./device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.b09'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.mdt'
./device/xiaomi/cancro/Android.mk:43: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/etc/firmware/wcnss.mdt'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/lib/libc2dcolorconvert.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/lib/libc2dcolorconvert.so'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/lib/libOmxVenc.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/lib/libOmxVenc.so'
build/core/Makefile:34: warning: overriding commands for target `/path/to/android/system/out/target/product/cancro/system/vendor/lib/mediadrm/libdrmclearkeyplugin.so'
build/core/base_rules.mk:316: warning: ignoring old commands for target `/path/to/android/system/out/target/product/cancro/system/vendor/lib/mediadrm/libdrmclearkeyplugin.so'
Starting build with ninja
ninja: Entering directory `.'
ninja: error: '/path/to/android/system/out/target/product/cancro/obj/lib/libtime_genoff.so.toc', needed by '/path/to/android/system/out/target/product/cancro/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/LINKED/libandroid_servers.so', missing and no known rule to make it
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/path/to/android/system'
#### make failed to build some targets (22 seconds) ####
Ending with
Code:
ninja: error: '/path/to/android/system/out/target/product/cancro/obj/lib/libtime_genoff.so.toc', needed by '/path/to/android/system/out/target/product/cancro/obj/SHARED_LIBRARIES/libandroid_servers_intermediates/LINKED/libandroid_servers.so', missing and no known rule to make it
build/core/ninja.mk:151: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1
make: Leaving directory '/path/to/android/system'
I did extract the binaries from a cancro phone running cyanogenmod 14.1.
What is the step I am missing?
Cancro in my language is cancer.
And when we call something a cancer means that thing it worst nothing.
paulomodesto said:
Cancro in my language is cancer.
And when we call something a cancer means that thing it worst nothing.
Click to expand...
Click to collapse
I'm not against a little bit of culture here and there.
I'm quite sure xiaomi thought about your language when naming their device. Cancro is also a constellation.
This aside, your comment is what makes most of the threads on XDA so time consuming to read. So thank you!
Time consuming to read?
Just read your first post...
And beside me, who have post on this tread?
Have a good year, and be happy.
Peace!
Bump. I am having the same error
ignore this
Interestingly enough I'm trying to build Lineage OS 14.1 for Bacon on Linux Bash for Windows 10 and get this exact same error. So that gives me hope that it's not just because I'm too lazy to use actual linux lol. If anyone knows the fix I want to try and get it to build someone else says they got CM13 to build with the same method.
Hi there! First of all: Happy new year everybody
I don't have the device (cancro) but I'm pretty sure that - for some reason - the mentioned file (and maybe even more) did not get pulled from your phone. Did you extract the proprietary files via "extract-files.sh"? Check where the file is located on your device and if the script pulls that folder.
You could also use proprietary files from github.com/TheMuppets. It's an open secret that most developers use that repository. Furthermore it's very handy when it comes to building/brunching for another device that you don't even own.
Edit: If I'm not wrong, these folders should be present in your build directory:
device/xiaomi/cancro
kernel/xiaomi/cancro
vendor/xiaomi/cancro
Please check that and report back
The Flash said:
Introduction
Frequently Asked Questions
1.1 Q: I got an error, what do I do??
1.1 A: Well to start, if it is anything with Ninja, I would go ahead and disable it. You can add this to your .bashrc file:
Code:
export USE_NINJA=false
Then type this
Code:
source ~/.bashrc
. build/envsetup.sh
breakfast bullhead
mka clobber
mka bacon
If it is saying you ran out of memory, follow this post.
If it isn't Ninja related, check out @AzraelsKiss's post here, where he has documented a few common issues. If none of those apply, post here with a detailed list of what you have done and we will do our best to help you.
Click to expand...
Click to collapse
You could try this.
experience7 said:
Hi there! First of all: Happy new year everybody
I don't have the device (cancro) but I'm pretty sure that - for some reason - the mentioned file (and maybe even more) did not get pulled from your phone. Did you extract the proprietary files via "extract-files.sh"? Check where the file is located on your device and if the script pulls that folder.
You could also use proprietary files from github.com/TheMuppets. It's an open secret that most developers use that repository. Furthermore it's very handy when it comes to building/brunching for another device that you don't even own.
Edit: If I'm not wrong, these folders should be present in your build directory:
device/xiaomi/cancro
kernel/xiaomi/cancro
vendor/xiaomi/cancro
Please check that and report back
Click to expand...
Click to collapse
I have tried TheMuppets xiaomi repo and also the extract_files.sh script. The result is always the same.
tassos_chry said:
You could try this.
Click to expand...
Click to collapse
I tried disabling ninja but the error remains the same.
I also had a look at the build-manifest.xml file on my phone but I don't see what is missing.
my solution
Hi,
since I found a solution, here is what I did...
- open the file "/android/system/device/xiaomi/cancro/proprietary-files.txt" in your editor...
- search for "libtime_genoff.so"
- add a "-" as first character in that line, so it looks like this "-vendor/lib/libtime_genoff.so"
- save
- run "/android/system/device/xiaomi/cancro/setup-makefiles.sh" to propagate the modification to the tool-chain
that's it :highfive:
best regards
Spameater_de
P.S.: during the build I had another issue regarding an obviously obsolete .so - file. I removed it from the proprietary_files.txt and re-run the setup-makefiles.sh... the image is now fine

Categories

Resources