GCC-3.4.0/PCH - some more problems (libstdc++.gch)
Rene Rebe
rene@rocklinux-consulting.de
Thu Apr 29 14:06:00 GMT 2004
Hi,
> And last but not least a problem arising with one file:
>
> ../include/ALSAConverter.hh:34:53: calling fdopen: Bad file descriptor
>
Very interesting is, that I get more of those when I try to use the
precompiled libstdc++:
$ make CXXFLAGS="-Winvalid-pch -O2 -pipe -mcpu=powerpc -mtune=750" Q=
DEP ArgumentList.d
g++ -Winvalid-pch -O2 -pipe -mcpu=powerpc -mtune=750 -MM -I. -I../include ArgumentList.cc | sed '/^#.*$/d' > ArgumentList.d
ArgumentList.cc:26:25: bits/stdc++.h: No such file or directory
sed -e 's/^[^:]*: *//' -e 's/ \\$//' \
-e 's/^ *//g' -e 's/ /\n/g' ArgumentList.d | \
sed -e 's/$/:/' >> ArgumentList.d
CXX ArgumentList.o
g++ -Winvalid-pch -O2 -pipe -mcpu=powerpc -mtune=750 -I. -I../include -c -o ArgumentList.o ArgumentList.cc
ArgumentList.cc:26:25: warning: /usr/lib/gcc/powerpc-unknown-linux-gnu/3.4.0/include/c++/powerpc-unknown-linux-gnu/bits/stdc++.h.gch/O0g: created using different flags
In file included from ArgumentList.cc:28:
../include/ArgumentList.hh:29:25: calling fdopen: Bad file descriptor
../include/ArgumentList.hh:31:25: calling fdopen: Bad file descriptor
../include/ArgumentList.hh:32:25: calling fdopen: Bad file descriptor
make: *** [ArgumentList.o] Error 1
Where ArgumentList.hh contains:
29: #include <bits/stdc++.h>
30:
31: #include <bits/stdc++.h>
32: #include <bits/stdc++.h>
I hope this helps someone willing to improve PCH ...
Sincerely yours,
René Rebe
- ROCK Linux stable release maintainer
--
René Rebe - Europe/Germany/Berlin
rene@rocklinux.org rene@rocklinux-consulting.de
http://www.rocklinux.org http://www.rocklinux-consulting.de
More information about the Gcc
mailing list