Skip to main content
edited tags; edited title
Source Link
Gilles 'SO- stop being evil'
  • 865.9k
  • 205
  • 1.8k
  • 2.3k

How to modify arm-eabi-gcc: cannot execute binary file executable permissions in order to build a kernel

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.

theThe following command works fine: make tegra3_android_defconfigmake tegra3_android_defconfig The problem starts when I write: make -j4make -j4

itIt 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?

How to modify file executable permissions in order to build a kernel

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?

arm-eabi-gcc: cannot execute binary file

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?

Source Link
fahad
  • 31
  • 1
  • 3

How to modify file executable permissions in order to build a kernel

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?