[Sprint  Galaxy Note 4 Q&A, Help & Troubleshooting] bubba1114:
hey guys been having a little trouble with starting my initial build of cm12.1. ive followed cyanogenmods site on how it says to build but it seems like every time i go to build the rom i get an error.

Checking build tools versions...

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 recipe for target '/home/ty/android/system/out/target/product/trltespr/obj/include/qcom/display/copybit.h'

build/core/copy_headers.mk:15: warning: ignoring old recipe for target '/home/ty/android/system/out/target/product/trltespr/obj/include/qcom/display/copybit.h'

build/core/copy_headers.mk:15: warning: overriding recipe for target '/home/ty/android/system/out/target/product/trltespr/obj/include/qcom/display/copybit_priv.h'

build/core/copy_headers.mk:15: warning: ignoring old recipe for target '/home/ty/android/system/out/target/product/trltespr/obj/include/qcom/display/copybit_priv.h'

build/core/Makefile:46: warning: overriding recipe for target '/home/ty/android/system/out/target/product/trltespr/system/bin/rild'

build/core/base_rules.mk:550: warning: ignoring old recipe for target '/home/ty/android/system/out/target/product/trltespr/system/bin/rild'

build/core/Makefile:46: warning: overriding recipe for target '/home/ty/android/system/out/target/product/trltespr/system/lib/libreference-ril.so'

build/core/base_rules.mk:550: warning: ignoring old recipe for target '/home/ty/android/system/out/target/product/trltespr/system/lib/libreference-ril.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/ty/android/system/out/target/product/trltespr/system/lib/libril.so'

build/core/base_rules.mk:550: warning: ignoring old recipe for target '/home/ty/android/system/out/target/product/trltespr/system/lib/libril.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/ty/android/system/out/target/product/trltespr/system/lib/libsecril-client.so'

build/core/base_rules.mk:550: warning: ignoring old recipe for target '/home/ty/android/system/out/target/product/trltespr/system/lib/libsecril-client.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/ty/android/system/out/target/product/trltespr/system/vendor/lib/libtime_genoff.so'

build/core/base_rules.mk:550: warning: ignoring old recipe for target '/home/ty/android/system/out/target/product/trltespr/system/vendor/lib/libtime_genoff.so'

build/core/Makefile:46: warning: overriding recipe for target '/home/ty/android/system/out/target/product/trltespr/system/lib/hw/consumerir.apq8084.so'

build/core/base_rules.mk:550: warning: ignoring old recipe for target '/home/ty/android/system/out/target/product/trltespr/system/lib/hw/consumerir.apq8084.so'

PRODUCT_COPY_FILES vendor/samsung/trlte-common/proprietary/vendor/lib/libalarmservice_jni.so:system/vendor/lib/libalarmservice_jni.so ignored.

build/core/Makefile:46: warning: overriding recipe for target '/home/ty/android/system/out/target/product/trltespr/system/lib/libcommon_time_client.so'

build/core/base_rules.mk:550: warning: ignoring old recipe for target '/home/ty/android/system/out/target/product/trltespr/system/lib/libcommon_time_client.so'

PRODUCT_COPY_FILES vendor/samsung/trlte-common/proprietary/vendor/lib/libtime_genoff.so:system/vendor/lib/libtime_genoff.so ignored.

build/core/Makefile:46: warning: overriding recipe for target '/home/ty/android/system/out/target/product/trltespr/system/etc/wifi/wpa_supplicant.conf'

build/core/base_rules.mk:550: warning: ignoring old recipe for target '/home/ty/android/system/out/target/product/trltespr/system/etc/wifi/wpa_supplicant.conf'

No private recovery resources for TARGET_DEVICE trltespr

