This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Circular dependency (?) on <new>
- To: libstdc++ at sourceware dot cygnus dot com
- Subject: Circular dependency (?) on <new>
- From: Branko Čibej <branko dot cibej at hermes dot si>
- Date: Mon, 22 May 2000 22:34:53 +0200
- Organization: HERMES SoftLab
Hi,
Another buglet on sparc-sun-solaris2.6, with the header changes in
latest CVS. I bootstrapped GCC+libstdc++-v3 with an earlier snapshot
(about a week old, I think), then installed it and tried to bootstrap
with itself:
In file included from ../../../../../gcc/libstdc++-v3/bits/std_ios.h:38,
from ../../../../../gcc/libstdc++-v3/bits/basic_file.h:38,
from c++io.cc:34:
../../../../../gcc/libstdc++-v3/bits/std_exception.h:34:25: exception: No such file or directory
In file included from ../../../../../gcc/libstdc++-v3/bits/stl_alloc.h:47,
from ../../../../../gcc/libstdc++-v3/bits/stl_string_fwd.h:19,
from ../../../../../gcc/libstdc++-v3/bits/std_ios.h:40,
from ../../../../../gcc/libstdc++-v3/bits/basic_file.h:38,
from c++io.cc:34:
../../../../../gcc/libstdc++-v3/bits/std_new.h:36:20: new: No such file or directory
This is possibly related to the problem I reported about the wrong
compiler being used to build the library, a similar thing happens
with a simple file containing only "#include <new>":
$ g++ -c new.cc
In file included from /home/brane/eval/gcc/inst/include/g++-v3/new:2,
from new.cc:1:
/home/brane/eval/gcc/inst/include/g++-v3/bits/std_new.h:36:20: new: No such file or directory
The problem seems to be that $prefix/include/g++-v3/new says
#ifndef _CPP_NEW
#include <bits/std_new.h>
#endif
and $prefix/include/g++-v3/bits/std_new.h says
...
#ifdef __GNUG__
# pragma system_header
# include_next <new>
#else
...
GCC 2.95.x installed <new> in $prefix/lib/gcc-lib/$platform/$version;
current CVS doesn't do that any more. The same goes for <exception>.
I don't know whether this is a GCC or a libstdc++ bug, though.
Brane
--
Branko Čibej <branko.cibej@hermes.si>
HERMES SoftLab, Litijska 51, 1000 Ljubljana, Slovenia
voice: (+386 1) 586 53 49 fax: (+386 1) 586 52 70