Bug 11133 - Inernal compiler error when compiling xerxes 2.3.0
Summary: Inernal compiler error when compiling xerxes 2.3.0
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 3.2.1
: P2 normal
Target Milestone: 3.0.x
Assignee: Not yet assigned to anyone
URL:
Keywords:
: 15081 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-06-09 13:40 UTC by a.w
Modified: 2005-07-23 22:49 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
preprocessed file (52.93 KB, application/gzip)
2003-06-09 13:43 UTC, a.w
Details

Note You need to log in before you can comment on or make changes to this bug.
Description a.w 2003-06-09 13:40:38 UTC
Hello,

here is the data:


> g++ -save-temps -fPIC -DLINUX -D_REENTRANT -c
-I/home/qwer/Qwer/build/dbxml-1.0.14/lib/xerces-c-src_2_3_0/include -g
-DPROJ_XMLPARSER  -DPROJ_XMLUTIL  -DPROJ_PARSERS  -DPROJ_SAX4C  -DPROJ_SAX2 
-DPROJ_DOM  -DPROJ_VALIDATORS -DXML_USE_NATIVE_TRANSCODER
-DXML_USE_INMEM_MESSAGELOADER -DAPP_NO_THREADS -DXML_USE_NO_THREADS
-DXML_USE_NETACCESSOR_SOCKET     -o
/home/qwer/Qwer/build/dbxml-1.0.14/lib/xerces-c-src_2_3_0/obj/LINUX/DOMDocumentImpl.o
DOMDocumentImpl.cpp
/home/qwer/Qwer/build/dbxml-1.0.14/lib/xerces-c-src_2_3_0/include/xercesc/dom/impl/DOMDeepNodeListPool.c:
In method
`xercesc_2_3::DOMDeepNodeListPool<xercesc_2_3::DOMDeepNodeListImpl>::DOMDeepNodeListPool(long
unsigned int, bool, long unsigned int = 128)':
DOMDocumentImpl.cpp:900:   instantiated from here
/home/qwer/Qwer/build/dbxml-1.0.14/lib/xerces-c-src_2_3_0/include/xercesc/dom/impl/DOMDeepNodeListPool.c:104:
Internal compiler error.
/home/qwer/Qwer/build/dbxml-1.0.14/lib/xerces-c-src_2_3_0/include/xercesc/dom/impl/DOMDeepNodeListPool.c:104:
Please submit a full bug report.
/home/qwer/Qwer/build/dbxml-1.0.14/lib/xerces-c-src_2_3_0/include/xercesc/dom/impl/DOMDeepNodeListPool.c:104:
Internal compiler error:
/home/qwer/Qwer/build/dbxml-1.0.14/lib/xerces-c-src_2_3_0/include/xercesc/dom/impl/DOMDeepNodeListPool.c:104:
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.


> gcc -v
Reading specs from /usr/lib/gcc-lib/i386-linux/3.2.1/specs
Configured with: /mnt/data/gcc-3.1/gcc-3.2-3.2.1ds2/src/configure -v
--enable-languages=c,c++,java,f77,proto,objc,ada --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--with-gxx-include-dir=/usr/include/c++/3.2 --enable-shared --with-system-zlib
--enable-nls --without-included-gettext --enable-java-gc=boehm --enable-objc-gc
i386-linux
Thread model: posix
gcc version 3.2.1 20020924 (Debian prerelease)

> uname -a
Linux jango 2.4.20-xfs #1 SMP Die Dez 10 20:07:25 CET 2002 i686 Intel(R)
Pentium(R) 4 CPU 1.70GHz GenuineIntel GNU/Linux
Comment 1 a.w 2003-06-09 13:43:01 UTC
Created attachment 4190 [details]
preprocessed file

preprocessed file where error occured
Comment 2 Wolfgang Bangerth 2003-06-09 14:42:10 UTC
For whatever reason, I can't reproduce this. I always get

g/x> /home/bangerth/bin/gcc-3.2/bin/c++ -c DOMDocumentImpl.ii -fPIC -g
In file included from DOMDocumentImpl.cpp:61:
DOMCasts.hpp: In function `xercesc_2_3::DOMNode* xercesc_2_3::castToNode(const
   xercesc_2_3::DOMParentNode*)':
