Cross compiling gcc 4.5 for hurd target fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I am trying to compile gcc 4.5 for hurd using a cross-compiler on my
32bit linux system.
The same setup with the same configure command worked for compiling 4.4.3.
I tried the build with and without patching in hurd softfp rules, no difference.

It seems like this also occurs on mingw
http://old.nabble.com/gcc-4.5-build-on-mingw-td26108568.html
I was not able to find any further references to this bug.

One thing that i tried was substituting __builtin_huge_valq in libgcc2.c with
__builtin_infq like it was in gcc 4.4 but this results in errors a bit
later in the build.


This is the error I get:

i686-pc-gnu-gcc   -g -march=i686 -O2 -pipe -mtune=generic -save-temps
-O2  -g -march=i686 -O2 -pipe -mtune=generic -save-temps -DIN_GCC   -W
-Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition  -isystem ./include  -fPIC
-g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED   -I. -I.
-I../.././gcc -I../../../gcc-4.5.0/libgcc
-I../../../gcc-4.5.0/libgcc/. -I../../../gcc-4.5.0/libgcc/../gcc
-I../../../gcc-4.5.0/libgcc/../include  -DHAVE_CC_TLS  -DUSE_TLS -o
_multc3.o -MT _multc3.o -MD -MP -MF _multc3.dep -DL_multc3 -c
../../../gcc-4.5.0/libgcc/../gcc/libgcc2.c \
	  -fvisibility=hidden -DHIDE_EXPORTS
i686-pc-gnu-gcc: warning: -pipe ignored because -save-temps specified
../../../gcc-4.5.0/libgcc/../gcc/libgcc2.c:1813: warning: implicit
declaration of function '__builtin_huge_valq'
../../../gcc-4.5.0/libgcc/../gcc/libgcc2.c:1813: error: size of array
'compile_type_assert' is negative
make[2]: *** [_multc3.o] Error 1
make[2]: Leaving directory `/home/lnz/abs-hurd/gcc/src/build/i686-pc-gnu/libgcc'
make[1]: *** [all-target-libgcc] Error 2
make[1]: Leaving directory `/home/lnz/abs-hurd/gcc/src/build'
make: *** [all] Error 2


gcc -v for the cross-compiler used:
$ i686-pc-gnu-gcc -v
Using built-in specs.
Target: i686-pc-gnu
Configured with: ../gcc-4.4.3/configure --target=i686-pc-gnu
--prefix=/home/lnz/abs-hurd/cross/cross
--with-sysroot=/home/lnz/abs-hurd/cross/hurd --disable-nls
--disable-shared --disable-threads --without-headers --with-newlib
--enable-languages=c : (reconfigured) ../gcc-4.4.3/configure
--target=i686-pc-gnu --prefix=/home/lnz/abs-hurd/cross/cross
--with-sysroot=/home/lnz/abs-hurd/cross/hurd --disable-nls
--enable-threads=posix --enable-languages=c,c++ : (reconfigured)
../gcc-4.4.3/configure --target=i686-pc-gnu
--prefix=/home/lnz/abs-hurd/cross/cross
--with-sysroot=/home/lnz/abs-hurd/cross/hurd --disable-nls
--enable-threads=posix --enable-languages=c,c++
Thread model: posix
gcc version 4.4.3 (GCC)


and my configure command:
configure --target=i686-pc-gnu --host=i686-pc-gnu --prefix= \
    --with-cloog --with-ppl --with-gmp \
    --enable-long-long --enable-c99 \
    --enable-shared --enable-threads=posix --enable-__cxa_atexit \
    --enable-languages=c,c++ --disable-libstdcxx-pch --enable-clocale=gnu \
    --disable-multilib --mandir=/share/man --infodir=/share/info \
    --libexecdir=/lib

Thanks
Matthias

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux