Please help me : libstdc++-v3 doesn't compile with GCC-2.95.2 on Sparc-Solaris 2.6

Pascale Breton pbreton@nuance.com
Thu Jan 11 10:41:00 GMT 2001


Hi,
 
I really need your 
help because I don't know what to do to make libstdc++-v3 with GCC-2.95.2 on 
Sparc-Solaris 2.6.
 
I tried everything 
that I read about the installation.
I also tried 
everything that I could think of.
 
Here are the steps 
that I tried :
 
Downloaded 
gcc-2.95.2.tar.gz.
Downloaded 
libstdc++-2.91.tar.gz.
 
Unpacked 
gcc.
Unpacked 
libstdc++-2.91
Renamed the folder 
libstdc++ and libio to "folder"-v2
Linked libstdc++ to 
libstdc++-2.91 directory
 
Created a 
../gcc-2.95.2-build directory.
Cd to 
../gcc/-2.95.2-build.
 
Typed 
../gcc-2.95.2/configure --prefix=/home/GNU/install --with-gnu-ld --with-gnu-as 
--with-gcc.
Then, "make 
bootstrap"
 
GCC builds correctly 
but libstdc++ build stops at the configuration :
ERROR : 
ltconfig : --build=sparc-solaris-2.6 : undefined option
 
I installed 
autoconf-2.13 and automake-1.4.
I also tried to 
change ltconfig and ltmain from the gcc-2.95.2 directory to the ones given with 
libtool-1.3.5
 
The only way I can 
go over this error is by editing the libstdc++/configure file and removing the 
"--build" and "--add_tag" options.
Then, I go a little 
further but not far because ltcf-cxx.sh is a script used within 
libstdc++/configure. This script doesn't not exist.
I had to change it 
to ltmain.sh
Only then, the 
configuration was succesful.
 
But then I get the 
build error:
"--tag" Unknown 
option.
 
Then, I edited the 
libsupc++/Makefile and the libstdc++/Makefile and I removed all the "--tag" 
instances.
 
Now I get a linking 
error :
ld: warning: 
option -o appears more than once, first setting taken ld: fatal: file 
libsupc++.so.0: cannot open file: No such file or directory ld: fatal: symbol 
`__cplus_type_matcher' is multiply defined:
 
Following is the 
command that is printout :
 

/bin/sh 
../libtool  --mode=link "/home/pbreton/GNU/gcc-2.95.2-build/gcc/xgcc 
-B/home/pbreton/GNU/gcc-2.95.2-build/gcc/ 
-B/home/pbreton/GNU/install/sparc-sun-solaris2.6/bin/"     
-Wl,-O1  -fno-implicit-templates      
-prefer-pic     -Wall -Wno-format -W -Wwrite-strings 
-Winline                   
-ffunction-sections -fdata-sections  -g    -o libsupc++.la 
-rpath /home/pbreton/GNU/install/lib  del_op.lo del_opnt.lo del_opv.lo 
del_opvnt.lo exception_support.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 rm -fr 
.libs/libsupc++.la .libs/libsupc++.* 
.libs/libsupc++.* /home/pbreton/GNU/gcc-2.95.2-build/gcc/xgcc 
-B/home/pbreton/GNU/gcc-2.95.2-build/gcc/ 
-B/home/pbreton/GNU/install/sparc-sun-solaris2.6/bin/ -shared  del_op.lo 
del_opnt.lo del_opv.lo del_opvnt.lo exception_support.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 -lc  -Wl,-soname -Wl,libsupc++.so.0 -o 
.libs/libsupc++.so.0.0.0
 
Now I am 
stuck!!!
 
Please help 
me,
Pascalea 
Breton

 
 



More information about the Libstdc++ mailing list