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]

gcc/g++ snapshot bug


I'm not sure whether this is a problem with your (CodeSourcery's) build of 
gcc/g++ snapshot RPMs, or whether it's a general problem with the gcc/g++ 
installation, but when I installed:

	gcc-snapshot-20010130-1.i386.rpm
	gcc-snapshot-c++-20010130-1.i386.rpm

The compiler specific C++ header files (for instance: bits/c++config.h) don't 
end up in the compiler builtin include path:

	dwh>ls /usr/local/i386-pc-linux-gnu/include/g++-v3/bits/
	atomicity.h  c++io.h      c++threads.h  ctype_inline.h     os_defines.h
	c++config.h  c++locale.h  ctype_base.h  ctype_noninline.h  std_limits.h

Whereas the compiler specific C header files do:

	dwh>ls /usr/local/lib/gcc-lib/i386-pc-linux-gnu/2.97/include
	README   iso646.h  proto.h   stdbool.h  syslimits.h
	float.h  limits.h  stdarg.h  stddef.h   varargs.h

I ran the preprocessor with the verbose flag to see where it actually looked 
(you'll have to excuse the word-wrapping problems, but kmail refuses to turn 
it off):

dwh>/usr/local/bin/g++ -v -I/home/dwh/sqllib/include -D_REENTRANT -g -Wall -o 
Database.o -E Database.cpp >/dev/null
Reading specs from /usr/local/bin/../lib/gcc-lib/i386-pc-linux-gnu/2.97/specs
Configured with: ../configure --prefix=/tmp/gcc-20010130-root/usr/local 
--enable-shared --enable-threads --disable-checking i386-pc-linux-gnu
gcc version 2.97 20010129 (experimental)
 /usr/local/bin/../lib/gcc-lib/i386-pc-linux-gnu/2.97/cpp0 -lang-c++ 
-D_GNU_SOURCE -D__GNUG__=2 -D__GXX_ABI_VERSION=100 -v 
-I/home/dwh/sqllib/include -iprefix 
/usr/local/bin/../lib/gcc-lib/i386-pc-linux-gnu/2.97/ -D__GNUC__=2 
-D__GNUC_MINOR__=97 -D__GNUC_PATCHLEVEL__=0 -D__ELF__ -Dunix -Dlinux 
-D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem=posix 
-D__STDC_HOSTED__=1 -Wall -Acpu=i386 -Amachine=i386 -Di386 -D__i386 
-D__i386__ -D__tune_i386__ -D_REENTRANT Database.cpp -o Database.o
GNU CPP version 2.97 20010129 (experimental) (cpplib) (i386 Linux/ELF)
ignoring nonexistent directory 
"/tmp/gcc-20010130-root/usr/local/include/g++-v3"
ignoring nonexistent directory 
"/tmp/gcc-20010130-root/usr/local/i386-pc-linux-gnu/include/g++-v3"
ignoring nonexistent directory 
"/tmp/gcc-20010130-root/usr/local/lib/gcc-lib/i386-pc-linux-gnu/2.97/include"
ignoring nonexistent directory" 
/tmp/gcc-20010130-root/usr/local/i386-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /home/dwh/sqllib/include
 /usr/local/include/g++-v3
 /usr/local/lib/gcc-lib/i386-pc-linux-gnu/2.97/include
 /usr/local/i386-pc-linux-gnu/include
 /usr/local/include
 /usr/include
End of search list.
In file included from /usr/local/include/g++-v3/string:2,
                 from Database.h:10,
                 from Database.cpp:5:
/usr/local/include/g++-v3/bits/std_string.h:37:28: bits/c++config.h: No such 
file or directory
In file included from /usr/local/include/g++-v3/bits/stl_alloc.h:53,
                 from /usr/local/include/g++-v3/bits/stl_string_fwd.h:18,
                 from /usr/local/include/g++-v3/bits/std_string.h:38,
                 from /usr/local/include/g++-v3/string:2,
                 from Database.h:10,
                 from Database.cpp:5:
/usr/local/include/g++-v3/bits/std_cstdlib.h:39:28: bits/c++config.h: No such 
file or directory
....

Thanks for your help,
David

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