This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
Re: ltconfig: unrecognized option
> > you are probably using gcc-2.95.2 instead of CVS gcc, right?
>
> Yes.
>
> > ...that isn't working.
> >
> > can you try CVS gcc?
>
> The documentation http://gcc.gnu.org/libstdc++/install.html says
> ``gcc-2.95.2 works well.'' Was it obsolete?
>
> At any rate I'll get the CVS gcc. Thank you very much.
I downloaded CVS gcc and rebuilt everything. On my first attempt
`make bootstrap' failed:
/opt/local/src/gccobj/gcc/xgcc -B/opt/local/src/gccobj/gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -DHAVE_CONFIG_H -I. -I../../../../gcc/libstdc++-v3/libmath -I.. -I../../../../gcc/libstdc++-v3/include -I../include -g -O2 -c ../../../../gcc/libstdc++-v3/libmath/c_logl.c -fPIC -DPIC -o .libs/c_logl.o
/usr/include/bits/mathdef.h:27: redefinition of `float_t'
/usr/include/bits/mathdef.h:27: `float_t' previously declared here
/usr/include/bits/mathdef.h:29: redefinition of `double_t'
/usr/include/bits/mathdef.h:29: `double_t' previously declared here
make[4]: *** [c_logl.lo] Error 1
make[4]: Leaving directory `/opt/local/src/gccobj/i686-pc-linux-gnu/libstdc++-v3/libmath'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/opt/local/src/gccobj/i686-pc-linux-gnu/libstdc++-v3'
make[1]: *** [all-target-libstdc++-v3] Error 2
make[1]: Leaving directory `/opt/local/src/gccobj'
make: *** [bootstrap] Error 2
So I commented out lines 27-30 of /usr/include/bits/mathdef.h (Is this
the right way?), which seems to have worked.
Thanks again for your help.
--
Haruhiko Okumura <okumura@matsusaka-u.ac.jp>
Matsusaka University, 1846 Kubo-cho, Matsusaka, 515-8511 Japan
Phone: +81-598-29-1122 Fax: +81-598-29-1014
http://www.matsusaka-u.ac.jp/~okumura/