17.4.2013 18:52, Kai Ruottu kirjoitti:
16.4.2013 22:28, Kai Ruottu kirjoitti:
16.4.2013 15:13, Sebastian Huber wrote:
> On Mon, Apr 15, 2013 at 4:05 PM, NeonJohn <jgd@xxxxxxxxxxxxx> wrote:
>
>> I have successfully compiled 4.8 for my native system, Ubuntu Linux.
>> Now I'm trying to build a cross compiler to generate ARM code for the
>> Beagle Bone. Having a few problems.
I tried this target with Linux binutils-2.23.51 and with GCC sources
4.6.4, 4.7.3 and 4.8.0.
The first two succeeded nicely but 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"
^
compilation terminated.
make[4]: *** [load_1_.lo] Virhe 1
make[4]: Poistutaan hakemistosta
"/media/2c439158-ef3e-4dcf-a63b-03191c302829/home/src/gcc-4.8.0/build/arm-angstrom-linux-gnueabi/libatomic"
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...
So the final configure options can be seen in the following GCC output :
[root@HP-Pavilion build]# arm-angstrom-linux-gnueabi-gcc-4.8 -v
Using built-in specs.
COLLECT_GCC=arm-angstrom-linux-gnueabi-gcc-4.8
COLLECT_LTO_WRAPPER=/media/2c439158-ef3e-4dcf-a63b-03191c302829/opt/cross/bin/../lib/gcc/arm-angstrom-linux-gnueabi/4.8.0/lto-wrapper
Target: arm-angstrom-linux-gnueabi
Configured with: ../configure --build=i686-linux-gnu
--host=i686-linux-gnu --target=arm-angstrom-linux-gnueabi
--prefix=/opt/cross --with-sysroot=/opt/host-arm-angstrom-linux-gnueabi
--libdir=/opt/cross/lib --libexecdir=/opt/cross/lib
--enable-languages=c,c++ --enable-c99 --enable-long-long
--enable-symvers=gnu --enable-libstdcxx-pch --enable-__cxa_atexit
--enable-shared --enable-threads=posix --enable-target-optspace
--enable-lto --enable-libssp --enable-cheaders=c_global
--enable-version-specific-runtime-libs --with-linker-hash-style=gnu
--with-ppl=no --with-cloog=no
--with-gxx-include-dir=/opt/cross/include/c++/4.8.0
--disable-silent-rules --disable-dependency-tracking --disable-nls
--disable-libatomic --disable-libgomp --disable-libmudflap
--disable-multilib --program-prefix=arm-angstrom-linux-gnueabi-
--program-suffix=-4.8
Thread model: posix
gcc version 4.8.0 (GCC)