[Bug pch/12707] Inclusion of PCH file produces "calling fdopen: Bad file descriptor" error
kgardas at objectsecurity dot com
gcc-bugzilla@gcc.gnu.org
Thu Apr 15 15:40:00 GMT 2004
------- Additional Comments From kgardas at objectsecurity dot com 2004-04-15 14:17 -------
I'm not sure about last analysis of Andrew Pinski, but I have tested todays
gcc3.4 and it stills shows this bug, so I have finally writtin small script
which is able to duplicate this bug. Mea culpa that I have not provided it more
early...
thinkpad:/tmp$ cat pchbug.sh
#!/bin/sh
set -x
wget http://mico.org/mico-2.3.11.tar.gz
rm -rf mico
tar -xzvf mico-2.3.11.tar.gz
cd mico
./configure --disable-static --disable-optimize
sed -e 's/-Wall/-Wall -DFAST_PCH/g' < MakeVars > MakeVars.new
cp MakeVars.new MakeVars
cd include
mkdir CORBA.h.gch
c++ -I../include -Wall -DFAST_PCH -DPIC -fPIC -c CORBA.h -o CORBA.h.gch/O0pic
c++ -I../include -Wall -DFAST_PCH -c CORBA.h -o CORBA.h.gch/O0
cd ..
cd admin
make
cd ../orb
make .depend
c++ -I../include -Wall -DFAST_PCH -DPIC -fPIC -c orb_pch.h
make
Please also note that while compiling orb_pch.h I also get these strange error
messages, but compilation continues well and produce precompiled header file:
+ c++ -I../include -Wall -DFAST_PCH -DPIC -fPIC -c orb_pch.h
In file included from ../include/mico/impl.h:37,
from orb_pch.h:38:
../include/mico/util.h:27:19: calling fdopen: Bad file descriptor
In file included from orb_pch.h:41:
../include/mico/os-math.h: In static member function `static MICO_Double
OSMath::infinity(MICO_Boolean)':
../include/mico/os-math.h:335: warning: division by zero in `-0x000000001 / 0.'
../include/mico/os-math.h: In static member function `static MICO_LongDouble
OSMath::infinityl(MICO_Boolean)':
../include/mico/os-math.h:394: warning: division by zero in `-1.0e+0l / 0.'
In file included from orb_pch.h:47:
../include/mico/poa_impl.h:27:19: calling fdopen: Bad file descriptor
../include/mico/code_set_registry.h: At global scope:
../include/mico/code_set_registry.h:5: warning: '_osf_cs_reg' defined but not used
thinkpad:/tmp/mico/orb$ ls -la orb_pch.h.gch
-rw-rw-r-- 1 karel karel 47519730 Apr 15 16:07 orb_pch.h.gch
thinkpad:/tmp/mico/orb$
Please let me know if I can help more with debuging this issue.
Thanks,
Karel
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|FIXED |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12707
More information about the Gcc-bugs
mailing list