libtool upgrade broke libstdc++-v3 on Solaris

Zack Weinberg zackw@Stanford.EDU
Wed Mar 28 11:48:00 GMT 2001


On Tue, Mar 27, 2001 at 10:10:28PM -0300, Alexandre Oliva wrote:
> Zack,
> 
> In case you're wondering why I've Cc:ed you in the previous
> message...
> 
> I had intended to mention that this patch required the introduction of
> another `case` construct in CXX_FOR_TARGET.  You had reported problems
> with the similar construct in libstdcxx_flags, but I couldn't
> duplicate them, and I don't know whether you could repeat them later
> either.  Will you please let me know if this patch makes things even
> worse for you?  Thanks,

I'm afraid it does make things worse.  It now tries to link libstdc++
using g++... looking at the command lines below, that may not be the
real problem; the real problem may be that libtool feeds g++ -nostdlib
-lstdc++. 

/bin/sh ../libtool --tag disable-shared --tag CXX --mode=link
/home/zack/src/b/gcc_vanilla/gcc/g++
-B/home/zack/src/b/gcc_vanilla/gcc/ -nostdinc++
-L/home/zack/src/b/gcc_vanilla/i686-pc-linux-gnu/libstdc++-v3/src
-L/home/zack/src/b/gcc_vanilla/i686-pc-linux-gnu/libstdc++-v3/src/.libs
-B/work/inst/i686-pc-linux-gnu/bin/
-B/work/inst/i686-pc-linux-gnu/lib/ -isystem
/work/inst/i686-pc-linux-gnu/include -fno-implicit-templates
-prefer-pic -Wall -Wno-format -W -Wwrite-strings -Winline
-fdiagnostics-show-location=once -ffunction-sections -fdata-sections
-g -o libsupc++.la -rpath /work/inst/lib del_op.lo del_opnt.lo
del_opv.lo del_opvnt.lo eh_alloc.lo eh_aux_runtime.lo eh_catch.lo
eh_exception.lo eh_globals.lo eh_personality.lo eh_terminate.lo
eh_throw.lo new_handler.lo new_op.lo new_opnt.lo new_opv.lo
new_opvnt.lo pure.lo tinfo.lo tinfo2.lo vec.lo -lm

/home/zack/src/b/gcc_vanilla/gcc/g++
-B/home/zack/src/b/gcc_vanilla/gcc/ -nostdinc++
-L/home/zack/src/b/gcc_vanilla/i686-pc-linux-gnu/libstdc++-v3/src
-L/home/zack/src/b/gcc_vanilla/i686-pc-linux-gnu/libstdc++-v3/src/.libs
-B/work/inst/i686-pc-linux-gnu/bin/
-B/work/inst/i686-pc-linux-gnu/lib/ -isystem
/work/inst/i686-pc-linux-gnu/include -shared -nostdlib /usr/lib/crti.o
/home/zack/src/b/gcc_vanilla/gcc/crtbeginS.o
-L/home/zack/src/b/gcc_vanilla/i686-pc-linux-gnu/libstdc++-v3/src
-L/home/zack/src/b/gcc_vanilla/i686-pc-linux-gnu/libstdc++-v3/src/.libs
-L/home/zack/src/b/gcc_vanilla/gcc -lstdc++ -lm -lc -lgcc_s
/home/zack/src/b/gcc_vanilla/gcc/crtendS.o /usr/lib/crtn.o -Wl,-soname
-Wl,libsupc++.so.0 -o .libs/libsupc++.so.0.0.0

/usr/bin/ld: cannot find -lstdc++
collect2: ld returned 1 exit status
make[4]: *** [libsupc++.la] Error 1
make[4]: Leaving directory `i686-pc-linux-gnu/libstdc++-v3/libsupc++'

zw



More information about the Libstdc++ mailing list