From mboxrd@z Thu Jan 1 00:00:00 1970 From: hjl@lucon.org (H.J. Lu) To: phenning@cs.uiowa.edu (Paul Henning) Cc: egcs@cygnus.com, jason@cygnus.com, law@cygnus.com Subject: Re: problems with the recent snapshot (971207) Date: Mon, 08 Dec 1997 17:07:00 -0000 Message-id: References: <199712082343.RAA29705@server.cs.uiowa.edu> X-SW-Source: 1997-12/msg00504.html > > > 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 > #include > 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<<, __default_alloc_template >(ostream &, basic_string, __default_alloc_template > 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? Same here on i586-linux-gnu. But it was ok on i586-linux-glibc1. Since egcs 971207 miscompiles things on x86, it is not that strange. H.J.