public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Problem building mpc - a perquisite for gcc 4.5
@ 2010-02-17 12:59 Dr. David Kirkby
  2010-02-23 18:13 ` Ian Lance Taylor
  0 siblings, 1 reply; 2+ messages in thread
From: Dr. David Kirkby @ 2010-02-17 12:59 UTC (permalink / raw)
  To: gcc-help

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Problem building mpc - a perquisite for gcc 4.5
  2010-02-17 12:59 Problem building mpc - a perquisite for gcc 4.5 Dr. David Kirkby
@ 2010-02-23 18:13 ` Ian Lance Taylor
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 2010-02-23 18:13 UTC (permalink / raw)
  To: Dr. David Kirkby; +Cc: gcc-help

"Dr. David Kirkby" <david.kirkby@onetel.net> writes:

> 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.

> /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"

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


Please file a bug report about this.  This must be fixed one way or
another before 4.5 is released.  Thanks.

Ian

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-02-23 18:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-17 12:59 Problem building mpc - a perquisite for gcc 4.5 Dr. David Kirkby
2010-02-23 18:13 ` Ian Lance Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).