[Android Q&A, Help & Troubleshooting] AshleyT:
Hello!

I hope i am in the right forum section.

I'm at my first attempt to build CyanogenMod for my unsupported device (Samsung Galaxy S7).

Can you help me to understand why make fails?

Tell me if you need other info.

Any kind of help is highly appreciated! Thank you! :o

ubuntu@ubuntu:~/android/system$ brunch herolte
including vendor/cm/vendorsetup.sh
Trying dependencies-only mode on a non-existing device tree?

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0.1
CM_VERSION=13.0-20161031-UNOFFICIAL-herolte
TARGET_PRODUCT=cm_herolte
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.13.0-100-generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=M4B30X
OUT_DIR=/home/ubuntu/android/system/out
============================================

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0.1
CM_VERSION=13.0-20161031-UNOFFICIAL-herolte
TARGET_PRODUCT=cm_herolte
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv7-a-neon
TARGET_2ND_CPU_VARIANT=cortex-a53
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.13.0-100-generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=M4B30X
OUT_DIR=/home/ubuntu/android/system/out
============================================
"ebtables is disabled on this build"
make: Entering directory `/home/ubuntu/android/system'
external/speex/Android.mk:55: TODOArm64: enable neon in libspeex
build/core/shared_library.mk:12: libion_exynos: LOCAL_MODULE_PATH for shared libraries is unsupported in multiarch builds, use LOCAL_MODULE_RELATIVE_PATH instead
build/core/base_rules.mk:559: warning: overriding commands for target `/home/ubuntu/android/system/out/target/product/herolte/system/lib64/libion_exynos.so'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/ubuntu/android/system/out/target/product/herolte/system/lib64/libion_exynos.so'
build/core/dynamic_binary.mk:94: warning: overriding commands for target `/home/ubuntu/android/system/out/target/product/herolte/symbols/system/lib64/libion_exynos.so'
build/core/dynamic_binary.mk:94: warning: ignoring old commands for target `/home/ubuntu/android/system/out/target/product/herolte/symbols/system/lib64/libion_exynos.so'
build/core/shared_library.mk:12: libOMX.Exynos.AVC.Decoder: LOCAL_MODULE_PATH for shared libraries is unsupported in multiarch builds, use LOCAL_MODULE_RELATIVE_PATH instead
build/core/base_rules.mk:559: warning: overriding commands for target `/home/ubuntu/android/system/out/target/product/herolte/system/lib64/omx/libOMX.Exynos.AVC.Decoder.so'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/ubuntu/android/system/out/target/product/herolte/system/lib64/omx/libOMX.Exynos.AVC.Decoder.so'
build/core/dynamic_binary.mk:94: warning: overriding commands for target `/home/ubuntu/android/system/out/target/product/herolte/symbols/system/lib64/omx/libOMX.Exynos.AVC.Decoder.so'
build/core/dynamic_binary.mk:94: warning: ignoring old commands for target `/home/ubuntu/android/system/out/target/product/herolte/symbols/system/lib64/omx/libOMX.Exynos.AVC.Decoder.so'
build/core/shared_library.mk:12: libOMX.Exynos.MPEG4.Decoder: LOCAL_MODULE_PATH for shared libraries is unsupported in multiarch builds, use LOCAL_MODULE_RELATIVE_PATH instead
build/core/base_rules.mk:559: warning: overriding commands for target `/home/ubuntu/android/system/out/target/product/herolte/system/lib64/omx/libOMX.Exynos.MPEG4.Decoder.so'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/ubuntu/android/system/out/target/product/herolte/system/lib64/omx/libOMX.Exynos.MPEG4.Decoder.so'
build/core/dynamic_binary.mk:94: warning: overriding commands for target `/home/ubuntu/android/system/out/target/product/herolte/symbols/system/lib64/omx/libOMX.Exynos.MPEG4.Decoder.so'
build/core/dynamic_binary.mk:94: warning: ignoring old commands for target `/home/ubuntu/android/system/out/target/product/herolte/symbols/system/lib64/omx/libOMX.Exynos.MPEG4.Decoder.so'
build/core/shared_library.mk:12: libOMX.Exynos.VP8.Decoder: LOCAL_MODULE_PATH for shared libraries is unsupported in multiarch builds, use LOCAL_MODULE_RELATIVE_PATH instead
build/core/base_rules.mk:559: warning: overriding commands for target `/home/ubuntu/android/system/out/target/product/herolte/system/lib64/omx/libOMX.Exynos.VP8.Decoder.so'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/ubuntu/android/system/out/target/product/herolte/system/lib64/omx/libOMX.Exynos.VP8.Decoder.so'
build/core/dynamic_binary.mk:94: warning: overriding commands for target `/home/ubuntu/android/system/out/target/product/herolte/symbols/system/lib64/omx/libOMX.Exynos.VP8.Decoder.so'
build/core/dynamic_binary.mk:94: warning: ignoring old commands for target `/home/ubuntu/android/system/out/target/product/herolte/symbols/system/lib64/omx/libOMX.Exynos.VP8.Decoder.so'
build/core/shared_library.mk:12: libOMX.Exynos.AVC.Encoder: LOCAL_MODULE_PATH for shared libraries is unsupported in multiarch builds, use LOCAL_MODULE_RELATIVE_PATH instead
build/core/base_rules.mk:559: warning: overriding commands for target `/home/ubuntu/android/system/out/target/product/herolte/system/lib64/omx/libOMX.Exynos.AVC.Encoder.so'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/ubuntu/android/system/out/target/product/herolte/system/lib64/omx/libOMX.Exynos.AVC.Encoder.so'
build/core/dynamic_binary.mk:94: warning: overriding commands for target `/home/ubuntu/android/system/out/target/product/herolte/symbols/system/lib64/omx/libOMX.Exynos.AVC.Encoder.so'
build/core/dynamic_binary.mk:94: warning: ignoring old commands for target `/home/ubuntu/android/system/out/target/product/herolte/symbols/system/lib64/omx/libOMX.Exynos.AVC.Encoder.so'
build/core/shared_library.mk:12: libOMX.Exynos.MPEG4.Encoder: LOCAL_MODULE_PATH for shared libraries is unsupported in multiarch builds, use LOCAL_MODULE_RELATIVE_PATH instead
build/core/base_rules.mk:559: warning: overriding commands for target `/home/ubuntu/android/system/out/target/product/herolte/system/lib64/omx/libOMX.Exynos.MPEG4.Encoder.so'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/ubuntu/android/system/out/target/product/herolte/system/lib64/omx/libOMX.Exynos.MPEG4.Encoder.so'
build/core/dynamic_binary.mk:94: warning: overriding commands for target `/home/ubuntu/android/system/out/target/product/herolte/symbols/system/lib64/omx/libOMX.Exynos.MPEG4.Encoder.so'
build/core/dynamic_binary.mk:94: warning: ignoring old commands for target `/home/ubuntu/android/system/out/target/product/herolte/symbols/system/lib64/omx/libOMX.Exynos.MPEG4.Encoder.so'
build/core/shared_library.mk:12: hwcomposer.exynos5: LOCAL_MODULE_PATH for shared libraries is unsupported in multiarch builds, use LOCAL_MODULE_RELATIVE_PATH instead
build/core/base_rules.mk:559: warning: overriding commands for target `/home/ubuntu/android/system/out/target/product/herolte/system/vendor/lib64/hw/hwcomposer.exynos5.so'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/ubuntu/android/system/out/target/product/herolte/system/vendor/lib64/hw/hwcomposer.exynos5.so'
build/core/dynamic_binary.mk:94: warning: overriding commands for target `/home/ubuntu/android/system/out/target/product/herolte/symbols/system/vendor/lib64/hw/hwcomposer.exynos5.so'
build/core/dynamic_binary.mk:94: warning: ignoring old commands for target `/home/ubuntu/android/system/out/target/product/herolte/symbols/system/vendor/lib64/hw/hwcomposer.exynos5.so'
build/core/shared_library.mk:12: camera.exynos5: LOCAL_MODULE_PATH for shared libraries is unsupported in multiarch builds, use LOCAL_MODULE_RELATIVE_PATH instead
build/core/base_rules.mk:559: warning: overriding commands for target `/home/ubuntu/android/system/out/target/product/herolte/system/vendor/lib64/hw/camera.exynos5.so'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/ubuntu/android/system/out/target/product/herolte/system/vendor/lib64/hw/camera.exynos5.so'
build/core/notice_files.mk:65: warning: overriding commands for target `/home/ubuntu/android/system/out/target/product/herolte/obj/NOTICE_FILES/src//system/vendor/lib64/hw/camera.exynos5.so.txt'
build/core/notice_files.mk:65: warning: ignoring old commands for target `/home/ubuntu/android/system/out/target/product/herolte/obj/NOTICE_FILES/src//system/vendor/lib64/hw/camera.exynos5.so.txt'
build/core/dynamic_binary.mk:94: warning: overriding commands for target `/home/ubuntu/android/system/out/target/product/herolte/symbols/system/vendor/lib64/hw/camera.exynos5.so'
build/core/dynamic_binary.mk:94: warning: ignoring old commands for target `/home/ubuntu/android/system/out/target/product/herolte/symbols/system/vendor/lib64/hw/camera.exynos5.so'
build/core/shared_library.mk:12: keystore.exynos5: LOCAL_MODULE_PATH for shared libraries is unsupported in multiarch builds, use LOCAL_MODULE_RELATIVE_PATH instead
build/core/base_rules.mk:559: warning: overriding commands for target `/home/ubuntu/android/system/out/target/product/herolte/system/vendor/lib64/hw/keystore.exynos5.so'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/ubuntu/android/system/out/target/product/herolte/system/vendor/lib64/hw/keystore.exynos5.so'
build/core/dynamic_binary.mk:94: warning: overriding commands for target `/home/ubuntu/android/system/out/target/product/herolte/symbols/system/vendor/lib64/hw/keystore.exynos5.so'
build/core/dynamic_binary.mk:94: warning: ignoring old commands for target `/home/ubuntu/android/system/out/target/product/herolte/symbols/system/vendor/lib64/hw/keystore.exynos5.so'
build/core/shared_library.mk:12: gralloc.exynos5: LOCAL_MODULE_PATH for shared libraries is unsupported in multiarch builds, use LOCAL_MODULE_RELATIVE_PATH instead
build/core/base_rules.mk:559: warning: overriding commands for target `/home/ubuntu/android/system/out/target/product/herolte/system/vendor/lib64/hw/gralloc.exynos5.so'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/ubuntu/android/system/out/target/product/herolte/system/vendor/lib64/hw/gralloc.exynos5.so'
build/core/dynamic_binary.mk:94: warning: overriding commands for target `/home/ubuntu/android/system/out/target/product/herolte/symbols/system/vendor/lib64/hw/gralloc.exynos5.so'
build/core/dynamic_binary.mk:94: warning: ignoring old commands for target `/home/ubuntu/android/system/out/target/product/herolte/symbols/system/vendor/lib64/hw/gralloc.exynos5.so'
build/core/base_rules.mk:559: warning: overriding commands for target `/home/ubuntu/android/system/out/target/product/herolte/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/ubuntu/android/system/out/target/product/herolte/root/res/images/charger/battery_fail.png'
find: `dummy': No such file or directory
build/core/Makefile:46: warning: overriding commands for target `/home/ubuntu/android/system/out/target/product/herolte/system/lib/libexynosv4l2.so'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/ubuntu/android/system/out/target/product/herolte/system/lib/libexynosv4l2.so'
build/core/Makefile:46: warning: overriding commands for target `/home/ubuntu/android/system/out/target/product/herolte/system/lib64/libexynosv4l2.so'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/ubuntu/android/system/out/target/product/herolte/system/lib64/libexynosv4l2.so'
build/core/Makefile:46: warning: overriding commands for target `/home/ubuntu/android/system/out/target/product/herolte/system/lib/libexynosgscaler.so'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/ubuntu/android/system/out/target/product/herolte/system/lib/libexynosgscaler.so'
build/core/Makefile:46: warning: overriding commands for target `/home/ubuntu/android/system/out/target/product/herolte/system/lib/libexynosutils.so'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/ubuntu/android/system/out/target/product/herolte/system/lib/libexynosutils.so'
build/core/Makefile:46: warning: overriding commands for target `/home/ubuntu/android/system/out/target/product/herolte/system/lib64/libexynosgscaler.so'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/ubuntu/android/system/out/target/product/herolte/system/lib64/libexynosgscaler.so'
build/core/Makefile:46: warning: overriding commands for target `/home/ubuntu/android/system/out/target/product/herolte/system/lib64/libexynosutils.so'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/ubuntu/android/system/out/target/product/herolte/system/lib64/libexynosutils.so'
build/core/Makefile:46: warning: overriding commands for target `/home/ubuntu/android/system/out/target/product/herolte/system/lib/libion.so'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/ubuntu/android/system/out/target/product/herolte/system/lib/libion.so'
build/core/Makefile:46: warning: overriding commands for target `/home/ubuntu/android/system/out/target/product/herolte/system/lib64/libion.so'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/ubuntu/android/system/out/target/product/herolte/system/lib64/libion.so'
build/core/Makefile:46: warning: overriding commands for target `/home/ubuntu/android/system/out/target/product/herolte/system/lib64/libion_exynos.so'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/ubuntu/android/system/out/target/product/herolte/system/lib64/libion_exynos.so'
build/core/Makefile:46: warning: overriding commands for target `/home/ubuntu/android/system/out/target/product/herolte/system/lib/libMcClient.so'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/ubuntu/android/system/out/target/product/herolte/system/lib/libMcClient.so'
build/core/Makefile:46: warning: overriding commands for target `/home/ubuntu/android/system/out/target/product/herolte/system/lib64/libMcClient.so'
build/core/base_rules.mk:559: warning: ignoring old commands for target `/home/ubuntu/android/system/out/target/product/herolte/system/lib64/libMcClient.so'
PRODUCT_COPY_FILES device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.
No private recovery resources for TARGET_DEVICE herolte
build/core/tasks/kernel.mk:158: ***************************************************************
build/core/tasks/kernel.mk:159: * Using prebuilt kernel binary instead of source *
build/core/tasks/kernel.mk:160: * THIS IS DEPRECATED, AND WILL BE DISCONTINUED *
build/core/tasks/kernel.mk:161: * Please configure your device to download the kernel *
build/core/tasks/kernel.mk:162: * source repository to kernel/samsung/herolte
build/core/tasks/kernel.mk:163: * See http://wiki.cyanogenmod.org/w/Doc:_integrated_kernel_building
build/core/tasks/kernel.mk:164: * for more information *
build/core/tasks/kernel.mk:165: ***************************************************************
build/core/tasks/kernel.mk:361: warning: overriding commands for target `/home/ubuntu/android/system/out/target/product/herolte/kernel'
build/core/Makefile:46: warning: ignoring old commands for target `/home/ubuntu/android/system/out/target/product/herolte/kernel'
Notice file: external/compiler-rt/NOTICE -- /home/ubuntu/android/system/out/host/linux-x86/obj/NOTICE_FILES/src//lib64/libcompiler_rt-extras.a.txt
Notice file: external/compiler-rt/NOTICE -- /home/ubuntu/android/system/out/host/linux-x86/obj/NOTICE_FILES/src//lib/libcompiler_rt-extras.a.txt
Notice file: system/core/libmincrypt/NOTICE -- /home/ubuntu/android/system/out/host/linux-x86/obj/NOTICE_FILES/src//lib64/libmincrypt.a.txt
make: *** No rule to make target `/home/ubuntu/android/system/out/target/product/herolte/dt.img', needed by `/home/ubuntu/android/system/out/target/product/herolte/recovery.img'. Stop.
make: *** Waiting for unfinished jobs....
Notice file: system/core/libmincrypt/NOTICE -- /home/ubuntu/android/system/out/host/linux-x86/obj/NOTICE_FILES/src//lib/libmincrypt.a.txt
make: Leaving directory `/home/ubuntu/android/system'

#### make failed to build some targets (57 seconds) ####