This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: problems with the recent snapshot (971207)
- To: phenning at cs dot uiowa dot edu (Paul Henning)
- Subject: Re: problems with the recent snapshot (971207)
- From: hjl at lucon dot org (H.J. Lu)
- Date: Mon, 8 Dec 1997 17:05:56 -0800 (PST)
- Cc: egcs at cygnus dot com, jason at cygnus dot com, law at cygnus dot com
>
>
> 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?
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.