[Nexus 4 Android Development] KreAch3R:
[MENTION=4770534]snak3ater[/MENTION], [MENTION=4450732]CallMeAldy[/MENTION]

After another sync, I managed to get this build error twice, so I am posting it:

Export includes file: system/core/libmincrypt/Android.mk -- out/target/product/mako/obj/STATIC_LIBRARIES/libmincrypt_intermediates/export_includes
ccache: FATAL: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/arm-linux-androideabi-gcc: execv returned (No such file or directory)
make: *** [out/target/product/mako/obj/lib/crtbegin_static1.o] Error 1
make: *** Waiting for unfinished jobs....
ccache: FATAL: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/arm-linux-androideabi-gcc: execv returned (No such file or directory)
make: *** [out/target/product/mako/obj/lib/crtbrand.s] Error 1

Whole output:

~/android$ make -j5 otapackage
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.0.1
TARGET_PRODUCT=simpleaosp_mako
TARGET_BUILD_VARIANT=user
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-40-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=LRX22C
OUT_DIR=out
============================================
Checking build tools versions...
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `src': No such file or directory
find: `phone/java': No such file or directory
find: `phone/java': No such file or directory
find: `dummy': No such file or directory
PRODUCT_COPY_FILES device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.
build/core/Makefile:46: warning: overriding commands for target `out/target/product/mako/system/lib/hw/gps.msm8960.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `out/target/product/mako/system/lib/hw/gps.msm8960.so'
build/core/Makefile:46: warning: overriding commands for target `out/target/product/mako/system/lib/libgps.utils.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `out/target/product/mako/system/lib/libgps.utils.so'
build/core/Makefile:46: warning: overriding commands for target `out/target/product/mako/system/lib/libloc_core.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `out/target/product/mako/system/lib/libloc_core.so'
build/core/Makefile:46: warning: overriding commands for target `out/target/product/mako/system/lib/libloc_eng.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `out/target/product/mako/system/lib/libloc_eng.so'
build/core/Makefile:46: warning: overriding commands for target `out/target/product/mako/system/lib/libjni_latinime.so'
build/core/base_rules.mk:550: warning: ignoring old commands for target `out/target/product/mako/system/lib/libjni_latinime.so'
No private recovery resources for TARGET_DEVICE mako
Export includes file: system/core/libmincrypt/Android.mk -- out/host/linux-x86/obj32/STATIC_LIBRARIES/libmincrypt_intermediates/export_includes
Header: out/target/product/mako/obj/include/mm-camera-interface/mm_camera_interface2.h
Header: out/target/product/mako/obj/include/mm-camera-interface/mm_omx_jpeg_encoder.h
Header: out/host/linux-x86/obj/include/libexpat/expat.h
Header: out/host/linux-x86/obj/include/libexpat/expat_external.h
Header: out/target/product/mako/obj/include/libexpat/expat.h
Header: out/target/product/mako/obj/include/libexpat/expat_external.h
Header: out/host/linux-x86/obj/include/libpng/png.h
Header: out/host/linux-x86/obj/include/libpng/pngconf.h
Header: out/host/linux-x86/obj/include/libpng/pngusr.h
Header: out/target/product/mako/obj/include/libpng/png.h
Header: out/target/product/mako/obj/include/libpng/pngconf.h
Header: out/target/product/mako/obj/include/libpng/pngusr.h
Header: out/host/linux-x86/obj/include/selinux/selinux.h
Header: out/host/linux-x86/obj/include/selinux/label.h
Header: out/host/linux-x86/obj/include/selinux/context.h
Header: out/host/linux-x86/obj/include/selinux/avc.h
Header: out/host/linux-x86/obj/include/selinux/android.h
Header: out/target/product/mako/obj/include/selinux/selinux.h
Header: out/target/product/mako/obj/include/selinux/label.h
Header: out/target/product/mako/obj/include/selinux/context.h
Header: out/target/product/mako/obj/include/selinux/avc.h
Header: out/target/product/mako/obj/include/selinux/android.h
Header: out/target/product/mako/obj/include/libsonivox/eas.h
Header: out/target/product/mako/obj/include/libsonivox/eas_types.h
Header: out/target/product/mako/obj/include/libsonivox/eas_reverb.h
Header: out/target/product/mako/obj/include/libsonivox/jet.h
Header: out/target/product/mako/obj/include/libsonivox/ARM_synth_constants_gnu.inc
Header: out/target/product/mako/obj/include/libwpa_client/wpa_ctrl.h
Header: out/target/product/mako/obj/include/libwpa_client/qca-vendor.h
Header: out/target/product/mako/obj/include/qcom/display/gralloc_priv.h
Header: out/target/product/mako/obj/include/qcom/display/copybit.h
Header: out/target/product/mako/obj/include/qcom/display/copybit_priv.h
Header: out/target/product/mako/obj/include/qcom/display/c2d2.h
Header: out/target/product/mako/obj/include/qcom/display/qdMetaData.h
Header: out/target/product/mako/obj/include/qcom/display/IQService.h
Header: out/target/product/mako/obj/include/qcom/display/IQClient.h
Header: out/target/product/mako/obj/include/libloc_core//MsgTask.h
Header: out/target/product/mako/obj/include/libloc_core//LocApiBase.h
Header: out/target/product/mako/obj/include/libloc_core//LocAdapterBase.h
Header: out/target/product/mako/obj/include/libloc_core//ContextBase.h
Header: out/target/product/mako/obj/include/libloc_core//LocDualContext.h
Header: out/target/product/mako/obj/include/libloc_core//IzatProxyBase.h
Header: out/target/product/mako/obj/include/libloc_core//UlpProxyBase.h
Header: out/target/product/mako/obj/include/libloc_core//gps_extended_c.h
Header: out/target/product/mako/obj/include/libloc_core//gps_extended.h
Header: out/target/product/mako/obj/include/libloc_core//loc_core_log.h
Header: out/target/product/mako/obj/include/libloc_eng//LocEngAdapter.h
Header: out/target/product/mako/obj/include/libloc_eng//loc.h
Header: out/target/product/mako/obj/include/libloc_eng//loc_eng.h
Header: out/target/product/mako/obj/include/libloc_eng//loc_eng_xtra.h
Header: out/target/product/mako/obj/include/libloc_eng//loc_eng_ni.h
Header: out/target/product/mako/obj/include/libloc_eng//loc_eng_agps.h
Header: out/target/product/mako/obj/include/libloc_eng//loc_eng_msg.h
Header: out/target/product/mako/obj/include/libloc_eng//loc_eng_log.h
Header: out/target/product/mako/obj/include/gps.utils//loc_log.h
Header: out/target/product/mako/obj/include/gps.utils//loc_cfg.h
Header: out/target/product/mako/obj/include/gps.utils//log_util.h
Header: out/target/product/mako/obj/include/gps.utils//linked_list.h
Header: out/target/product/mako/obj/include/gps.utils//msg_q.h
Header: out/target/product/mako/obj/include/gps.utils//loc_target.h
Header: out/target/product/mako/obj/include/gps.utils//loc_timer.h
Header: out/target/product/mako/obj/include/gps.utils//platform_lib_includes.h
Header: out/target/product/mako/obj/include/gps.utils//platform_lib_time.h
Header: out/target/product/mako/obj/include/gps.utils//platform_lib_macros.h
Header: out/target/product/mako/obj/include/mm-core/omxcore/OMX_Audio.h
Header: out/target/product/mako/obj/include/mm-core/omxcore/OMX_Component.h
Header: out/target/product/mako/obj/include/mm-core/omxcore/OMX_ContentPipe.h
Header: out/target/product/mako/obj/include/mm-core/omxcore/OMX_Core.h
Header: out/target/product/mako/obj/include/mm-core/omxcore/OMX_Image.h
Header: out/target/product/mako/obj/include/mm-core/omxcore/OMX_Index.h
Header: out/target/product/mako/obj/include/mm-core/omxcore/OMX_IVCommon.h
Header: out/target/product/mako/obj/include/mm-core/omxcore/OMX_Other.h
Header: out/target/product/mako/obj/include/mm-core/omxcore/OMX_QCOMExtns.h
Header: out/target/product/mako/obj/include/mm-core/omxcore/OMX_Types.h
Header: out/target/product/mako/obj/include/mm-core/omxcore/OMX_Video.h
Header: out/target/product/mako/obj/include/mm-core/omxcore/qc_omx_common.h
Header: out/target/product/mako/obj/include/mm-core/omxcore/qc_omx_component.h
Header: out/target/product/mako/obj/include/mm-core/omxcore/qc_omx_msg.h
Header: out/target/product/mako/obj/include/mm-core/omxcore/QOMX_AudioExtensions.h
Header: out/target/product/mako/obj/include/mm-core/omxcore/QOMX_AudioIndexExtensions.h
Header: out/target/product/mako/obj/include/mm-core/omxcore/OMX_CoreExt.h
Header: out/target/product/mako/obj/include/mm-core/omxcore/QOMX_CoreExtensions.h
Header: out/target/product/mako/obj/include/mm-core/omxcore/QOMX_FileFormatExtensions.h
Header: out/target/product/mako/obj/include/mm-core/omxcore/QOMX_IVCommonExtensions.h
Header: out/target/product/mako/obj/include/mm-core/omxcore/QOMX_SourceExtensions.h
Header: out/target/product/mako/obj/include/mm-core/omxcore/QOMX_VideoExtensions.h
Header: out/target/product/mako/obj/include/mm-core/omxcore/OMX_IndexExt.h
Header: out/target/product/mako/obj/include/mm-core/omxcore/OMX_VideoExt.h
Header: out/target/product/mako/obj/include/mm-core/omxcore/QOMX_StreamingExtensions.h
Header: out/target/product/mako/obj/include/mm-core/omxcore/QCMediaDefs.h
Header: out/target/product/mako/obj/include/mm-core/omxcore/QCMetaData.h
Import includes file: out/host/linux-x86/obj32/STATIC_LIBRARIES/libmincrypt_intermediates/import_includes
Export includes file: system/core/mkbootimg/Android.mk -- out/host/linux-x86/obj32/EXECUTABLES/mkbootimg_intermediates/export_includes
Export includes file: build/libs/host/Android.mk -- out/host/linux-x86/obj32/STATIC_LIBRARIES/libhost_intermediates/export_includes
Import includes file: out/host/linux-x86/obj32/STATIC_LIBRARIES/libhost_intermediates/import_includes
Export includes file: build/tools/acp/Android.mk -- out/host/linux-x86/obj32/EXECUTABLES/acp_intermediates/export_includes
Notice file: system/core/libmincrypt/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/libmincrypt.a.txt
Import includes file: out/host/linux-x86/obj32/EXECUTABLES/mkbootfs_intermediates/import_includes
Export includes file: system/core/cpio/Android.mk -- out/host/linux-x86/obj32/EXECUTABLES/mkbootfs_intermediates/export_includes
Export includes file: external/libsepol/Android.mk -- out/host/linux-x86/obj32/STATIC_LIBRARIES/libsepol_intermediates/export_includes
Yacc: checkpolicy <= external/checkpolicy/policy_parse.y
prebuilts/misc/linux-x86/bison/bison -d -v -o out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_parse.cpp external/checkpolicy/policy_parse.y
Import includes file: out/host/linux-x86/obj32/STATIC_LIBRARIES/libsepol_intermediates/import_includes
Lex: checkpolicy <= external/checkpolicy/policy_scan.l
Export includes file: external/checkpolicy/Android.mk -- out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/export_includes
Export includes file: external/libselinux/Android.mk -- out/host/linux-x86/obj32/STATIC_LIBRARIES/libselinux_intermediates/export_includes
Import includes file: out/host/linux-x86/obj32/STATIC_LIBRARIES/libselinux_intermediates/import_includes
Export includes file: external/sepolicy/tools/Android.mk -- out/host/linux-x86/obj32/EXECUTABLES/checkfc_intermediates/export_includes
Notice file: external/libselinux/NOTICE -- out/host/linux-x86/obj/NOTICE_FILES/src//lib/libselinux.a.txt
Notice file: external/sepolicy/NOTICE -- out/target/product/mako/obj/NOTICE_FILES/src//root/file_contexts.txt
Export includes file: bionic/libc/Android.mk -- out/target/product/mako/obj/SHARED_LIBRARIES/libc_intermediates/export_includes
Export includes file: bionic/libm/Android.mk -- out/target/product/mako/obj/SHARED_LIBRARIES/libm_intermediates/export_includes
Export includes file: bionic/libc/Android.mk -- out/target/product/mako/obj/SHARED_LIBRARIES/libstdc++_intermediates/export_includes
Export includes file: system/core/fs_mgr/Android.mk -- out/target/product/mako/obj/STATIC_LIBRARIES/libfs_mgr_intermediates/export_includes
Export includes file: system/core/logwrapper/Android.mk -- out/target/product/mako/obj/STATIC_LIBRARIES/liblogwrap_intermediates/export_includes
Export includes file: system/core/libcutils/Android.mk -- out/target/product/mako/obj/STATIC_LIBRARIES/libcutils_intermediates/export_includes
Export includes file: system/core/liblog/Android.mk -- out/target/product/mako/obj/STATIC_LIBRARIES/liblog_intermediates/export_includes
Export includes file: bionic/libc/Android.mk -- out/target/product/mako/obj/STATIC_LIBRARIES/libc_intermediates/export_includes
Export includes file: external/libselinux/Android.mk -- out/target/product/mako/obj/STATIC_LIBRARIES/libselinux_intermediates/export_includes
Export includes file: system/core/libmincrypt/Android.mk -- out/target/product/mako/obj/STATIC_LIBRARIES/libmincrypt_intermediates/export_includes
ccache: FATAL: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/arm-linux-androideabi-gcc: execv returned (No such file or directory)
make: *** [out/target/product/mako/obj/lib/crtbegin_static1.o] Error 1
make: *** Waiting for unfinished jobs....
ccache: FATAL: prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.8/bin/arm-linux-androideabi-gcc: execv returned (No such file or directory)
make: *** [out/target/product/mako/obj/lib/crtbrand.s] Error 1
touch out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_parse.hpp
echo '#ifndef 'policy_parse_h > out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_parse.h
echo '#define 'policy_parse_h >> out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_parse.h
cat out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_parse.hpp >> out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_parse.h
echo '#endif' >> out/host/linux-x86/obj32/EXECUTABLES/checkpolicy_intermediates/policy_parse.h

#### make failed to build some targets (02:11 (mm:ss)) ####

Seems like an error with the toolchain? I noticed that if I change the number of jobs (-jX), the error output change a little, but the main error is the same (I have more logs if you need them).