This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug pch/12707] New: Inclusion of PCH file produces "calling fdopen: Bad file descriptor" error
- From: "kgardas at objectsecurity dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Oct 2003 09:39:41 -0000
- Subject: [Bug pch/12707] New: Inclusion of PCH file produces "calling fdopen: Bad file descriptor" error
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12707
Summary: Inclusion of PCH file produces "calling fdopen: Bad file
descriptor" error
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: pch
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: kgardas at objectsecurity dot com
CC: gcc-bugs at gcc dot gnu dot org
Hi,
when I try to use PCH on MICO project, I've got following error when compiling
orb/ssliop.cc file:
c++ -I../include -DFAST_PCH -Wall -DPIC -fPIC -c ssliop.cc -o ssliop.pic.o
In file included from ../include/mico/ssliop.h:38,
from ssliop.cc:8:
../include/mico/current.h:8:19: calling fdopen: Bad file descriptor
In file included from ../include/mico/ssliop.h:39,
from ssliop.cc:8:
../include/mico/service_info.h:8:19: calling fdopen: Bad file descriptor
In file included from ../include/mico/ssliop.h:40,
from ssliop.cc:8:
../include/mico/ir_base.h:8:19: calling fdopen: Bad file descriptor
In file included from ../include/mico/ssliop.h:41,
from ssliop.cc:8:
../include/mico/ir.h:8:19: calling fdopen: Bad file descriptor
In file included from ../include/mico/ssliop.h:42,
from ssliop.cc:8:
../include/mico/policy.h:8:19: calling fdopen: Bad file descriptor
In file included from ../include/mico/ssliop.h:43,
from ssliop.cc:8:
../include/mico/timebase.h:8:19: calling fdopen: Bad file descriptor
In file included from ../include/mico/ssliop.h:44,
from ssliop.cc:8:
../include/mico/security/csi_base.h:8:19: calling fdopen: Bad file descriptor
In file included from ../include/mico/ssliop.h:45,
from ssliop.cc:8:
../include/mico/security/security.h:8:19: calling fdopen: Bad file descriptor
make: *** [ssliop.pic.o] Error 1
The problem is that the problematics include files tries to include CORBA.h
which is precompiled to the CORBA.h.gch. When I remove CORBA.h.gch, compilation
continues well.
Analysis: there are a lot of files which include CORBA.h in orb directory and
which doesn't fail with this error. The difference between these files and
ssliop.cc is that non-problematic files includes CORBA.h file directly from cc
file (as the first include), while ssliop.cc includes only ssliop.h file which
then includes CORBA.h file (as the first include).
Cheers,
Karel