[General Questions and Answers] shivaay1234:
I'm getting this error when trying to build any ROM on my MAC. I haven't even managed to build a single ROM due to this issue.

The code below is for the pixel experience ROM based on android 10 and the device I'm building for is the Xiaomi Redmi Note 3(kenzo).

All ROMs give me the exact same error.

Please help me guys. Really wanna learn... :(

The error:

PANKAJs-iMac:firstrom pankajjaiswal$ lunch aosp_kenzo-userdebug
usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
Trying dependencies-only mode on a non-existing device tree?
usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]

============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
CUSTOM_VERSION=PixelExperience_kenzo-10.0-20200224-1205-UNOFFICIAL
TARGET_PRODUCT=aosp_kenzo
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=cortex-a53.a57
HOST_ARCH=x86_64
HOST_OS=darwin
HOST_OS_EXTRA=Darwin-17.7.0-x86_64-10.13.6
HOST_BUILD_TYPE=release
BUILD_ID=QQ1B.200205.002
OUT_DIR=/Volumes/android/firstrom/out
PRODUCT_SOONG_NAMESPACES= hardware/qcom-caf/msm8952 frameworks/av/camera/cameraserver frameworks/av/services/camera/libcameraservice
============================================
PANKAJs-iMac:firstrom pankajjaiswal$ mka bacon -j4
usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=10
CUSTOM_VERSION=PixelExperience_kenzo-10.0-20200224-1206-UNOFFICIAL
TARGET_PRODUCT=aosp_kenzo
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm64
TARGET_ARCH_VARIANT=armv8-a
TARGET_CPU_VARIANT=cortex-a53
TARGET_2ND_ARCH=arm
TARGET_2ND_ARCH_VARIANT=armv8-a
TARGET_2ND_CPU_VARIANT=cortex-a53.a57
HOST_ARCH=x86_64
HOST_OS=darwin
HOST_OS_EXTRA=Darwin-17.7.0-x86_64-10.13.6
HOST_BUILD_TYPE=release
BUILD_ID=QQ1B.200205.002
OUT_DIR=/Volumes/android/firstrom/out
PRODUCT_SOONG_NAMESPACES= hardware/qcom-caf/msm8952 frameworks/av/camera/cameraserver frameworks/av/services/camera/libcameraservice
============================================
usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
[100% 140/140] initializing build system ...
usage: date [-jnRu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
[ 24% 142/584] including art/Android.mk ...
art/build/Android.common.mk:51: warning: unsupported HOST_ARCH=x86_64
[ 59% 348/584] including hardware/qcom-caf/msm8952/Android.mk ...
hardware/qcom-caf/msm8952/media/Android.mk:4: warning: target list is : msm8952
[100% 584/584] writing build rules ...
build/make/core/base_rules.mk:495: warning: overriding commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/etc/init/android.hardware.biometrics.fingerprint@2.0-service.rc'
build/make/core/base_rules.mk:495: warning: ignoring old commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/etc/init/android.hardware.biometrics.fingerprint@2.0-service.rc'
build/make/core/base_rules.mk:495: warning: overriding commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/etc/init/android.hardware.ir@1.0-service.rc'
build/make/core/base_rules.mk:495: warning: ignoring old commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/etc/init/android.hardware.ir@1.0-service.rc'
build/make/core/Makefile:28: warning: overriding commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/bin/wcnss_service'
build/make/core/base_rules.mk:480: warning: ignoring old commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/bin/wcnss_service'
build/make/core/Makefile:28: warning: overriding commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/bin/hw/rild'
build/make/core/base_rules.mk:480: warning: ignoring old commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/bin/hw/rild'
build/make/core/Makefile:28: warning: overriding commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/lib/com.quicinc.cne.api@1.0.so'
build/make/core/base_rules.mk:480: warning: ignoring old commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/lib/com.quicinc.cne.api@1.0.so'
build/make/core/Makefile:28: warning: overriding commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/lib/com.quicinc.cne.constants@1.0.so'
build/make/core/base_rules.mk:480: warning: ignoring old commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/lib/com.quicinc.cne.constants@1.0.so'
build/make/core/Makefile:28: warning: overriding commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/lib/com.quicinc.cne.constants@2.0.so'
build/make/core/base_rules.mk:480: warning: ignoring old commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/lib/com.quicinc.cne.constants@2.0.so'
build/make/core/Makefile:28: warning: overriding commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/lib/com.quicinc.cne.server@2.0.so'
build/make/core/base_rules.mk:480: warning: ignoring old commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/lib/com.quicinc.cne.server@2.0.so'
build/make/core/Makefile:28: warning: overriding commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/lib/libril.so'
build/make/core/base_rules.mk:480: warning: ignoring old commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/lib/libril.so'
build/make/core/Makefile:28: warning: overriding commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/lib64/libril.so'
build/make/core/base_rules.mk:480: warning: ignoring old commands for target `/Volumes/android/firstrom/out/target/product/kenzo/system/vendor/lib64/libril.so'
[ 2% 1980/80076] target C++: libgps.utils <= device/xiaomi/msm8956-common/gps
device/xiaomi/msm8956-common/gps/utils/loc_cfg.cpp:384:11: warning: unused variable 'lasts' [-Wunused-variable]
char *lasts;
^
device/xiaomi/msm8956-common/gps/utils/loc_cfg.cpp:385:22: warning: unused variable 'config_value' [-Wunused-variable]
loc_param_v_type config_value;
^
device/xiaomi/msm8956-common/gps/utils/loc_cfg.cpp:386:14: warning: unused variable 'i' [-Wunused-variable]
uint32_t i;
^
3 warnings generated.
[ 2% 1986/80076] target C++: libloc_core <= device/xiaomi/msm8956-common/gps/
device/xiaomi/msm8956-common/gps/core/data-items/DataItemsFactoryProxy.cpp:71:79: warning: format specifies type 'unsigned int' but the argument has type 'loc_core::get_concrete_data_item_fn *' (aka 'loc_core::IDataItemCore *(*)(e_DataItemId)') [-Wformat]
LOC_LOGD("Loaded function %s : %x",DATA_ITEMS_GET_CONCRETE_DI,getConcreteDIFunc);
~~ ^~~~~~~~~~~~~~~~~
device/xiaomi/msm8956-common/gps/utils/log_util.h:110:43: note: expanded from macro 'LOC_LOGD'
#define LOC_LOGD(...) IF_LOC_LOGD { ALOGD(__VA_ARGS__); }
^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:226:52: note: expanded from macro 'ALOGD'
#define ALOGD(...) ((void)ALOG(LOG_DEBUG, LOG_TAG, __VA_ARGS__))
^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:331:67: note: expanded from macro 'ALOG'
#define ALOG(priority, tag, ...) LOG_PRI(ANDROID_##priority, tag, __VA_ARGS__)
^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:94:69: note: expanded from macro 'LOG_PRI'
#define LOG_PRI(priority, tag, ...) android_printLog(priority, tag, __VA_ARGS__)
^~~~~~~~~~~
system/core/liblog/include/log/log_main.h:85:34: note: expanded from macro 'android_printLog'
__android_log_print(prio, tag, __VA_ARGS__)
^~~~~~~~~~~
1 warning generated.
[ 2% 1987/80076] target C++: libloc_core <= device/xiaomi/msm8956-common/gps/
device/xiaomi/msm8956-common/gps/core/loc_core_log.cpp:105:34: warning: variable 'loc_eng_aiding_data_bits' is not needed and will not be emitted [-Wunneeded-internal-declaration]
static const loc_name_val_s_type loc_eng_aiding_data_bits[] =
^
device/xiaomi/msm8956-common/gps/core/loc_core_log.cpp:121:18: warning: unused variable 'loc_eng_aiding_data_bit_num' [-Wunused-const-variable]
static const int loc_eng_aiding_data_bit_num = sizeof(loc_eng_aiding_data_bits) / sizeof(loc_name_val_s_type);
^
2 warnings generated.
[ 2% 1991/80076] target C++: libgps.utils <= device/xiaomi/msm8956-common/gps
device/xiaomi/msm8956-common/gps/utils/loc_target.cpp:216:9: warning: unused variable 'ret' [-Wunused-variable]
int ret = 0;
^
1 warning generated.
[ 2% 2008/80076] target C++: libgps.utils <= device/xiaomi/msm8956-common/gps
device/xiaomi/msm8956-common/gps/utils/loc_nmea.cpp:985:11: warning: unused variable 'pMarker' [-Wunused-variable]
char* pMarker = sentence;
^
device/xiaomi/msm8956-common/gps/utils/loc_nmea.cpp:986:9: warning: unused variable 'lengthRemaining' [-Wunused-variable]
int lengthRemaining = sizeof(sentence);
^
device/xiaomi/msm8956-common/gps/utils/loc_nmea.cpp:987:9: warning: unused variable 'length' [-Wunused-variable]
int length = 0;
^
device/xiaomi/msm8956-common/gps/utils/loc_nmea.cpp:989:9: warning: unused variable 'sentenceCount' [-Wunused-variable]
int sentenceCount = 0;
^
device/xiaomi/msm8956-common/gps/utils/loc_nmea.cpp:990:9: warning: unused variable 'sentenceNumber' [-Wunused-variable]
int sentenceNumber = 1;
^
5 warnings generated.
[ 2% 2024/80076] target C++: libloc_core <= device/xiaomi/msm8956-common/gps/
device/xiaomi/msm8956-common/gps/core/SystemStatus.cpp:1423:37: warning: 'reinterpret_cast' to class 'loc_core::SystemStatusNetworkInfo *' from its base at non-zero offset 'loc_core::IDataItemCore *' behaves differently from 'static_cast' [-Wreinterpret-base-class]
SystemStatusNetworkInfo* data = reinterpret_cast<SystemStatusNetworkInfo*>(dataitem);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
device/xiaomi/msm8956-common/gps/core/SystemStatus.cpp:1423:37: note: use 'static_cast' to adjust the pointer correctly while downcasting
SystemStatusNetworkInfo* data = reinterpret_cast<SystemStatusNetworkInfo*>(dataitem);
^~~~~~~~~~~~~~~~
static_cast
device/xiaomi/msm8956-common/gps/core/SystemStatus.cpp:1570:12: warning: 26 enumeration values not handled in switch: 'INVALID_DATA_ITEM_ID', 'AIRPLANEMODE_DATA_ITEM_ID', 'ENH_DATA_ITEM_ID'... [-Wswitch]
switch(dataitem->getId())
^
2 warnings generated.
[ 2% 2034/80076] target C++: libgnss <= device/xiaomi/msm8956-common/gps/gnss
device/xiaomi/msm8956-common/gps/gnss/XtraSystemStatusObserver.cpp:205:33: warning: 'reinterpret_cast' to class 'loc_core::SystemStatusNetworkInfo *' from its base at non-zero offset 'loc_core::IDataItemCore *' behaves differently from 'static_cast' [-Wreinterpret-base-class]
reinterpret_cast<SystemStatusNetworkInfo*>(each);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
device/xiaomi/msm8956-common/gps/gnss/XtraSystemStatusObserver.cpp:205:33: note: use 'static_cast' to adjust the pointer correctly while downcasting
reinterpret_cast<SystemStatusNetworkInfo*>(each);
^~~~~~~~~~~~~~~~
static_cast
device/xiaomi/msm8956-common/gps/gnss/XtraSystemStatusObserver.cpp:213:48: warning: 'reinterpret_cast' to class 'loc_core::SystemStatusTac *' from its base at non-zero offset 'loc_core::IDataItemCore *' behaves differently from 'static_cast' [-Wreinterpret-base-class]
SystemStatusTac* tac = reinterpret_cast<SystemStatusTac*>(each);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
device/xiaomi/msm8956-common/gps/gnss/XtraSystemStatusObserver.cpp:213:48: note: use 'static_cast' to adjust the pointer correctly while downcasting
SystemStatusTac* tac = reinterpret_cast<SystemStatusTac*>(each);
^~~~~~~~~~~~~~~~
static_cast
device/xiaomi/msm8956-common/gps/gnss/XtraSystemStatusObserver.cpp:220:54: warning: 'reinterpret_cast' to class 'loc_core::SystemStatusMccMnc *' from its base at non-zero offset 'loc_core::IDataItemCore *' behaves differently from 'static_cast' [-Wreinterpret-base-class]
SystemStatusMccMnc* mccmnc = reinterpret_cast<SystemStatusMccMnc*>(each);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
device/xiaomi/msm8956-common/gps/gnss/XtraSystemStatusObserver.cpp:220:54: note: use 'static_cast' to adjust the pointer correctly while downcasting
SystemStatusMccMnc* mccmnc = reinterpret_cast<SystemStatusMccMnc*>(each);
^~~~~~~~~~~~~~~~
static_cast
3 warnings generated.
[ 2% 2036/80076] target C++: liblocation_api <= device/xiaomi/msm8956-common/
device/xiaomi/msm8956-common/gps/location/LocationAPIClientBase.cpp:156:18: warning: unused variable 'session' [-Wunused-variable]
uint32_t session = 0;
^
1 warning generated.
[ 3% 2406/80076] target C: libwpa_client <= external/wpa_supplicant_8/wpa_sup
external/wpa_supplicant_8/wpa_supplicant/src/common/wpa_ctrl.c:291:9: warning: 'readdir_r' is deprecated: readdir_r is deprecated; use readdir instead [-Wdeprecated-declarations]
while (readdir_r(dir, &entry, &result) == 0 && result != NULL) {
^
bionic/libc/include/dirent.h:83:92: note: 'readdir_r' has been explicitly marked deprecated here
int readdir_r(DIR* __dir, struct dirent* __entry, struct dirent** __buffer) __attribute__((__deprecated__("readdir_r is deprecated; use readdir instead")));
^
1 warning generated.
[ 3% 2447/80076] Building Kernel Config
FAILED: /Volumes/android/firstrom/out/target/product/kenzo/obj/KERNEL_OBJ/.config
/bin/bash -c "(PATH=/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-/bin:\$PATH PATH=/Volumes/android/firstrom/prebuilts/tools-custom/darwin-x86/bin:\$PATH LD_LIBRARY_PATH=/Volumes/android/firstrom/prebuilts/tools-custom/darwin-x86/lib:\$LD_LIBRARY_PATH PERL5LIB=/Volumes/android/firstrom/prebuilts/tools-custom/common/perl-base /Volumes/android/firstrom/prebuilts/build-tools/darwin-x86/bin/make -j CFLAGS_MODULE=\"-fno-pic\" HOSTCFLAGS=\"-I/Volumes/android/firstrom/external/elfutils/libelf -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib\" HOSTCC=/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/host/i686-apple-darwin-4.2.1/bin/i686-apple-darwin11-gcc HOSTCXX=/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/host/i686-apple-darwin-4.2.1/bin/i686-apple-darwin11-g++ -C kernel/xiaomi/msm8956 O=/Volumes/android/firstrom/out/target/product/kenzo/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"/usr/local/bin/ccache /Volumes/android/firstrom/prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= lineageos_kenzo_defconfig ) && (if [ ! -z \"\" ]; then echo \"Overriding kernel config with ''\"; echo >> /Volumes/android/firstrom/out/target/product/kenzo/obj/KERNEL_OBJ/.config; PATH=/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-/bin:\$PATH PATH=/Volumes/android/firstrom/prebuilts/tools-custom/darwin-x86/bin:\$PATH LD_LIBRARY_PATH=/Volumes/android/firstrom/prebuilts/tools-custom/darwin-x86/lib:\$LD_LIBRARY_PATH PERL5LIB=/Volumes/android/firstrom/prebuilts/tools-custom/common/perl-base /Volumes/android/firstrom/prebuilts/build-tools/darwin-x86/bin/make -j CFLAGS_MODULE=\"-fno-pic\" HOSTCFLAGS=\"-I/Volumes/android/firstrom/external/elfutils/libelf -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib\" HOSTCC=/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/host/i686-apple-darwin-4.2.1/bin/i686-apple-darwin11-gcc HOSTCXX=/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/host/i686-apple-darwin-4.2.1/bin/i686-apple-darwin11-g++ -C kernel/xiaomi/msm8956 O=/Volumes/android/firstrom/out/target/product/kenzo/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"/usr/local/bin/ccache /Volumes/android/firstrom/prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" oldconfig; fi ) && (PATH=/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-/bin:\$PATH PATH=/Volumes/android/firstrom/prebuilts/tools-custom/darwin-x86/bin:\$PATH LD_LIBRARY_PATH=/Volumes/android/firstrom/prebuilts/tools-custom/darwin-x86/lib:\$LD_LIBRARY_PATH PERL5LIB=/Volumes/android/firstrom/prebuilts/tools-custom/common/perl-base /Volumes/android/firstrom/prebuilts/build-tools/darwin-x86/bin/make -j CFLAGS_MODULE=\"-fno-pic\" HOSTCFLAGS=\"-I/Volumes/android/firstrom/external/elfutils/libelf -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib\" HOSTCC=/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/host/i686-apple-darwin-4.2.1/bin/i686-apple-darwin11-gcc HOSTCXX=/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/host/i686-apple-darwin-4.2.1/bin/i686-apple-darwin11-g++ -C kernel/xiaomi/msm8956 O=/Volumes/android/firstrom/out/target/product/kenzo/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"/usr/local/bin/ccache /Volumes/android/firstrom/prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" savedefconfig ) && (if [ ! -z \"\" ]; then echo \"Using additional config ''\"; kernel/xiaomi/msm8956/scripts/kconfig/merge_config.sh -m -O /Volumes/android/firstrom/out/target/product/kenzo/obj/KERNEL_OBJ /Volumes/android/firstrom/out/target/product/kenzo/obj/KERNEL_OBJ/.config kernel/xiaomi/msm8956/arch/arm64/configs/; PATH=/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-/bin:\$PATH PATH=/Volumes/android/firstrom/prebuilts/tools-custom/darwin-x86/bin:\$PATH LD_LIBRARY_PATH=/Volumes/android/firstrom/prebuilts/tools-custom/darwin-x86/lib:\$LD_LIBRARY_PATH PERL5LIB=/Volumes/android/firstrom/prebuilts/tools-custom/common/perl-base /Volumes/android/firstrom/prebuilts/build-tools/darwin-x86/bin/make -j CFLAGS_MODULE=\"-fno-pic\" HOSTCFLAGS=\"-I/Volumes/android/firstrom/external/elfutils/libelf -I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib\" HOSTCC=/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/host/i686-apple-darwin-4.2.1/bin/i686-apple-darwin11-gcc HOSTCXX=/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/host/i686-apple-darwin-4.2.1/bin/i686-apple-darwin11-g++ -C kernel/xiaomi/msm8956 O=/Volumes/android/firstrom/out/target/product/kenzo/obj/KERNEL_OBJ ARCH=arm64 CROSS_COMPILE=\"/usr/local/bin/ccache /Volumes/android/firstrom/prebuilts/gcc/darwin-x86/aarch64/aarch64-linux-android-4.9/bin/aarch64-linux-android-\" CROSS_COMPILE_ARM32=\"/Volumes/android/firstrom/prebuilts/gcc/darwin-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel-\" KCONFIG_ALLCONFIG=/Volumes/android/firstrom/out/target/product/kenzo/obj/KERNEL_OBJ/.config alldefconfig; fi )"
make: Entering directory '/Volumes/android/firstrom/kernel/xiaomi/msm8956'
GEN /Volumes/android/firstrom/out/target/product/kenzo/obj/KERNEL_OBJ/Makefile
HOSTCC scripts/basic/fixdep
couldn't understand kern.osversion `17.7.0'
i686-apple-darwin11-gcc: error trying to exec 'as': execvp: No such file or directory
make[2]: *** [scripts/Makefile.host:118: scripts/basic/fixdep] Error 1
make[1]: *** [/Volumes/android/firstrom/kernel/xiaomi/msm8956/Makefile:425: scripts_basic] Error 2
make: *** [Makefile:130: sub-make] Error 2
make: Leaving directory '/Volumes/android/firstrom/kernel/xiaomi/msm8956'
17:49:38 ninja failed with: exit status 1

#### failed to build some targets (13:45 (mm:ss)) ####

PANKAJs-iMac:firstrom pankajjaiswal$