problems with the recent snapshot (971207)
Paul Henning
phenning@cs.uiowa.edu
Mon Dec 8 15:55:00 GMT 1997
I'm refering to egcs-971207 on linux-2.1.71, glibc-2.0.5c with the
following config:
../egcs-971207/configure --host=i686-pc-linux-gnu --prefix=/usr/local/app/egcs --enable-shared --with-gnu-as --with-gnu-ld --norecursion
# using "../egcs-971207/config/mh-x86pic" and "../egcs-971207/config/mt-x86pic"
I have the same problem the Tudor is having, which appears to be
similar to the problem Jim Peterson was having
(e.g. http://www.cygnus.com/ml/egcs-bugs/1997-Dec/0106.html ).
Essentially, this program won't link:
===
#include <iostream.h>
#include <string>
int main(void) { string s = "Hello, world"; cout << s << endl; return 0; }
===
Just to be sure that I am not running into old C++ libraries, I moved
all the libstc++* and libg++* files (not egcs) to a junk directory and
re-ran ldconfig. Just to be really-really sure, I renamed
/usr/include/g++ as well.
When I do a "make bootstrap; make -k check", I run into tons of errors
during the g++ tests because ld.so can't find libstd++.so.2.8.0.
Annoying, but fixable. Re-running "make -k check", I run into the
following failures during libstdc++ check:
Executing on host: /home/phenning/EGCS/Build/build/gcc/xgcc -B/home/phenning/EGCS/Build/build/gcc/ ../../../../egcs-971207/libstdc++/testsuite/libstdc++.tests/../../tests/tstring.cc -I.. -I../../../../egcs-971207/libstdc++/testsuite/.. -I../../../../egcs-971207/libstdc++/testsuite/../stl -I. -I/home/phenning/EGCS/Build/egcs-971207/libio -I/home/phenning/EGCS/Build/build/libraries/libio -g -L/home/phenning/EGCS/Build/build/libraries//libstdc++ -lstdc++ -lm -o /home/phenning/EGCS/Build/build/libraries/libstdc++/testsuite/tstring
compiler exited with status 1
output is:
/tmp/cca294841.o:/home/phenning/EGCS/Build/build/libraries/libstdc++/testsuite/../../../../egcs-971207/libstdc++/testsuite/../std/bastring.h:148: undefined reference to `ostream & operator<<<char, string_char_traits<char>, __default_alloc_template<false, 0> >(ostream &, basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> > const &)'
[plus a lot of other similar errors]
so, tstring.cc compilation and tstring.cc -O compilation fail unexpectedly.
What else can I provide to help resolve this?
Cheers,
Paul Henning
More information about the Gcc
mailing list