This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Crossed native compiler
- From: Kai Ruottu <kai dot ruottu at wippies dot com>
- To: BERTRAND JoÃl <joel dot bertrand at systella dot fr>, gcc-help at gcc dot gnu dot org
- Date: Wed, 01 Oct 2014 19:33:10 +0300
- Subject: Re: Crossed native compiler
- Authentication-results: sourceware.org; auth=none
- References: <542BFFF9 dot 7000400 at systella dot fr>
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...