This is the mail archive of the gcc@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]
Other format: [Raw text]

GCC-3.4.0/PCH - some more problems (libstdc++.gch)


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


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