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
Created attachment 4190 [details] preprocessed file preprocessed file where error occured
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.
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.
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
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
*** Bug 15081 has been marked as a duplicate of this bug. ***