This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Can't get libstdc++ completely installed on Solaris


I am having a helluva time trying to get this installation go cooperate.

This is on a Solaris 2.6 box:
gcc v2.95.2 (and its stdlibc++)
gmake v3.77
bash v2.03.0(1)

I first tried building v2.90.6.1, but it failed during the build with this
error:

========================================================================
make  all-recursive
make[1]: Entering directory `/export1/libstdc++-2.90.6.1'
Making all in math
make[2]: Entering directory `/export1/libstdc++-2.90.6.1/math'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/export1/libstdc++-2.90.6.1/math'
Making all in string
make[2]: Entering directory `/export1/libstdc++-2.90.6.1/string'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/export1/libstdc++-2.90.6.1/string'
Making all in libio
make[2]: Entering directory `/export1/libstdc++-2.90.6.1/libio'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/export1/libstdc++-2.90.6.1/libio'
Making all in src
make[2]: Entering directory `/export1/libstdc++-2.90.6.1/src'
/bin/sh ../libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I..
-nostdinc++ -I.. -I../stl -I../libio     -g -O2 -D_GNU_SOURCE
-fno-implicit-templates -Wall -W -Wwrite-strings -Werror  -c
../src/limitsMEMBERS.cc
rm -f .libs/limitsMEMBERS.lo
c++ -DHAVE_CONFIG_H -I. -I. -I.. -nostdinc++ -I.. -I../stl -I../libio -g -O2
-D_GNU_SOURCE -fno-implicit-templates -Wall -W -Wwrite-strings -Werror -c
-fPIC -DPIC ../src/limitsMEMBERS.cc -o .libs/limitsMEMBERS.lo
In file included from ../src/limitsMEMBERS.cc:37:
../bits/std_limits.h: In function `static __wchar_t
numeric_limits<__wchar_t>::min()':
../bits/std_limits.h:306: `WCHAR_MIN' undeclared (first use this function)
../bits/std_limits.h:306: (Each undeclared identifier is reported only once
../bits/std_limits.h:306: for each function it appears in.)
cc1plus: warnings being treated as errors
../bits/std_limits.h:306: warning: control reaches end of non-void function
`numeric_limits<__wchar_t>::min()'
../bits/std_limits.h: In function `static __wchar_t
numeric_limits<__wchar_t>::max()':
../bits/std_limits.h:308: `WCHAR_MAX' undeclared (first use this function)
../bits/std_limits.h:308: warning: control reaches end of non-void function
`numeric_limits<__wchar_t>::max()'
make[2]: *** [../src/limitsMEMBERS.lo] Error 1
make[2]: Leaving directory `/export1/libstdc++-2.90.6.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/export1/libstdc++-2.90.6.1'
make: *** [all-recursive-am] Error 2
========================================================================

So I then fell back to version 2.90.6 and tried that.  It builds completely,
but failed to install.  When I finally discerned from the error message that
I needed bash, I built and installed that.  After doing so, this is where
I'm stuck:

========================================================================
Making install in math
make[1]: Entering directory `/export1/libstdc++-2.90.6/math'
make[2]: Entering directory `/export1/libstdc++-2.90.6/math'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/export1/libstdc++-2.90.6/math'
make[1]: Leaving directory `/export1/libstdc++-2.90.6/math'
Making install in string
make[1]: Entering directory `/export1/libstdc++-2.90.6/string'
make[2]: Entering directory `/export1/libstdc++-2.90.6/string'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/export1/libstdc++-2.90.6/string'
make[1]: Leaving directory `/export1/libstdc++-2.90.6/string'
Making install in libio
make[1]: Entering directory `/export1/libstdc++-2.90.6/libio'
make[2]: Entering directory `/export1/libstdc++-2.90.6/libio'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/export1/libstdc++-2.90.6/libio'
make[1]: Leaving directory `/export1/libstdc++-2.90.6/libio'
Making install in src
make[1]: Entering directory `/export1/libstdc++-2.90.6/src'
make[2]: Entering directory `/export1/libstdc++-2.90.6/src'
/bin/sh ../mkinstalldirs /usr/local/lib
/bin/sh ../libtool  --mode=install .././install-sh -c libstdc++.la
/usr/local/lib/libstdc++.la
.././install-sh -c .libs/libstdc++.so.3.0.0
/usr/local/lib/libstdc++.so.3.0.0
(cd /usr/local/lib && rm -f libstdc++.so.3 && ln -s libstdc++.so.3.0.0
libstdc++.so.3)
(cd /usr/local/lib && rm -f libstdc++.so && ln -s libstdc++.so.3.0.0
libstdc++.so)
chmod +x /usr/local/lib/libstdc++.so.3.0.0
.././install-sh -c .libs/libstdc++.lai /usr/local/lib/libstdc++.la
.././install-sh -c .libs/libstdc++.a /usr/local/lib/libstdc++.a
ranlib /usr/local/lib/libstdc++.a
chmod 644 /usr/local/lib/libstdc++.a
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - use the `-RLIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/export1/libstdc++-2.90.6/src'
make[1]: *** No rule to make target `bits/basic_ios.h', needed by
`/usr/local/include/g++-v3/bits/basic_ios.h'.  Stop.
make[1]: Leaving directory `/export1/libstdc++-2.90.6/src'
make: *** [install-recursive] Error 1
========================================================================

The end result is that the updated libraries get installed, but the headers
don't.  Please help this poor soul...

I need a working stringstream and a potentially working
basic_string<wchar_t>.  Thanks.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]