I am trying to compile a kernel on my FOX G20 V board. In order to do so, I have to specify the cross compiler in one of the steps arm-linux-gnueabi
. The command is
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- at91-ariag25.dtb
So in order for the compiler to know where the executable of the cross compiler is, I specify it in the path by doing
export PATH=$PATH:/home/path_goes_here/bin
When I do echo $PATH
, I get the right path of the cross compiler. However, now when I do the make of my project, I receive:
make: command not found
But when I don't specify the path of the compiler, the make works but when it reaches the point of the cross compiler, it gives me:
make: arm-linux-gnueabi-gcc: Command not found
I think that my make is not in my system path when I change it to the cross compiler. Therefore, how can I add both the make and the cross compiler to the system path?
EDIT
My cross compiler is actually arm-linux-gnueabi-gcc-4.7
, and not arm-linux-gnueabi-gcc
. Yet when I specify the cross compiler in the make
by doing CROSS_COMPILE=arm-linux-gnueabi-
, I get:
make: arm-linux-gnueabi-gcc: Command not found
Because arm-linux-gnueabi-gcc
isn't the one it should be looking for. Yet when I specify CROSS_COMPILE=arm-linux-gnueabi-gcc-4.7
, it appends gcc
at the end of that and gives me:
make: arm-linux-gnueabi-gcc-4.7gcc: Command not found
EDIT 2
I simply renamed the cross compiler and that seemed to work. But now, I get the error:
arm-linux-gnueabi-gcc: error trying to exec 'cc1': execvp: No such file or directory
readelf -a /path/to/arm-linux-gnueabi-gcc | grep "Requesting"
here?. you might have to move the whole path to right position if the programi interpreter does not exist in that path. – ymonadexport PATH=$PATH:/home/dico/gcc-4.7-arm-linux-gnueabi_4.7.2-1/usr/bin
, but when I try to compile, I still getarm-linux-gnueabi-gcc: Command not found
. – AdamError: :/home/dico/gcc-4.7-arm-linux-gnueabi_4.7.2-1/usr/bin is not an ordinary file
. – Adam