Mark Corrigan
Mark Corrigan

Reputation: 544

Make cannot find present cross compiler

I'm using a make file to compile a kernel for an arm/Xilinx platform.

I'm setting an env variable CROSS_COMPILE which the make file will then use.

I'm trying to use a cross compiler, which is present on my system, called arm-xilinx-linux-gnueabi-gcc by setting the env var in the following ways;

export CROSS_COMPILE=/opt/Xilinx/SDK/2015.2/gnu/arm/lin/bin/arm-xilinx-linux-gnueabi-

export CROSS_COMPILE=arm-xilinx-linux-gnueabi-

The make file should append gcc.

The error given for both is

make: /opt/Xilinx/SDK/2015.2/gnu/arm/lin/bin/arm-xilinx-linux-gnueabi-gcc: Command not found
scripts/kconfig/conf --silentoldconfig Kconfig
make: /opt/Xilinx/SDK/2015.2/gnu/arm/lin/bin/arm-xilinx-linux-gnueabi-gcc: Command not found
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
  CC      kernel/bounds.s
/bin/sh: 1: /opt/Xilinx/SDK/2015.2/gnu/arm/lin/bin/arm-xilinx-linux-gnueabi-gcc: not found
make[1]: *** [kernel/bounds.s] Error 127
make: *** [prepare0] Error 2

It works with other arm cross compilers but this one.

Why is this?

Upvotes: 0

Views: 1799

Answers (1)

jmlemetayer
jmlemetayer

Reputation: 4952

According answers you gave in comments, you are trying to run a 32bits executable on a 64bits host platform.

So, if your are on Ubuntu check this answer from askubuntu.

Upvotes: 1

Related Questions