gcc-2.95.2 doesn't build libstdc++ :(
Ha-Nyung Chung
alita@kldp.org
Thu Aug 24 18:40:00 GMT 2000
On Thu, Aug 24, 2000 at 02:46:10PM +0100, David Korn wrote:
>
> >-----Original Message-----
> >From: Ha-Nyung Chung [ mailto:alita@kldp.org ]
> >Sent: 24 August 2000 14:44
> >To: gcc-help@gcc.gnu.org
> >Subject: gcc-2.95.2 doesn't build libstdc++ :(
> >
> >
> >
> > Hi.
> >
> > I'm building gcc-2.95.2 in Redhat-6.2
> >
> > I configured like follows in objdir...
> >
> > $(gcc_src_dir)/configure --enable-shared \
> > --enable-languages=c,c++ \
> > --enable-thread
> >
> > and "make bootstrap; make install"
> >
> > configuration and make process had no errors - I hope so.:(
> > Since there were too many outputs on my terminal while doing
> > "make bootstrap", I couldn't notice what is error messages if any.
>
> If you want to see the output and error messages from the build process,
> redirect them to a file, like this:
>
> make bootstap >&builderrs.txt; make install >&installerrs.txt
>
> > Anyway...but, there was NO libstdc++ libraries in /usr/local/lib
> > or elsewhere.
> >
> > What's my problem?
>
> The problem is that you said 'make bootstrap', which just builds the
> minimal compiler. Try doing 'make all' instead... :)
>
> > Ah! $(objdir)/i686-pc-linux-gnu/libstdc++ directory is empty.
> > Doesn't have anything. Is it correct? I don't guess so...
>
> Hopefully it will do after make all.....
>
> hth,
> DaveK
To my sigh... "make all" didn't bulid libstdc++ either.
I untared libstdc++-2.90.8.tgz under gcc-src directory and
As written in libstdc++-src/docs/install.html, I renamed
gcc-src/libstdc++ to gcc-src/libstdc++-v2, gcc-src/libio to
gcc-src/libio-v2 and libstdc++-2.90.8 to libstdc++
and did follows.
cd objdir
gcc-src/configure --host=i686-pc-linux-gnu \
--enable-shared \
--enable-languages=c,c++
it did well without any errors. :)
and...
make all 2> build_err.txt
contents of build_err.txt are...
/usr/src/gcc-2.95.2/gcc/toplev.c:1178: warning: initialization from incompatible pointer type
/usr/src/gcc-2.95.2/gcc/toplev.c:1178: warning: initialization from incompatible pointer type
/usr/src/gcc-2.95.2/gcc/toplev.c:1178: warning: initialization from incompatible pointer type
/usr/src/gcc-2.95.2/gcc/toplev.c:1178: warning: initialization from incompatible pointer type
/usr/src/gcc-2.95.2/gcc/toplev.c:1178: warning: initialization from incompatible pointer type
/usr/src/gcc-2.95.2/gcc/toplev.c:1178: warning: initialization from incompatible pointer type
/usr/src/gcc-2.95.2/gcc/toplev.c:1178: warning: initialization from incompatible pointer type
/usr/src/gcc-2.95.2/gcc/toplev.c:1178: warning: initialization from incompatible pointer type
/usr/src/gcc-2.95.2/gcc/toplev.c:1178: warning: initialization from incompatible pointer type
/usr/src/gcc-2.95.2/gcc/reload1.c: In function `maybe_fix_stack_asms':
/usr/src/gcc-2.95.2/gcc/reload1.c:1275: warning: passing arg 4 of `decode_asm_operands' from incompatible pointer type
make[1]: [libgcc.a] Error 1 (ignored)
cxxmain.c: In function `main':
cxxmain.c:4527: warning: assignment discards qualifiers from pointer target type
cxxmain.c:4530: warning: assignment discards qualifiers from pointer target type
In file included from /usr/src/gcc-2.95.2/libstdc++/src/gen-num-limits.cc:36:
/usr/src/objdir/i686-pc-linux-gnu/libstdc++/bits/c++config.h:579: unbalanced `#endif'
/usr/src/objdir/i686-pc-linux-gnu/libstdc++/bits/c++config.h:1158: unbalanced `#endif'
In file included from /usr/src/gcc-2.95.2/libstdc++/math/mathconf.h:31,
from /usr/src/gcc-2.95.2/libstdc++/math/signbit.c:32:
../bits/c++config.h:579: unbalanced `#endif'
../bits/c++config.h:1158: unbalanced `#endif'
make[3]: *** [signbit.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive-am] Error 2
make: *** [all-target-libstdc++] Error 2
Anybody can help me, plz?
What's the "[libgcc.a] Error 1" ??
When I build only gcc-2.95.2 - without libstdc++-2.90.8 -, I got the
same error which is the only error I got during "make all".
More information about the Gcc-help
mailing list