This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c++/4767: Build appears to have missing/misplaced include file



>Number:         4767
>Category:       c++
>Synopsis:       Build appears to have missing/misplaced include file
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 01 15:46:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     dao@lanl.gov
>Release:        gcc-3.0.2
>Organization:
>Environment:
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../configure --prefix=/usr/lanl --enable-threads=posix --enable-libgcj
>Description:
Recieved from a user:


/usr/lanl/include/bits/c++config.h is included in many include files
in /usr/lanl/include/bits:

carter@wilderness$ grep c++config.h *.h 
basic_file.h:#include <bits/c++config.h>
concept_check.h:#include <bits/c++config.h>
concept_check.h:// configure options or editing c++config.h.
localefwd.h:#include <bits/c++config.h>
pthread_allocimpl.h:#include <bits/c++config.h>
std_cmath.h:#include <bits/c++config.h>
std_complex.h:#include <bits/c++config.h>
std_cstdio.h:#include <bits/c++config.h>
std_cstdlib.h:#include <bits/c++config.h>
std_cwchar.h:#include <bits/c++config.h>
std_functional.h:#include <bits/c++config.h>
std_iomanip.h:#include <bits/c++config.h>
std_iosfwd.h:#include <bits/c++config.h>
std_iostream.h:#include <bits/c++config.h>
std_iterator.h:#include <bits/c++config.h>
std_limits.h:#include <bits/c++config.h>
std_numeric.h:#include <bits/c++config.h>
std_queue.h:#include <bits/c++config.h>
std_streambuf.h:#include <bits/c++config.h>
std_string.h:#include <bits/c++config.h>
std_utility.h:#include <bits/c++config.h>
std_valarray.h:#include <bits/c++config.h>
stl_algobase.h:#include <bits/c++config.h>
stringfwd.h:#include <bits/c++config.h>
type_traits.h:#include <bits/c++config.h>
valarray_array.h:#include <bits/c++config.h>


But /usr/lanl/include/bits/c++config.h doesn't exists:

carter@wilderness$ ls -l /usr/lanl/include/bits/c++config.h
ls: /usr/lanl/include/bits/c++config.h: No such file or directory

After hunting around, I did find it here:

carter@fuggles$ ls /usr/lanl/include/i686-pc-linux-gnu/bits/c++config.h 
/usr/lanl/include/i686-pc-linux-gnu/bits/c++config.h



Code example:

In file included from /usr/lanl/include/string:31,
                 from
/n/toaster/u/cjeffery/blitz-20001213/blitz/blitz.h:76,
                 from
/n/toaster/u/cjeffery/blitz-20001213/blitz/array.h:52,
                 from data_extract.cc:12:
/usr/lanl/include/bits/std_string.h:39: bits/c++config.h: No such file
or
directory
In file included from /usr/lanl/include/bits/std_string.h:40,
                 from /usr/lanl/include/string:31,
                 from
/n/toaster/u/cjeffery/blitz-20001213/blitz/blitz.h:76,
                 from
/n/toaster/u/cjeffery/blitz-20001213/blitz/array.h:52,
                 from data_extract.cc:12:
/usr/lanl/include/bits/stringfwd.h:39: bits/c++config.h: No such file or
directory
In file included from /usr/lanl/include/bits/char_traits.h:40,
                 from /usr/lanl/include/bits/std_string.h:41,
                 from /usr/lanl/include/string:31,
                 from
/n/toaster/u/cjeffery/blitz-20001213/blitz/blitz.h:76,
                 from
/n/toaster/u/cjeffery/blitz-20001213/blitz/array.h:52,
                 from data_extract.cc:12:
/usr/lanl/include/bits/fpos.h:39: bits/c++io.h: No such file or
directory
In file included from /usr/lanl/include/bits/fpos.h:40,
                 from /usr/lanl/include/bits/char_traits.h:40,
                 from /usr/lanl/include/bits/std_string.h:41,
                 from /usr/lanl/include/string:31,
                 from
/n/toaster/u/cjeffery/blitz-20001213/blitz/blitz.h:76,
                 from
/n/toaster/u/cjeffery/blitz-20001213/blitz/array.h:52,
                 from data_extract.cc:12:
/usr/lanl/include/bits/std_cwchar.h:37: bits/c++config.h: No such file
or
directory
In file included from /usr/lanl/include/bits/std_string.h:42,
                 from /usr/lanl/include/string:31,
                 from
/n/toaster/u/cjeffery/blitz-20001213/blitz/blitz.h:76,
                 from
/n/toaster/u/cjeffery/blitz-20001213/blitz/array.h:52,
                 from data_extract.cc:12:
/usr/lanl/include/bits/std_iterator.h:60: bits/c++config.h: No such file
or directory


The prefix is /usr/lanl but we do an install as

gmake install -e prefix=/usr/lanl/packages/3.0.2

then lndir packages/gcc-3.0.2

This happens on all the platforms I have compiled it
on.  What am I doing wrong?

Thanks for your help!


>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]