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