4.8 cross compiler help needed

Kai Ruottu kai.ruottu@wippies.com
Wed Apr 17 18:19:00 GMT 2013


17.4.2013 19:42, Kai Ruottu kirjoitti:

>> gcc-4.8.0 build stopped when compiling 'libatomic' :
>>
>> libtool: compile:  /home/src/gcc-4.8.0/build/./gcc/xgcc 
>> -B/home/src/gcc-4.8.0/build/./gcc/ 
>> -B/opt/cross/arm-angstrom-linux-gnueabi/bin/ 
>> -B/opt/cross/arm-angstrom-linux-gnueabi/lib/ -isystem 
>> /opt/cross/arm-angstrom-linux-gnueabi/include -isystem 
>> /opt/cross/arm-angstrom-linux-gnueabi/sys-include -DHAVE_CONFIG_H 
>> -I../../../libatomic/config/arm -I../../../libatomic/config/linux/arm 
>> -I../../../libatomic/config/posix -I../../../libatomic -I. -Wall 
>> -Werror -pthread -g -Os -MT load_1_.lo -MD -MP -MF 
>> .deps/load_1_.lo.Ppo -DN=1 -c 
>> ../../../libatomic/config/linux/arm/load_n.c  -fPIC -DPIC -o 
>> .libs/load_1_.o
>> ../../../libatomic/config/linux/arm/load_n.c:49:0: fatal error: 
>> opening dependency file .deps/load_1_.lo.Ppo: No such file or directory
>>  #include "../../../load_n.c"
>> So is there some problem with arm-linux-gnueabi and libatomic just 
>> now?  And what on earth is this libatomic, is it necessary at all or 
>> can one just use a '--disable-libatomic' into the GCC configure 
>> command and leave it away? (I will try again with it)
> I added the '--disable-libatomic' and started the build from scratch 
> again. When this library wasn't tried to produce, the build succeeded...

With 'arm-linux-gnueabihf' target (used in the "Raspian Linux" for 
RaspberryPi) also producing 'libatomic' worked :

[root@HP-Pavilion build]# arm-linux-gnueabihf-gcc-4.8 -v
Using built-in specs.
COLLECT_GCC=arm-linux-gnueabihf-gcc-4.8
COLLECT_LTO_WRAPPER=/media/2c439158-ef3e-4dcf-a63b-03191c302829/opt/cross/bin/../lib/gcc/arm-linux-gnueabihf/4.8.0/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../configure --build=i686-linux-gnu 
--host=i686-linux-gnu --target=arm-linux-gnueabihf --prefix=/opt/cross 
--with-sysroot=/opt/host-arm-raspian-linux-gnueabihf 
--libdir=/opt/cross/lib --libexecdir=/opt/cross/lib 
--enable-languages=c,c++ --enable-shared --enable-threads=posix 
--enable-linker-build-id --without-included-gettext 
--enable-version-specific-runtime-libs 
--with-gxx-include-dir=/opt/cross/include/c++/4.8.0 --enable-clocale=gnu 
--enable-gnu-unique-object --enable-checking=release --enable-plugin 
--enable-libstdcxx-debug --enable-libstdcxx-time=yes --disable-nls 
--disable-sjlj-exceptions --with-arch=armv6 --with-fpu=vfp 
--with-float=hard --program-prefix=arm-linux-gnueabihf- 
--program-suffix=-4.8
Thread model: posix
gcc version 4.8.0 (GCC)



More information about the Gcc-help mailing list