Export includes file: system/core/libmincrypt/Android.mk -- /home/ty/android/system/out/host/linux-x86/obj32/STATIC_LIBRARIES/libmincrypt_intermediates/export_includes

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/libloc_core//MsgTask.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/libloc_core//LocApiBase.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/libloc_core//LocAdapterBase.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/libloc_core//ContextBase.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/libloc_core//LocDualContext.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/libloc_core//LBSProxyBase.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/libloc_core//UlpProxyBase.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/libloc_core//gps_extended_c.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/libloc_core//gps_extended.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/libloc_core//loc_core_log.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/libloc_core//LocAdapterProxyBase.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/libloc_eng//LocEngAdapter.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/libloc_eng//loc.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/libloc_eng//loc_eng.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/libloc_eng//loc_eng_xtra.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/libloc_eng//loc_eng_ni.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/libloc_eng//loc_eng_agps.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/libloc_eng//loc_eng_msg.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/libloc_eng//loc_eng_log.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/gps.utils//loc_log.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/gps.utils//loc_cfg.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/gps.utils//log_util.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/gps.utils//linked_list.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/gps.utils//msg_q.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/gps.utils//loc_target.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/gps.utils//loc_timer.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/gps.utils//platform_lib_includes.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/gps.utils//platform_lib_time.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/gps.utils//platform_lib_macros.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/gps.utils//loc_misc_utils.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/libcurl/curl/curlbuild.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/libcurl/curl/curl.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/libcurl/curl/curlrules.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/libcurl/curl/curlver.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/libcurl/curl/easy.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/libcurl/curl/mprintf.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/libcurl/curl/multi.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/libcurl/curl/stdcheaders.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/libcurl/curl/typecheck-gcc.h

Header: /home/ty/android/system/out/host/linux-x86/obj/include/libexpat/expat.h

Header: /home/ty/android/system/out/host/linux-x86/obj/include/libexpat/expat_external.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/libexpat/expat.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/libexpat/expat_external.h

Header: /home/ty/android/system/out/host/linux-x86/obj/include/libpng/png.h

Header: /home/ty/android/system/out/host/linux-x86/obj/include/libpng/pngconf.h

Header: /home/ty/android/system/out/host/linux-x86/obj/include/libpng/pngusr.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/libpng/png.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/libpng/pngconf.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/libpng/pngusr.h

Header: /home/ty/android/system/out/host/linux-x86/obj/include/selinux/selinux.h

Header: /home/ty/android/system/out/host/linux-x86/obj/include/selinux/label.h

Header: /home/ty/android/system/out/host/linux-x86/obj/include/selinux/context.h

Header: /home/ty/android/system/out/host/linux-x86/obj/include/selinux/avc.h

Header: /home/ty/android/system/out/host/linux-x86/obj/include/selinux/android.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/selinux/selinux.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/selinux/label.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/selinux/context.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/selinux/avc.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/selinux/android.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/protobuf-c/include/google/protobuf-c//protobuf-c.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/protobuf-c/include/google/protobuf-c//protobuf-c-private.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/libsonivox/eas.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/libsonivox/eas_types.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/libsonivox/eas_reverb.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/libsonivox/jet.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/libsonivox/ARM_synth_constants_gnu.inc

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/libwpa_client/wpa_ctrl.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/libwpa_client/qca-vendor.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/mm-audio/audio_defs.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/qcom/display/gralloc_priv.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/qcom/display/gr.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/alloc_controller.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/memalloc.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/qcom/display/copybit.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/qcom/display/copybit_priv.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/qcom/display/display_config.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/qcom/display/mdp_version.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/qcom/display/qdMetaData.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/qcom/display/IQService.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/qcom/display/IQClient.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/mm-core/omxcore/OMX_Audio.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/mm-core/omxcore/OMX_Component.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/mm-core/omxcore/OMX_ContentPipe.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/mm-core/omxcore/OMX_Core.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/mm-core/omxcore/OMX_Image.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/mm-core/omxcore/OMX_Index.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/mm-core/omxcore/OMX_IVCommon.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/mm-core/omxcore/OMX_Other.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/mm-core/omxcore/OMX_QCOMExtns.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/mm-core/omxcore/OMX_Types.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/mm-core/omxcore/OMX_Video.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/mm-core/omxcore/qc_omx_common.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/mm-core/omxcore/qc_omx_component.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/mm-core/omxcore/qc_omx_msg.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/mm-core/omxcore/QOMX_AudioExtensions.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/mm-core/omxcore/QOMX_AudioIndexExtensions.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/mm-core/omxcore/OMX_CoreExt.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/mm-core/omxcore/QOMX_CoreExtensions.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/mm-core/omxcore/QOMX_FileFormatExtensions.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/mm-core/omxcore/QOMX_IVCommonExtensions.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/mm-core/omxcore/QOMX_SourceExtensions.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/mm-core/omxcore/QOMX_VideoExtensions.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/mm-core/omxcore/OMX_IndexExt.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/mm-core/omxcore/OMX_VideoExt.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/mm-core/omxcore/QOMX_StreamingExtensions.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/mm-core/omxcore/QCMediaDefs.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/mm-core/omxcore/QCMetaData.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/mm-video/DivxDrmDecrypt/DivXDrmDecrypt.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/sdk/softap/include/qsap_api.h

