I have written simple Hello world program and compiled it with gcc-arm-linux-gnueabi
compiler. It compiles well but when i try to execute it on ARM machine it complains "no such file or directory".
I think gcc-arm-linux-gnueabi
is for embedded Linux only due to e(mbedded)abi
. Is it different from ARM Linux ABI?
Please help me to solve this problem
code is here
#include "stdio.h"
int main(void) {
printf("Hello world !\n");
return 0;
}
compiled as
> arm-linux-gnueabi-gcc -Wall -o crosscomp hello.c
When i execute this crosscomp on target ARM machine error is crosscomp no such file or dir
EDIT
When I was using arm-linux-gnueabi-gcc
the entry point was not matching with the target machine entry point (readelf -l crosscom) but when I compiled with aarch64-linux-gnu-gcc
entry point matched with target machine. But now error becomes permission denied on ./crosscomp. I tried with sudo which says crosscomp: no such command.
crosscomp
and you have checked that.
is on your PATH?