Unable to build libstdc++-v3
Ronald Fischer
ronald.fischer.gp@icn.siemens.de
Wed Aug 23 23:18:00 GMT 2000
Phil Edwards wrote:
> On Wed, Aug 23, 2000 at 01:00:40PM +0200, Ronald Fischer wrote:
> > I did a configure, a gmake bootstrap and a gmake install. Everything
> > worked without giving an error message. The last step installed the
> > binaries, but did not put the include files to the installation
> > directory and did not produce the lib.
>
> Well, building libstdc++-v[23] should happen during the 'make bootstrap'
> step, I believe.
It *should*, but it did not. That's why Benjamin suggested to me doing a
separate 'make all-target-libstdc++-v3'.
> Do you already have a working GCC installation?
Well, I started with having gcc 2.95.2 - the last "official" release,
from 1999, already installed. Then I downloaded egcs-20000807.tar and
egcs-g++-20000807.tar (BTW: Do I need both tar files?) and did a
configure, a bootstrap and an install. This resulted in several binaries
placed into my install directory (i.e. ./local):
local/bin:
c++* gcc* jv-scan*
c++filt* gccbug*
sparc-sun-solaris2.7-c++*
chill* gcj*
sparc-sun-solaris2.7-g++*
cpp* gcjh*
sparc-sun-solaris2.7-gcc*
g++* gcov*
g77* jcf-dump*
Also, local/info, local/man/man1 and share/locale/en_GB/LC_MESSAGES had
some files in it, but local/include was empty,
local/sparc-sun-solaris2.7/include contained only assert.h and only the
following libraries were built:
lib/gcc-lib/sparc-sun-solaris2.7/2.96/sparcv9/libg2c.a
lib/gcc-lib/sparc-sun-solaris2.7/2.96/sparcv9/libgcc.a
lib/gcc-lib/sparc-sun-solaris2.7/2.96/sparcv9/libchill.a
lib/gcc-lib/sparc-sun-solaris2.7/2.96/libgcc.a
lib/gcc-lib/sparc-sun-solaris2.7/2.96/libg2c.a
lib/gcc-lib/sparc-sun-solaris2.7/2.96/libchill.a
lib/gcc-lib/sparc-sun-solaris2.7/2.96/libobjc.a
lib/libiberty.a
lib/sparcv9/libiberty.a
> If so,
> 'bootstrap' doesn't necessarily gain you anything; you should just be able
> to use 'make all' to build the compiler and the selected libraries.
When I do a 'make all', I observe two things:
- The include directory is still empty
- I don't get the error messages which appear when I do a 'make
all-target-libstdc++-v3'
The last observation seems to indicate, that neither 'make all' nor
'make bootstrap' even *tries* to build the library.
> > grep: illegal option -- q
> > Usage: grep -hblcnsviw pattern file . . .
>
> Ah. Crumbs. The native Solaris grep doesn't take -q like POSIX says.
> This is what happens when the native /usr/bin binaries are in the PATH
> before the POSIX /usr/xpg4/bin binaries. I'll try to adjust for that.
>
I put /usr/xpg4/bin in front of my path and again do a 'make
all-target-libstdc++-v3'. Now the make runs considerably longer, does a
*lot* of "checking for ... declaration" stuff, most checks being
answered by "no". Then it starts to compile the libstdc++-v3 files. In
the end, I get the following error messages:
========
In file included from
/pro/prornc/gcc000807/egcs-20000807/libstdc++-v3/libio/iolibio.h:1,
from
/pro/prornc/gcc000807/egcs-20000807/libstdc++-v3/libio/libioP.h:36,
from
/pro/prornc/gcc000807/egcs-20000807/libstdc++-v3/libio/filedoalloc.c:48:
/pro/prornc/gcc000807/egcs-20000807/libstdc++-v3/libio/libio.h:60:25:
sys/cdefs.h: No such file or directory
gmake[3]: *** [filedoalloc.lo] Error 1
gmake[3]: Leaving directory
`/pro/prornc/gcc000807/objdir/sparc-sun-solaris2.7/libstdc++-v3/libio'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory
`/pro/prornc/gcc000807/objdir/sparc-sun-solaris2.7/libstdc++-v3'
gmake[1]: *** [all-recursive-am] Error 2
gmake[1]: Leaving directory
`/pro/prornc/gcc000807/objdir/sparc-sun-solaris2.7/libstdc++-v3'
gmake: *** [all-target-libstdc++-v3] Error 2
=======
At least, we are a small step further ;-)
--
Ronald Otto Valentin Fischer <rovf@earthling.net>
[currently at: Siemens ICM CA MR EM6, phone: +89-722-23368]
http://profiles.yahoo.com/ronny_fischer/
http://fusshuhn.ourfamily.com/cppincomp.html
More information about the Libstdc++
mailing list