[Q] Crespo cm-10.2 build error - Android Q&A, Help & Troubleshooting

Hi all,
I hope I am posting at the correct forum - I am trying to build a fresh cm-10.2 rom for my Nexus S (crespo), but somehow, there is something missing:
Code:
[email protected]:~/Development/android/cm-10.2$ brunch crespo
including vendor/cm/vendorsetup.sh
Looking for dependencies
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.3
CM_VERSION=10.2-20130812-UNOFFICIAL-crespo
TARGET_PRODUCT=cm_crespo
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a8
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.2.0-51-lowlatency-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=JSS15J
OUT_DIR=/home/denis/Development/android/cm-10.2/out
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.3
CM_VERSION=10.2-20130812-UNOFFICIAL-crespo
TARGET_PRODUCT=cm_crespo
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a8
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.2.0-51-lowlatency-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=JSS15J
OUT_DIR=/home/denis/Development/android/cm-10.2/out
============================================
build/core/Makefile:44: warning: overriding commands for target `/home/denis/Development/android/cm-10.2/out/target/product/crespo/system/etc/mkshrc'
build/core/base_rules.mk:520: warning: ignoring old commands for target `/home/denis/Development/android/cm-10.2/out/target/product/crespo/system/etc/mkshrc'
PRODUCT_COPY_FILES device/sample/etc/apns-full-conf.xml:system/etc/apns-conf.xml ignored.
build/core/Makefile:44: warning: overriding commands for target `/home/denis/Development/android/cm-10.2/out/target/product/crespo/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/base_rules.mk:520: warning: ignoring old commands for target `/home/denis/Development/android/cm-10.2/out/target/product/crespo/system/etc/permissions/android.software.live_wallpaper.xml'
No private recovery resources for TARGET_DEVICE crespo
make -C kernel/samsung/crespo O=/home/denis/Development/android/cm-10.2/out/target/product/crespo/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /home/denis/Development/android/cm-10.2/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= crespo_defconfig
make[1]: Entering directory `/home/denis/Development/android/cm-10.2/kernel/samsung/crespo'
Install: /home/denis/Development/android/cm-10.2/out/host/linux-x86/bin/clang-tblgen
Install: /home/denis/Development/android/cm-10.2/out/host/linux-x86/bin/tblgen
target thumb C: libc_common <= bionic/libc/unistd/system.c
target thumb C: libc_common <= bionic/libc/unistd/time.c
GEN /home/denis/Development/android/cm-10.2/out/target/product/crespo/obj/KERNEL_OBJ/Makefile
target thumb C: libc_common <= bionic/libc/stdio/asprintf.c
target thumb C: libc_common <= bionic/libc/stdio/clrerr.c
init/Kconfig:900: can't open file "usr/Kconfig"
make[3]: *** [crespo_defconfig] Error 1
make[2]: *** [crespo_defconfig] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/home/denis/Development/android/cm-10.2/kernel/samsung/crespo'
make: *** [/home/denis/Development/android/cm-10.2/out/target/product/crespo/obj/KERNEL_OBJ/.config] Error 2
make: *** Waiting for unfinished jobs....
I've set everything up and the build for "Maguro" runs without any problems, but with "Crespo", there is something missing... Anyone has an hint for me, please?
Many thanks,
Denis

I have same problem , what's your toolchain ?
gcc --version
Click to expand...
Click to collapse

Related

[Q] Need help compiling CM9 for SGM2 (jena) msm7x27a

I got some build error, can you help me figure it out please?
Code:
[email protected]:~/android/cm9$ make -j`grep 'processor' /proc/cpuinfo | wc -l` otapackage
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.0.4
TARGET_PRODUCT=cm_jenad
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
============================================
system/core/toolbox/Android.mk:98: warning: overriding commands for target `out/target/product/jenad/system/bin/lsof'
build/core/base_rules.mk:523: warning: ignoring old commands for target `out/target/product/jenad/system/bin/lsof'
build/core/Makefile:36: warning: overriding commands for target `out/target/product/jenad/system/app/Superuser.apk'
build/core/base_rules.mk:523: warning: ignoring old commands for target `out/target/product/jenad/system/app/Superuser.apk'
build/core/Makefile:36: warning: overriding commands for target `out/target/product/jenad/system/etc/mkshrc'
build/core/base_rules.mk:523: warning: ignoring old commands for target `out/target/product/jenad/system/etc/mkshrc'
build/core/Makefile:36: warning: overriding commands for target `out/target/product/jenad/system/bin/rild'
build/core/base_rules.mk:523: warning: ignoring old commands for target `out/target/product/jenad/system/bin/rild'
build/core/Makefile:36: warning: overriding commands for target `out/target/product/jenad/system/lib/libril.so'
build/core/base_rules.mk:523: warning: ignoring old commands for target `out/target/product/jenad/system/lib/libril.so'
No private recovery resources for TARGET_DEVICE jenad
build/core/tasks/kernel.mk:40: ***************************************************************
build/core/tasks/kernel.mk:41: * Using prebuilt kernel binary instead of source *
build/core/tasks/kernel.mk:42: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED *
build/core/tasks/kernel.mk:43: * Please configure your device to download the kernel *
build/core/tasks/kernel.mk:44: * source repository to kernel/samsung/msm7x27a
build/core/tasks/kernel.mk:45: * See http://wiki.cyanogenmod.org/w/Doc:_integrated_kernel_building
build/core/tasks/kernel.mk:46: * for more information *
build/core/tasks/kernel.mk:47: ***************************************************************
Copy: out/target/product/jenad/kernel
host Executable: mkbootfs (out/host/linux-x86/obj/EXECUTABLES/mkbootfs_intermediates/mkbootfs)
target SharedLib: libdl (out/target/product/jenad/obj/SHARED_LIBRARIES/libdl_intermediates/LINKED/libdl.so)
target StaticLib: libc_common (out/target/product/jenad/obj/STATIC_LIBRARIES/libc_common_intermediates/libc_common.a)
target thumb C++: libstdc++ <= bionic/libstdc++/src/one_time_construction.cpp
true
bionic/libstdc++/src/one_time_construction.cpp:1: error: bad value (cortex-a5) for -mtune= switch
make: *** [out/target/product/jenad/obj/SHARED_LIBRARIES/libstdc++_intermediates/src/one_time_construction.o] Error 1
make: *** Waiting for unfinished jobs....
target thumb C++: libstdc++ <= bionic/libstdc++/src/new.cpp
bionic/libstdc++/src/new.cpp:1: error: bad value (cortex-a5) for -mtune= switch
make: *** [out/target/product/jenad/obj/SHARED_LIBRARIES/libstdc++_intermediates/src/new.o] Error 1
[email protected]:~/android/cm9$
Same error wirh CM10.1

Compiling Issue

Hi guys,
I am getting an error when compiling from CM sources for i9500.
Code:
. build/envsetup.sh && brunch i9500 -j8
build/envsetup.sh:2122: no matches found: vendor/*/*/vendorsetup.sh
including vendor/cm/vendorsetup.sh
Trying dependencies-only mode on a non-existing device tree?
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
CM_VERSION=11-20140211-UNOFFICIAL-i9500
TARGET_PRODUCT=cm_i9500
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a15
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.10.25-031025-generic-x86_64-with-LinuxMint-16-petra
HOST_BUILD_TYPE=release
BUILD_ID=KOT49H
OUT_DIR=/home/clivew/cm11/out
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.2
CM_VERSION=11-20140211-UNOFFICIAL-i9500
TARGET_PRODUCT=cm_i9500
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a15
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.10.25-031025-generic-x86_64-with-LinuxMint-16-petra
HOST_BUILD_TYPE=release
BUILD_ID=KOT49H
OUT_DIR=/home/clivew/cm11/out
============================================
/home/clivew/cm11/out/target/product/i9500/obj/APPS/SignatureTest_intermediates
find: `src': No such file or directory
build/core/Makefile:44: warning: overriding commands for target `/home/clivew/cm11/out/target/product/i9500/system/vendor/lib/hw/gralloc.exynos5.so'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/clivew/cm11/out/target/product/i9500/system/vendor/lib/hw/gralloc.exynos5.so'
No private recovery resources for TARGET_DEVICE i9500
make -C kernel/samsung/exynos5410 O=/home/clivew/cm11/out/target/product/i9500/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /home/clivew/cm11/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= cyanogenmod_i9500_defconfig
make[1]: Entering directory `/home/clivew/cm11/kernel/samsung/exynos5410'
Install: /home/clivew/cm11/out/target/product/i9500/root/fstab.universal5410
host Executable: clang (/home/clivew/cm11/out/host/linux-x86/obj/EXECUTABLES/clang_intermediates/clang)
Install: /home/clivew/cm11/out/target/product/i9500/root/init.recovery.universal5410.rc
target StaticLib: libm (/home/clivew/cm11/out/target/product/i9500/obj/STATIC_LIBRARIES/libm_intermediates/libm.a)
Install: /home/clivew/cm11/out/target/product/i9500/root/init.universal5410.rc
Install: /home/clivew/cm11/out/target/product/i9500/root/init.universal5410.usb.rc
Install: /home/clivew/cm11/out/target/product/i9500/root/init.universal5410.wifi.rc
Install: /home/clivew/cm11/out/target/product/i9500/root/lpm.rc
target thumb C++: libbinder <= frameworks/native/libs/binder/IMemory.cpp
target thumb C++: libbinder <= frameworks/native/libs/binder/PermissionCache.cpp
target thumb C++: libbinder <= frameworks/native/libs/binder/ProcessState.cpp
target thumb C++: libbinder <= frameworks/native/libs/binder/Static.cpp
frameworks/native/libs/binder/IMemory.cpp:36:17: fatal error: ion.h: No such file or directory
compilation terminated.
target thumb C++: libbinder <= frameworks/native/libs/binder/TextOutput.cpp
make: *** [/home/clivew/cm11/out/target/product/i9500/obj/STATIC_LIBRARIES/libbinder_intermediates/IMemory.o] Error 1
make: *** Waiting for unfinished jobs....
GEN /home/clivew/cm11/out/target/product/i9500/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
#
# configuration written to .config
#
make[1]: Leaving directory `/home/clivew/cm11/kernel/samsung/exynos5410'
Any Idea whats going on?
Cloned kernel to kernel/samsing/i9500
Clone device tree to device/samsing/i9500
Extracted props which ended up in vendor/samsug/i9500
BoardConfigVendor.mk is empty.
I do not know where or what library has ion.h.
Any help is appreciated.
Regards
It's most likely that ion.h is a kernel header, to fix this you need to compile the kernel first, try "make bootimage" and afterwards "make otapackage"
broodplank1337 said:
It's most likely that ion.h is a kernel header, to fix this you need to compile the kernel first, try "make bootimage" and afterwards "make otapackage"
Click to expand...
Click to collapse
Hey, thanks for the reply.
Turns out my Laptop had a Janky kernel and dev libraries. I tried building on my home server and things are looking a lot better.
Thanks again for the reply
concerning compiler version
broodplank,
hi, in cm11 build environment, how do i specify a specific clang/llvm version? i am attempting to build for an x86 device
on debian 64bit and having a miserable failure of a time so i figure experimenting isn't going to make things any worse.
thanks for reading
m

Building from source i9300

Hi everyone !
I'm tryning to build CM12.1 from source for i9300
I'm am facing this error and can't figure out why ...
Code:
alexs-imac:system Alex$ brunch i9300 user j-2
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-20150628-UNOFFICIAL-i9300
TARGET_PRODUCT=cm_i9300
TARGET_BUILD_VARIANT=user
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=darwin
HOST_OS_EXTRA=Darwin-14.3.0-x86_64-i386-64bit
HOST_BUILD_TYPE=release
BUILD_ID=LMY48B
OUT_DIR=/Volumes/android/system/out
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.1.1
CM_VERSION=12.1-20150628-UNOFFICIAL-i9300
TARGET_PRODUCT=cm_i9300
TARGET_BUILD_VARIANT=user
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=darwin
HOST_OS_EXTRA=Darwin-14.3.0-x86_64-i386-64bit
HOST_BUILD_TYPE=release
BUILD_ID=LMY48B
OUT_DIR=/Volumes/android/system/out
============================================
"ebtables is disabled on this build"
external/openssl/Crypto-config-host.mk:712: Unknown host OS darwin
external/openssl/Crypto-config-host.mk:712: Unknown host OS darwin
external/openssl/Ssl-config-host.mk:111: Unknown host OS darwin
external/openssl/Ssl-config-host.mk:111: Unknown host OS darwin
external/openssl/Apps-config-host.mk:117: Unknown host OS darwin
find: dummy: No such file or directory
build/core/copy_headers.mk:15: warning: overriding commands for target `/Volumes/android/system/out/target/product/i9300/obj/include/libsecmm/mfc_errno.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/Volumes/android/system/out/target/product/i9300/obj/include/libsecmm/mfc_errno.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `/Volumes/android/system/out/target/product/i9300/obj/include/libsecmm/mfc_interface.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/Volumes/android/system/out/target/product/i9300/obj/include/libsecmm/mfc_interface.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `/Volumes/android/system/out/target/product/i9300/obj/include/libsecmm/SsbSipMfcApi.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/Volumes/android/system/out/target/product/i9300/obj/include/libsecmm/SsbSipMfcApi.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `/Volumes/android/system/out/target/product/i9300/obj/include/libsecmm/mfc_errno.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/Volumes/android/system/out/target/product/i9300/obj/include/libsecmm/mfc_errno.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `/Volumes/android/system/out/target/product/i9300/obj/include/libsecmm/mfc_interface.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/Volumes/android/system/out/target/product/i9300/obj/include/libsecmm/mfc_interface.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `/Volumes/android/system/out/target/product/i9300/obj/include/libsecmm/SsbSipMfcApi.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/Volumes/android/system/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:46: warning: overriding commands for target `/Volumes/android/system/out/target/product/i9300/system/etc/wifi/wpa_supplicant.conf'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/Volumes/android/system/out/target/product/i9300/system/etc/wifi/wpa_supplicant.conf'
build/core/Makefile:46: warning: overriding commands for target `/Volumes/android/system/out/target/product/i9300/system/etc/media_codecs_ffmpeg.xml'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/Volumes/android/system/out/target/product/i9300/system/etc/media_codecs_ffmpeg.xml'
build/core/Makefile:46: warning: overriding commands for target `/Volumes/android/system/out/target/product/i9300/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/base_rules.mk:550: warning: ignoring old commands for target `/Volumes/android/system/out/target/product/i9300/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/Makefile:149: *** BUILD_FINGERPRINT cannot contain spaces: "samsung/cm_i9300/i9300:5.1.1/LMY48B/(stdin)= f:user/test-keys". Stop.
#### make failed to build some targets (02:12 (mm:ss)) ####
alexs-imac:system Alex$
Thanks in advance

Trying to comile cm11 branch hammerhead

Hi guys, i am trying to compile CM11 from branch to hammerhead device.
after a breakfast hammerhead, and brunch hammerhead, it always fails with:
brunch hammerhead
including vendor/cm/vendorsetup.sh
Looking for dependencies
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.4
CM_VERSION=11-20150806-UNOFFICIAL-hammerhead
TARGET_PRODUCT=cm_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
HOST_ARCH=x86
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=KTU84Q
OUT_DIR=/home/salatiel/android/system/out
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.4
CM_VERSION=11-20150806-UNOFFICIAL-hammerhead
TARGET_PRODUCT=cm_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
HOST_ARCH=x86
HOST_OS=linux
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=KTU84Q
OUT_DIR=/home/salatiel/android/system/out
============================================
/home/salatiel/android/system/out/target/product/hammerhead/obj/APPS/SignatureTest_intermediates
find: `src': No such file or directory
MAJOR_VERSION=4
MINOR_VERSION=4
build/core/Makefile:44: warning: overriding commands for target `/home/salatiel/android/system/out/target/product/hammerhead/system/vendor/etc/audio_effects.conf'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/salatiel/android/system/out/target/product/hammerhead/system/vendor/etc/audio_effects.conf'
find: `bootable/recovery/res-1080': No such file or directory
No private recovery resources for TARGET_DEVICE hammerhead
build/core/tasks/kernel.mk:63: ***************************************************************
build/core/tasks/kernel.mk:64: * Using prebuilt kernel binary instead of source *
build/core/tasks/kernel.mk:65: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED *
build/core/tasks/kernel.mk:66: * Please configure your device to download the kernel *
build/core/tasks/kernel.mk:67: * source repository to kernel/lge/hammerhead
build/core/tasks/kernel.mk:68: * See http://wiki.cyanogenmod.org/w/Doc:_integrated_kernel_building
build/core/tasks/kernel.mk:69: * for more information *
build/core/tasks/kernel.mk:70: ***************************************************************
Import includes file: /home/salatiel/android/system/out/host/linux-x86/obj/EXECUTABLES/mkbootimg_intermediates/import_includes
host C: libmincrypt <= system/core/libmincrypt/dsa_sig.c
host C: libmincrypt <= system/core/libmincrypt/p256.c
host C: libmincrypt <= system/core/libmincrypt/p256_ec.c
host C: libmincrypt <= system/core/libmincrypt/p256_ecdsa.c
host C: libmincrypt <= system/core/libmincrypt/rsa.c
host C: libmincrypt <= system/core/libmincrypt/sha.c
host C: libmincrypt <= system/core/libmincrypt/sha256.c
Import includes file: /home/salatiel/android/system/out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/import_includes
host C: libhost <= build/libs/host/CopyFile.c
make: *** No rule to make target `/home/salatiel/android/system/out/target/product/hammerhead/kernel', needed by `/home/salatiel/android/system/out/target/product/hammerhead/boot.img'. Stop.
Any ideas how i can fix this ?
Thanks!
salatiel said:
Hi guys, i am trying to compile CM11 from branch to hammerhead device.
after a breakfast hammerhead, and brunch hammerhead, it always fails with:
brunch hammerhead
including vendor/cm/vendorsetup.sh
Looking for dependencies
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.4
CM_VERSION=11-20150806-UNOFFICIAL-hammerhead
TARGET_PRODUCT=cm_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
HOST_ARCH=x86
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=KTU84Q
OUT_DIR=/home/salatiel/android/system/out
============================================
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.4
CM_VERSION=11-20150806-UNOFFICIAL-hammerhead
TARGET_PRODUCT=cm_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
HOST_ARCH=x86
HOST_OS=linux
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=KTU84Q
OUT_DIR=/home/salatiel/android/system/out
============================================
/home/salatiel/android/system/out/target/product/hammerhead/obj/APPS/SignatureTest_intermediates
find: `src': No such file or directory
MAJOR_VERSION=4
MINOR_VERSION=4
build/core/Makefile:44: warning: overriding commands for target `/home/salatiel/android/system/out/target/product/hammerhead/system/vendor/etc/audio_effects.conf'
build/core/base_rules.mk:529: warning: ignoring old commands for target `/home/salatiel/android/system/out/target/product/hammerhead/system/vendor/etc/audio_effects.conf'
find: `bootable/recovery/res-1080': No such file or directory
No private recovery resources for TARGET_DEVICE hammerhead
build/core/tasks/kernel.mk:63: ***************************************************************
build/core/tasks/kernel.mk:64: * Using prebuilt kernel binary instead of source *
build/core/tasks/kernel.mk:65: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED *
build/core/tasks/kernel.mk:66: * Please configure your device to download the kernel *
build/core/tasks/kernel.mk:67: * source repository to kernel/lge/hammerhead
build/core/tasks/kernel.mk:68: * See http://wiki.cyanogenmod.org/w/Doc:_integrated_kernel_building
build/core/tasks/kernel.mk:69: * for more information *
build/core/tasks/kernel.mk:70: ***************************************************************
Import includes file: /home/salatiel/android/system/out/host/linux-x86/obj/EXECUTABLES/mkbootimg_intermediates/import_includes
host C: libmincrypt <= system/core/libmincrypt/dsa_sig.c
host C: libmincrypt <= system/core/libmincrypt/p256.c
host C: libmincrypt <= system/core/libmincrypt/p256_ec.c
host C: libmincrypt <= system/core/libmincrypt/p256_ecdsa.c
host C: libmincrypt <= system/core/libmincrypt/rsa.c
host C: libmincrypt <= system/core/libmincrypt/sha.c
host C: libmincrypt <= system/core/libmincrypt/sha256.c
Import includes file: /home/salatiel/android/system/out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/import_includes
host C: libhost <= build/libs/host/CopyFile.c
make: *** No rule to make target `/home/salatiel/android/system/out/target/product/hammerhead/kernel', needed by `/home/salatiel/android/system/out/target/product/hammerhead/boot.img'. Stop.
Any ideas how i can fix this ?
Thanks!
Click to expand...
Click to collapse
resync your cm11 tree.
make sure you have net connection is working
remove your out folder
remove your local manifests folder in repo
dont put any of device , vendor or kernel folder of hammerhead in your cm11 tree.
just give following commands
. build/envsetup.sh
brunch hammerhead
Click to expand...
Click to collapse
it will resync the hammerhead dependencies and make a build with official hammerhead repos from cyanogenmod
Thanks @k2wl .
Actually i found out the problem.
I had to manually clone https://github.com/CyanogenMod/android_kernel_lge_hammerhead.git in the kernel/lge/hammerhead directory
CM11 branch for hammerhead is a lot more stable than the latest nightly released in january, but unfortunatelly the camera wont record anything :/
So i stayed at the January nightly and created just a zip to replace all the libstagefright* from the build i created.
It worked =)

