Re: Gcc3.2 build error on Solaris 10

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

 



"Dan Keating" <dan.keating@xxxxxxxxxxx> writes:

> I'm having problems building gcc3.2 on a solaris 10 system. Gcc2.95.3 builds
> fine, but 3.2 and 3.2.3 both fall down with the following error:
> 
> /temp/bsm/gcc-sun10/gcc/xgcc -B/temp/bsm/gcc-sun10/gcc/
> -B/lang/gcc/3.2/sparc-sun-solaris2.10/bin/
> -B/lang/gcc/3.2/sparc-sun-solaris2.10/lib/ -isystem
> /lang/gcc/3.2/sparc-sun-solaris2.10/include -DHAVE_CONFIG_H -I.
> -I../../../../gcc-3.2/libstdc++-v3/libmath -I.. -g -O2 -c
> ../../../../gcc-3.2/libstdc++-v3/libmath/signbit.c -o signbit.o
> In file included from ../../../../gcc-3.2/libstdc++-v3/libmath/signbit.c:32:
> ../../../../gcc-3.2/libstdc++-v3/libmath/mathconf.h:84: conflicting types
> for `nan'
> /usr/include/iso/math_c99.h:145: previous declaration of `nan'
> 
> Configure is being run with parameters "--enable-languages=c++
> --disable-shared".
> 
> Hopefully there's someone who can see a cause for this.

Look at the two files in question:

gcc-3.2/libstdc++-v3/libmath/mathconf.h, line 84
/usr/include/iso/math_c99.h, line 145

Most likely you will see conflicting types for nan.

Since gcc 3.2 is four years old and completely unsupported, your best
bet for fixing this would be to edit mathconf.h to match your system
header file.

Ian

[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