[Android Q&A, Help & Troubleshooting] harold99:
i was triying to build cm13 for the galaxy exhibit t599x (codinalte) and i have this errors, can somebody help me ?

[johnson@johnson-pc CM13]$ lunch cm_codinalte-userdebug
Trying dependencies-only mode on a non-existing device tree?

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0.1
CM_VERSION=13.0-20160106-UNOFFICIAL-codinalte
TARGET_PRODUCT=cm_codinalte
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.3.3-2-ARCH-x86_64-with-glibc2.2.5
HOST_BUILD_TYPE=release
BUILD_ID=TRIANA0020160106
OUT_DIR=/home/johnson/ROMS/CM13/out
============================================

[johnson@johnson-pc CM13]$ make -j2 otapackage
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=6.0.1
CM_VERSION=13.0-20160106-UNOFFICIAL-codinalte
TARGET_PRODUCT=cm_codinalte
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.3.3-2-ARCH-x86_64-with-glibc2.2.5
HOST_BUILD_TYPE=release
BUILD_ID=TRIANA0020160106
OUT_DIR=/home/johnson/ROMS/CM13/out
============================================
Checking build tools versions...
"ebtables is disabled on this build"
find: `dummy': No such file or directory
find: `dummy': No such file or directory
find: `dummy': No such file or directory
find: `dummy': No such file or directory
find: `dummy': No such file or directory
find: `dummy': No such file or directory
find: `dummy': No such file or directory
build/core/Makefile:46: warning: overriding recipe for target '/home/johnson/ROMS/CM13/out/target/product/codinalte/root/init.environ.rc'
build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/johnson/ROMS/CM13/out/target/product/codinalte/root/init.environ.rc'
build/core/Makefile:46: warning: overriding recipe for target '/home/johnson/ROMS/CM13/out/target/product/codinalte/system/lib/egl/egl.cfg'
build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/johnson/ROMS/CM13/out/target/product/codinalte/system/lib/egl/egl.cfg'
build/core/Makefile:46: warning: overriding recipe for target '/home/johnson/ROMS/CM13/out/target/product/codinalte/system/etc/media_codecs_ffmpeg.xml'
build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/johnson/ROMS/CM13/out/target/product/codinalte/system/etc/media_codecs_ffmpeg.xml'
build/core/Makefile:46: warning: overriding recipe for target '/home/johnson/ROMS/CM13/out/target/product/codinalte/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/johnson/ROMS/CM13/out/target/product/codinalte/root/res/images/charger/battery_fail.png'
build/core/Makefile:46: warning: overriding recipe for target '/home/johnson/ROMS/CM13/out/target/product/codinalte/system/etc/wifi/wpa_supplicant.conf'
build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/johnson/ROMS/CM13/out/target/product/codinalte/system/etc/wifi/wpa_supplicant.conf'
build/core/Makefile:46: warning: overriding recipe for target '/home/johnson/ROMS/CM13/out/target/product/codinalte/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/johnson/ROMS/CM13/out/target/product/codinalte/system/etc/permissions/android.software.live_wallpaper.xml'
No private recovery resources for TARGET_DEVICE codinalte
device/samsung/codinalte/shbootimg.mk:20: warning: overriding recipe for target '/home/johnson/ROMS/CM13/out/target/product/codinalte/ramdisk-recovery.cpio'
build/core/Makefile:1020: warning: ignoring old recipe for target '/home/johnson/ROMS/CM13/out/target/product/codinalte/ramdisk-recovery.cpio'
Export includes file: external/libcxx/Android.mk -- /home/johnson/ROMS/CM13/out/host/linux-x86/obj/SHARED_LIBRARIES/libc++_intermediates/export_includes
Export includes file: frameworks/native/libs/input/Android.mk -- /home/johnson/ROMS/CM13/out/host/linux-x86/obj/STATIC_LIBRARIES/libinput_intermediates/export_includes
Export includes file: system/core/libutils/Android.mk -- /home/johnson/ROMS/CM13/out/host/linux-x86/obj/STATIC_LIBRARIES/libutils_intermediates/export_includes
Export includes file: system/core/libcutils/Android.mk -- /home/johnson/ROMS/CM13/out/host/linux-x86/obj/STATIC_LIBRARIES/libcutils_intermediates/export_includes
Export includes file: system/core/liblog/Android.mk -- /home/johnson/ROMS/CM13/out/host/linux-x86/obj/STATIC_LIBRARIES/liblog_intermediates/export_includes
Export includes file: external/compiler-rt/Android.mk -- /home/johnson/ROMS/CM13/out/host/linux-x86/obj/STATIC_LIBRARIES/libcompiler_rt-extras_intermediates/export_includes
Import includes file: /home/johnson/ROMS/CM13/out/host/linux-x86/obj/EXECUTABLES/validatekeymaps_intermediates/import_includes
Header: /home/johnson/ROMS/CM13/out/host/linux-x86/obj/include/libexpat/expat.h
Header: /home/johnson/ROMS/CM13/out/host/linux-x86/obj/include/libexpat/expat_external.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/libexpat/expat.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/libexpat/expat_external.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/libdrm/xf86drm.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/libdrm/xf86drmMode.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/libdrm/drm.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/libdrm/drm_fourcc.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/libdrm/drm_mode.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/libdrm/drm_sarea.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/libdrm/i915_drm.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/libdrm/mach64_drm.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/libdrm/mga_drm.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/libdrm/nouveau_drm.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/libdrm/qxl_drm.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/libdrm/r128_drm.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/libdrm/radeon_drm.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/libdrm/savage_drm.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/libdrm/sis_drm.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/libdrm/tegra_drm.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/libdrm/via_drm.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/libdrm/vmwgfx_drm.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/libdrm/nouveau.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/libdrm/radeon_bo.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/libdrm/radeon_cs.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/libdrm/radeon_surface.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/libdrm/radeon_bo_gem.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/libdrm/radeon_cs_gem.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/libdrm/radeon_bo_int.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/libdrm/radeon_cs_int.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/libdrm/r600_pci_ids.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/libdrm/rockchip_drm.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/libdrm/rockchip_drmif.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/libdrm/tegra.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/libdrm/libkms.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/selinux/selinux.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/selinux/label.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/selinux/context.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/selinux/avc.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/selinux/android.h
Header: /home/johnson/ROMS/CM13/out/host/linux-x86/obj/include/selinux/selinux.h
Header: /home/johnson/ROMS/CM13/out/host/linux-x86/obj/include/selinux/label.h
Header: /home/johnson/ROMS/CM13/out/host/linux-x86/obj/include/selinux/context.h
Header: /home/johnson/ROMS/CM13/out/host/linux-x86/obj/include/selinux/avc.h
Header: /home/johnson/ROMS/CM13/out/host/linux-x86/obj/include/selinux/android.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/parameter/ParameterMgrLoggerForward.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/parameter/ParameterMgrPlatformConnector.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/parameter/ParameterMgrFullConnector.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/parameter/SelectionCriterionTypeInterface.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/parameter/SelectionCriterionInterface.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/parameter/ParameterHandle.h
Header: /home/johnson/ROMS/CM13/out/host/linux-x86/obj/include/parameter/ParameterMgrLoggerForward.h
Header: /home/johnson/ROMS/CM13/out/host/linux-x86/obj/include/parameter/ParameterMgrPlatformConnector.h
Header: /home/johnson/ROMS/CM13/out/host/linux-x86/obj/include/parameter/ParameterMgrFullConnector.h
Header: /home/johnson/ROMS/CM13/out/host/linux-x86/obj/include/parameter/SelectionCriterionTypeInterface.h
Header: /home/johnson/ROMS/CM13/out/host/linux-x86/obj/include/parameter/SelectionCriterionInterface.h
Header: /home/johnson/ROMS/CM13/out/host/linux-x86/obj/include/parameter/ParameterHandle.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/protobuf-c/include/google/protobuf-c//protobuf-c.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/protobuf-c/include/google/protobuf-c//protobuf-c-private.h
Header: /home/johnson/ROMS/CM13/out/host/linux-x86/obj/include/sepol/handle.h
Header: /home/johnson/ROMS/CM13/out/host/linux-x86/obj/include/sepol/policydb.h
Header: /home/johnson/ROMS/CM13/out/host/linux-x86/obj/include/sepol/cil.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/libsonivox/eas.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/libsonivox/eas_types.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/libsonivox/eas_reverb.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/libsonivox/jet.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/libsonivox/ARM_synth_constants_gnu.inc
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/libwpa_client/wpa_ctrl.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/libwpa_client/qca-vendor.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/media_resource_manager/MediaResourceArbitrator.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/media_resource_manager/OMX_adaptor.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/libril/ril_ex.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/sdk/softap/include/qsap_api.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/sdk/softap/include/qsap.h
Header: /home/johnson/ROMS/CM13/out/target/product/codinalte/obj/include/time-services/time_genoff.h
host C++: validatekeymaps <= frameworks/base/tools/validatekeymaps/Main.cpp
prebuilts/clang/linux-x86/host/3.6/bin/clang++: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
build/core/binary.mk:706: recipe for target '/home/johnson/ROMS/CM13/out/host/linux-x86/obj/EXECUTABLES/validatekeymaps_intermediates/Main.o' failed
make: *** [/home/johnson/ROMS/CM13/out/host/linux-x86/obj/EXECUTABLES/validatekeymaps_intermediates/Main.o] Error 127

#### make failed to build some targets (04:35 (mm:ss)) ####