I am trying to build a ROM from AOSP 5.1.1 specifically (Nexus 7 - grouper). However, a while ago I got stuck at this part while building the kernel.
The following command works fine: make tegra3_android_defconfig
The problem starts when I write: make -j4
It crashes and says:
Fahads-MBP:tegra Fahad$ make -j4
/volumes/untitled/tegra/../WORKING_DIRECTORY/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-gcc: /volumes/untitled/tegra/../WORKING_DIRECTORY/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-gcc: cannot execute binary file
CHK include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
HOSTCC scripts/basic/fixdep
Generating include/generated/mach-types.h
CC kernel/bounds.s
/bin/sh: /volumes/untitled/tegra/../WORKING_DIRECTORY/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-gcc: cannot execute binary file
make[1]: *** [kernel/bounds.s] Error 126
make: *** [prepare0] Error 2
#### make failed to build some targets (2 seconds) ####
I ran the command
chmod 777 arm-eabi-gcc
and
chmod +x arm-eabi-gcc
but still no use. It gives the same cannot execute the binary file error. Any suggestions?