fail at compiling libstdc++-2.91
Minko Markov
mmarkov@home.com
Mon Jan 22 23:32:00 GMT 2001
Hi,
I tried to compile libstdc++ here. My system is
Linux 2.2.18
glibc 2.2.1
gcc 2.95.2 (patched for glibc 2.2*)
libtool --version
ltmain.sh (GNU libtool) 1.3.5 (1.385.2.206 2000/05/27 11:12:27)
autoconf --version
Autoconf version 2.13
automake --version
automake (GNU automake) 1.4
m4 --version
GNU m4 1.4
I followed the instructions for configure and build of libstdc++-v3:
opened the gcc source, changed the names of the directories
libio and libstdc++ to libio-v2 and libstdc++-v2, opened
the libstdc++-2.91 source at the top level of the gcc source tree,
and made the softlink libstdc++ -> libstdc++-2.91
Then in a separate gcc_build directory I did
../gcc-2.95.2/configure --enable-haifa --enable-shared
--with-gnus-as --with-gnu-ld --enable-threads --with-cpu=k6
--enable-long-long --prefix=/usr/local ,
which configuration works when I build gcc without libstdc++-v3.
After the config, I ran "make bootstrap > MAKE.log 2>&1". When the
compile finished, I opened MAKE.log and saw an error: libstdc++ did
not compile. The error was (shown within the context)
............
make[2]: Leaving directory `/usr/local/src/gcc/gcc_build/i586-pc-linux-gnu/libiberty'
Configuring in i586-pc-linux-gnu/libstdc++
creating cache ./config.cache
checking host system type... i586-pc-linux-gnu
....etc....
checking for strip... strip
checking how to run the C++ preprocessor... /usr/local/src/gcc/gcc_build/gcc/xgcc \
-B/usr/local/src/gcc/gcc_build/gcc/ -B/usr/local/i586-pc-linux-gnu/bin/ -E
updating cache ./config.cache
ltconfig: unrecognized option `--build=i586-pc-linux-gnu'
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Try `ltconfig --help' for more information.
configure: error: libtool configure failed
Configuring in i586-pc-linux-gnu/libf2c
creating cache ./config.cache
....etc.....
I checked the ltconfig script. Indeed, it had no "--build" option,
but I have no clue why it got one during the compilation. I had
followed the building instructions quite literally. Then I did
some web search, and found out that someone else had hit a
similar problem, though not with gcc, and was advised simply to
modify ltconfig, adding a dummy " --build=*) echo ;;" option
line. Although it seems to be a brutal hack, I tried it. It did
not help, of course. This time the error was
ltconfig: unrecognized option `--add-tag=CXX'
Can anyone suggest what's wrong?
Thanks a lot in advance.
Minko Markov
Victoria, British Columbia, Canada
More information about the Libstdc++
mailing list