Header: /home/ty/android/system/out/target/product/trltespr/obj/include/sdk/softap/include/qsap.h

Import includes file: /home/ty/android/system/out/host/linux-x86/obj32/STATIC_LIBRARIES/libmincrypt_intermediates/import_includes

Export includes file: system/core/mkbootimg/Android.mk -- /home/ty/android/system/out/host/linux-x86/obj32/EXECUTABLES/mkbootimg_intermediates/export_includes

Export includes file: build/libs/host/Android.mk -- /home/ty/android/system/out/host/linux-x86/obj32/STATIC_LIBRARIES/libhost_intermediates/export_includes

Import includes file: /home/ty/android/system/out/host/linux-x86/obj32/STATIC_LIBRARIES/libhost_intermediates/import_includes

Export includes file: build/tools/acp/Android.mk -- /home/ty/android/system/out/host/linux-x86/obj32/EXECUTABLES/acp_intermediates/export_includes

mkdir -p /home/ty/android/system/out/target/product/trltespr/obj/KERNEL_OBJ

Notice file: system/core/libmincrypt/NOTICE -- /home/ty/android/system/out/host/linux-x86/obj/NOTICE_FILES/src//lib/libmincrypt.a.txt

mkdir -p /home/ty/android/system/out/target/product/trltespr/system/lib/modules

Import includes file: /home/ty/android/system/out/host/linux-x86/obj32/EXECUTABLES/mkbootfs_intermediates/import_includes

Export includes file: system/core/cpio/Android.mk -- /home/ty/android/system/out/host/linux-x86/obj32/EXECUTABLES/mkbootfs_intermediates/export_includes

Yacc: checkpolicy <= external/checkpolicy/policy_parse.y

prebuilts/misc/linux-x86/bison/bison -d -v -o /home/ty/android/system/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_parse.cpp external/checkpolicy/policy_parse.y

Export includes file: external/libsepol/Android.mk -- /home/ty/android/system/out/host/linux-x86/obj32/STATIC_LIBRARIES/libsepol_intermediates/export_includes

Lex: checkpolicy <= external/checkpolicy/policy_scan.l

Import includes file: /home/ty/android/system/out/host/linux-x86/obj32/STATIC_LIBRARIES/libsepol_intermediates/import_includes

Export includes file: external/checkpolicy/Android.mk -- /home/ty/android/system/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/export_includes

flex-2.5.39: loadlocale.c:131: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_type_LC_COLLATE) / sizeof (_nl_value_type_LC_COLLATE[0]))' failed.

Export includes file: external/libselinux/Android.mk -- /home/ty/android/system/out/host/linux-x86/obj32/STATIC_LIBRARIES/libselinux_intermediates/export_includes

Export includes file: external/pcre/Android.mk -- /home/ty/android/system/out/host/linux-x86/obj32/STATIC_LIBRARIES/libpcre_intermediates/export_includes

Import includes file: /home/ty/android/system/out/host/linux-x86/obj32/STATIC_LIBRARIES/libpcre_intermediates/import_includes

Export includes file: external/sepolicy/tools/Android.mk -- /home/ty/android/system/out/host/linux-x86/obj32/EXECUTABLES/checkfc_intermediates/export_includes

Notice file: external/libselinux/NOTICE -- /home/ty/android/system/out/host/linux-x86/obj/NOTICE_FILES/src//lib/libselinux.a.txt

Notice file: external/sepolicy/NOTICE -- /home/ty/android/system/out/target/product/trltespr/obj/NOTICE_FILES/src//root/file_contexts.txt

build/core/binary.mk:575: recipe for target '/home/ty/android/system/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_scan.cpp' failed

make: *** [/home/ty/android/system/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_scan.cpp] Aborted (core dumped)

make: *** Waiting for unfinished jobs....

touch /home/ty/android/system/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_parse.hpp

echo '#ifndef 'policy_parse_h > /home/ty/android/system/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_parse.h

echo '#define 'policy_parse_h >> /home/ty/android/system/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_parse.h

cat /home/ty/android/system/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_parse.hpp >> /home/ty/android/system/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_parse.h

echo '#endif' >> /home/ty/android/system/out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_parse.h

make: Leaving directory '/home/ty/android/system'

#### make failed to build some targets (03:29 (mm:ss)) ####

This is my error code. Was hoping you guys could point me in the direction i need to be looking.

Thanks