sstream header of gcc 3.1 on sun solaris
Niv Drory
drory@astro.as.utexas.edu
Fri Aug 9 11:31:00 GMT 2002
> Are you using GNU binutils (ie GNU ld)? If so, what versions?
>
> Your build seems suspect to me: code like this is required to link to
> pass the libstdc++ testsuite. If you see a bunch of FAIL's when you do
> 'make check-c++' then you know that there's something wrong with your
> build.
I tried building again, this time upgrading to gcc-3.1.1 using:
../gcc-3.1.1/configure --disable-nls --enable-languages=c,c++,f77 \
--with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld
which gives a working compiler and libstdc++. Must have been something
with my previous build. Thanks, Benjamin.
By the way, why does the bootstrap fail unless I'm
using the sun ld and as as I do above?
./xgcc -B./ -B/usr/local/sparc-sun-solaris2.8/bin/ -isystem
/usr/local/sparc-sun-solaris2.8/include -isystem
/usr/local/sparc-sun-solaris2.8/sys-include -O2 -DIN_GCC -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem
./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -shared -nodefaultlibs -Wl,-h,libgcc_s.so.1
-Wl,-z,text -Wl,-z,defs -Wl,-M,libgcc/./libgcc.map -o libgcc_s.so.1
libgcc/./_muldi3.o libgcc/./_negdi2.o libgcc/./_lshrdi3.o
libgcc/./_ashldi3.o libgcc/./_ashrdi3.o libgcc/./_ffsdi2.o libgc
[...]
4.o libgcc/./unwind-dw2.o libgcc/./unwind-dw2-fde.o
libgcc/./unwind-sjlj.o -lc && rm -f libgcc_s.so && ln -s libgcc_s.so.1
libgcc_s.so
/usr/local/sparc-sun-solaris2.8/bin/ld:libgcc/./libgcc.map: file format
not recognized; treating as linker script
/usr/local/sparc-sun-solaris2.8/bin/ld:libgcc/./libgcc.map:1: parse error
collect2: ld returned 1 exit status
-------------------------------------------------------------------
Niv Drory |
Department of Astronomy | phone: (512) 471 7426
The University of Texas at Austin | drory@astro.as.utexas.edu
-------------------------------------------------------------------
More information about the Gcc-help
mailing list