DOMCasts.hpp:148: warning: invalid offsetof from non-POD type `class
   xercesc_2_3::DOMElementImpl'; use pointer to member instead
DOMCasts.hpp: In function `xercesc_2_3::DOMNode* xercesc_2_3::castToNode(const
   xercesc_2_3::DOMNodeImpl*)':
DOMCasts.hpp:154: warning: invalid offsetof from non-POD type `class
   xercesc_2_3::DOMElementImpl'; use pointer to member instead
DOMCasts.hpp: In function `xercesc_2_3::DOMNodeImpl*
   xercesc_2_3::castToNodeImpl(const xercesc_2_3::DOMParentNode*)':
DOMCasts.hpp:162: warning: invalid offsetof from non-POD type `class
   xercesc_2_3::DOMElementImpl'; use pointer to member instead
DOMCasts.hpp:163: warning: invalid offsetof from non-POD type `class
   xercesc_2_3::DOMElementImpl'; use pointer to member instead

with both 3.2 and 3.2.3. Same with 3.3. Maybe someone else can reproduce
this. Does the bug also trigger when you run the compiler on the preprocessed
source with you?

W.
Comment 3 Andrew Pinski 2003-06-09 15:07:00 UTC
I reproduce it with gcc 2.95.3, looks like your g++ compiler is 2.95.x while gcc is 3.2.2:

tin:~/src/gnu/gcctest>~/ia32_linux_gcc2_95//bin/g++ pr11133.ii -fPIC -c 
/home/qwer/Qwer/build/dbxml-1.0.14/lib/xerces-c-src_2_3_0/include/xercesc/dom/impl/
DOMDeepNodeListPool.c: In method `xercesc_2_3::DOMDeepNodeListPool<
xercesc_2_3::DOMDeepNodeListImpl>::DOMDeepNodeListPool(long unsigned int, 
bool, long unsigned int = 128)':
DOMDocumentImpl.cpp:900:   instantiated from here
/home/qwer/Qwer/build/dbxml-1.0.14/lib/xerces-c-src_2_3_0/include/xercesc/dom/impl/
DOMDeepNodeListPool.c:104: Internal compiler error.
/home/qwer/Qwer/build/dbxml-1.0.14/lib/xerces-c-src_2_3_0/include/xercesc/dom/impl/
DOMDeepNodeListPool.c:104: Please submit a full bug report.
/home/qwer/Qwer/build/dbxml-1.0.14/lib/xerces-c-src_2_3_0/include/xercesc/dom/impl/
DOMDeepNodeListPool.c:104: See <URL:http://www.gnu.org/software/gcc/bugs.html> 
for instructions.

This is fixed for at least 3.0.4 because that does not ICE, 3.2.3, 3.2.2, 3.3.1 (20030526) 
and the mainline (20030609) does not ICE either.

Updating g++ will fix this.
Comment 4 a.w 2003-06-09 15:18:27 UTC
Subject: Re:  Inernal compiler error when compiling xerxes 2.3.0

Hello,


> I reproduce it with gcc 2.95.3, looks like your g++ compiler is
2.95.x while gcc is 3.2.2


It seems that you are right: my g++ compiler is 2.95.4. 
I am just compiling g++ in order to test with a new version. Thanks
for your help.



Regards,

Arno Wilhelm
Comment 5 a.w 2003-06-09 15:42:55 UTC
Subject: Re:  Inernal compiler error when compiling xerxes 2.3.0

Hello,

>For whatever reason, I can't reproduce this. I always >get
>with both 3.2 and 3.2.3. Same with 3.3. Maybe someone >else can
reproduce
>this. Does the bug also trigger when you run the >compiler on the
preprocessed
>source with you?


I have found out that *only* my gcc is version 3.2.1 but the g++ on
my machine is version 2.95.4. There was someone on this list who was
able to reproduce the bug with 2.95.3. So I guess the bug must have
been fixed in the newer versions of g++. I am just compiling g++
version 3.3 in order to find that out.

Cheers,

Arno Wilhelm
Comment 6 Andrew Pinski 2004-04-22 22:05:16 UTC
*** Bug 15081 has been marked as a duplicate of this bug. ***