Problem building mpc - a perquisite for gcc 4.5

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

 



I have a problem with complex numbers on Solaris, which I know has been solved in gcc 4.5, so I thought I'd install gcc 4.5, despite I know it is only an unstable snapshot.

A requirement for gcc 4.5 is the mpc library. mpc 0.8.1 builds ok with gcc 4.4.3 on Solaris 10 (SPARC), but when trying to build the test suite, so it fails to build (It is not a test failure, but a failure of the test suite to build).

Perhaps this is an mpc bug, not a gcc bug, but since gcc 4.5 is going to need mpc, it is pretty important this issue is resolved.


gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I../src -m32 -O2 -pedantic -Wa,-xarch=v8plus -mcpu=ultrasparc3 -MT tfr_div.o -MD -MP -MF .deps/tfr_div.Tpo -c -o tfr_div.o tfr_div.c
mv -f .deps/tfr_div.Tpo .deps/tfr_div.Po
/bin/bash ../libtool --tag=CC --mode=link gcc -std=gnu99 -m32 -O2 -pedantic -Wa,-xarch=v8plus -mcpu=ultrasparc3 -o tfr_div tfr_div.o libmpc-tests.la ../src/libmpc.la -lmpfr -lgmp libtool: link: gcc -std=gnu99 -m32 -O2 -pedantic -Wa,-xarch=v8plus -mcpu=ultrasparc3 -o .libs/tfr_div tfr_div.o ./.libs/libmpc-tests.a -L/usr/local/gcc-4.4.3/lib ../src/.libs/libmpc.so /usr/local/gcc-4.4.3/lib/libmpfr.so /usr/local/gcc-4.4.3/lib/libgmp.so -R/usr/local/lib -R/usr/local/gcc-4.4.3/lib gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I../src -m32 -O2 -pedantic -Wa,-xarch=v8plus -mcpu=ultrasparc3 -MT tfr_sub.o -MD -MP -MF .deps/tfr_sub.Tpo -c -o tfr_sub.o tfr_sub.c
mv -f .deps/tfr_sub.Tpo .deps/tfr_sub.Po
/bin/bash ../libtool --tag=CC --mode=link gcc -std=gnu99 -m32 -O2 -pedantic -Wa,-xarch=v8plus -mcpu=ultrasparc3 -o tfr_sub tfr_sub.o libmpc-tests.la ../src/libmpc.la -lmpfr -lgmp libtool: link: gcc -std=gnu99 -m32 -O2 -pedantic -Wa,-xarch=v8plus -mcpu=ultrasparc3 -o .libs/tfr_sub tfr_sub.o ./.libs/libmpc-tests.a -L/usr/local/gcc-4.4.3/lib ../src/.libs/libmpc.so /usr/local/gcc-4.4.3/lib/libmpfr.so /usr/local/gcc-4.4.3/lib/libgmp.so -R/usr/local/lib -R/usr/local/gcc-4.4.3/lib gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I../src -m32 -O2 -pedantic -Wa,-xarch=v8plus -mcpu=ultrasparc3 -MT timag.o -MD -MP -MF .deps/timag.Tpo -c -o timag.o timag.c
mv -f .deps/timag.Tpo .deps/timag.Po
/bin/bash ../libtool --tag=CC --mode=link gcc -std=gnu99 -m32 -O2 -pedantic -Wa,-xarch=v8plus -mcpu=ultrasparc3 -o timag timag.o libmpc-tests.la ../src/libmpc.la -lmpfr -lgmp libtool: link: gcc -std=gnu99 -m32 -O2 -pedantic -Wa,-xarch=v8plus -mcpu=ultrasparc3 -o .libs/timag timag.o ./.libs/libmpc-tests.a -L/usr/local/gcc-4.4.3/lib ../src/.libs/libmpc.so /usr/local/gcc-4.4.3/lib/libmpfr.so /usr/local/gcc-4.4.3/lib/libgmp.so -R/usr/local/lib -R/usr/local/gcc-4.4.3/lib gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I../src -m32 -O2 -pedantic -Wa,-xarch=v8plus -mcpu=ultrasparc3 -MT tio_str.o -MD -MP -MF .deps/tio_str.Tpo -c -o tio_str.o tio_str.c
In file included from /usr/include/stdio.h:22,
                 from tio_str.c:23:
/usr/local/gcc-4.4.3/lib/gcc/sparc-sun-solaris2.10/4.4.3/include-fixed/sys/feature_tests.h:341:2: error: #error "Compiler or options invalid for pre-UNIX 03 X/Open applications and pre-2001 POSIX applications"
make[2]: *** [tio_str.o] Error 1
make[2]: Leaving directory `/export/home/drkirkby/mpc-0.8.1/tests'
make[1]: *** [check-am] Error 2
make[1]: Leaving directory `/export/home/drkirkby/mpc-0.8.1/tests'
make: *** [check-recursive] Error 1


So it seems that's impossible to get a working version of mpc, which means gcc 4.5 can't be built.

Dave

[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