Crossed native compiler

Kai Ruottu kai.ruottu@wippies.com
Wed Oct 1 16:33:00 GMT 2014


1.10.2014, 16:22, BERTRAND Joël kirjoitti:

> In config.log, I have :
>
> configure:3000:  /home/bertrand/cross/build/./prev-gcc/xgcc 
> -B/home/bertrand/cross/build/./prev-gcc/ 
> -B/home/bertrand/q7/arm-cortexa9_neon-linux-gnueabihf/bin/ 
> --sysroot=/home/bertrand/x-tools/arm-cortexa9_neon-linux-gnueabihf/arm-cortexa9_neon-linux-gnueabihf/sysroot 
>   -g -O2  -static-libstdc++ -static-libgcc  conftest.c  >&5
> /lib/ld-linux-armhf.so.3: No such file or directory

So what you have in the expected place :

/home/bertrand/x-tools/arm-cortexa9_neon-linux-gnueabihf/arm-cortexa9_neon-linux-gnueabihf/sysroot/lib

for the 'ld-linux-armhf.so.3' ?

> I have checked xgcc format and xgcc is built for arm, not for x86 :
>
> schroedinger:[~/cross/build/intl] > file 
> /home/bertrand/cross/build/./prev-gcc/xgcc
> /home/bertrand/cross/build/./prev-gcc/xgcc: ELF 32-bit LSB executable, 
> ARM, EABI5 version 1 (SYSV), dynamically linked (uses shared libs), 
> for GNU/Linux 2.6.16, not stripped

That you managed to run an ARM executable (xgcc) on a x86_64 system and 
it then giving a sane error
message, is really, really weird!  The '--enable-bootstrap' maybe could 
have caused this insanity being
done but then the error should have been related to not being capable to 
run ARM executables on a
x86_64 system...



More information about the Gcc-help mailing list