Help for lineageos 13.0 build error for lg nitro hd

I am working for lineageos 13.0 for my lg nitro hd (p930)
I try to make clobber and rebuild 4-5 times but still make this error (Just a unnormal syntax error)
My device repo https://github.com/Nitro-lineage
Please help me and sorry for my bad english
full error log: https://pastebin.com/uYsDzLBX
Code:
[email protected]:~/lineage$ brunch p930 2>&1 | tee build.logincluding vendor/cm/vendorsetup.sh
Trying dependencies-only mode on a non-existing device tree?
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0.1
LINEAGE_VERSION=13.0-20170527-UNOFFICIAL-p930
TARGET_PRODUCT=lineage_p930
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=scorpion
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.8.0-53-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_BUILD_TYPE=release
BUILD_ID=MOB31T
OUT_DIR=/home/man1/lineage/out
============================================
make: Entering directory '/home/man1/lineage'
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0.1
LINEAGE_VERSION=13.0-20170527-UNOFFICIAL-p930
TARGET_PRODUCT=lineage_p930
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=scorpion
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.8.0-53-generic-x86_64-with-Ubuntu-16.04-xenial
HOST_BUILD_TYPE=release
BUILD_ID=MOB31T
OUT_DIR=/home/man1/lineage/out
============================================
build/core/copy_headers.mk:15: warning: overriding recipe for target '/home/man1/lineage/out/target/product/p930/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: ignoring old recipe for target '/home/man1/lineage/out/target/product/p930/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: overriding recipe for target '/home/man1/lineage/out/target/product/p930/obj/include/qcom/display/copybit_priv.h'
build/core/copy_headers.mk:15: warning: ignoring old recipe for target '/home/man1/lineage/out/target/product/p930/obj/include/qcom/display/copybit_priv.h'
build/core/base_rules.mk:559: warning: overriding recipe for target '/home/man1/lineage/out/target/product/p930/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/man1/lineage/out/target/product/p930/root/res/images/charger/battery_fail.png'
find: ‘dummy’: 沒有此一檔案或目錄
build/core/Makefile:46: warning: overriding recipe for target '/home/man1/lineage/out/target/product/p930/system/bin/rild'
build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/man1/lineage/out/target/product/p930/system/bin/rild'
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.
build/core/Makefile:46: warning: overriding recipe for target '/home/man1/lineage/out/target/product/p930/system/etc/wifi/wpa_supplicant.conf'
build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/man1/lineage/out/target/product/p930/system/etc/wifi/wpa_supplicant.conf'
No private recovery resources for TARGET_DEVICE p930
target Symbolic: libm (/home/man1/lineage/out/target/product/p930/symbols/system/lib/libm.so)
external/sepolicy/zygote.te:3:ERROR 'syntax error' at token 'type' on line 10062:
type zygote, domain;
# zygote
checkpolicy: error(s) encountered while parsing configuration
/home/man1/lineage/out/host/linux-x86/bin/checkpolicy: loading policy configuration from /home/man1/lineage/out/target/product/p930/obj/ETC/sepolicy_intermediates/policy.conf
external/sepolicy/Android.mk:85: recipe for target '/home/man1/lineage/out/target/product/p930/obj/ETC/sepolicy_intermediates/sepolicy' failed
make: *** [/home/man1/lineage/out/target/product/p930/obj/ETC/sepolicy_intermediates/sepolicy] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory '/home/man1/lineage'
#### make failed to build some targets (53 seconds) ####
[email protected]:~/lineage$

Categories

Resources