how to build for solaris 8?

Phil Edwards pedwards@jaj.com
Sat Apr 1 00:00:00 GMT 2000


> /export/home/bruno/bld-gcc/gcc/xgcc -B/export/home/bruno/bld-gcc/gcc/
> -B/usr/local/sparc-sun-solaris2.8/bin/ -DHAVE_CONFIG_H
> -I.  -I../../../../gcc-2.95.2/libstdc++/src -I.. -nostdinc++
> -I../../../../gcc-2.95.2/libstdc++ -I../../../../gcc-2.95.2/libstdc++/stl
> -I../libio -I../../../../gcc-2.95.2/libstdc++/libio
> -I../../../../gcc-2.95.2/libstdc++/config/cpu/sparc/sparc32
> -I../../../../gcc-2.95.2/libstdc++/config/solaris/solaris2.7
> -I/usr/local/include -D_GNU_SOURCE -fno-implicit-templates -Wall
> -Wno-format -W -Wwrite-strings -Winline -Werror -g -fhonor-std -g -O2
> -c  -fPIC -DPIC ../../../../gcc-2.95.2/libstdc++/src/stringMAIN.cc -o
> .libs/stringMAIN.lo
> cc1plus: warnings being treated as errors

That's the problem; it's warning about an inline statement that it can't
inline, and -Werror causes the warning to become an error.  Search for
the line

   WERROR = -Werror 

in either (srcdir)/src/Makefile.in before you configure, or
(builddir)/src/Makefile after you configure.  There should only be a
single occurance.  Change it to

   WERROR =

You'll still get the warning, but it won't be a fatal error.

Phil



More information about the Libstdc++ mailing list