Crossed native compiler
BERTRAND Joël
joel.bertrand@systella.fr
Thu Oct 2 09:31:00 GMT 2014
Kai Ruottu a écrit :
> 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...
>
Without bootstrap, gcc builds as expected but I'm unable to compile
gfortran, only C and C++. Thus, I have installed a first crossed native
compiler to build a full featured gcc.
Regards,
JKB
More information about the Gcc-help
mailing list