Bug 24271 - ServicesC.h:45: internal compiler error: Segmentation fault
Summary: ServicesC.h:45: internal compiler error: Segmentation fault
Status: RESOLVED DUPLICATE of bug 24202
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 4.0.2
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2005-10-08 05:57 UTC by Lothar Werzinger
Modified: 2005-10-08 13:37 UTC (History)
3 users (show)

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


Attachments
preprocessed file (77.09 KB, text/plain)
2005-10-08 05:59 UTC, Lothar Werzinger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lothar Werzinger 2005-10-08 05:57:17 UTC
/opt2/linux/ix86/x86_64-pc-linux-gnu/bin/g++ -v
Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-4.0.2/configure --program-suffix=-4.0.2 --enable-__cxa_atexit --enable-languages=c,c++ --prefix=/opt2/linux/ix86 --target=x86_64-pc-linux-gnu --host=i686-pc-linux-gnu --with-sysroot=/opt2/linux/ix86/SuSE-10.0 --enable-version-specific-runtime-libs --enable-clocale=gnu
Thread model: posix
gcc version 4.0.2

If I compile TAO 1.4.7 I get an ICE in ServicesC.h

/opt2/linux/ix86/x86_64-pc-linux-gnu/bin/g++ -fvisibility=hidden -fvisibility-inlines-hidden -save-temps -W -Wall -Wpointer-arith -m64 -I/opt2/linux/x86_64/include -O3 -g -pipe  -m64 -I/opt2/linux/x86_64/include   -D_REENTRANT -DACE_HAS_AIO_CALLS -D_GNU_SOURCE -DACE_USE_RCSID=0   -I/opt2/linux/x86_64/ACE/1.4.7/ACE_wrappers -I/opt2/linux/x86_64/ACE/1.4.7/ACE_wrappers/TAO -I/usr/kerberos/include -DACE_HAS_EXCEPTIONS -D__ACE_INLINE__    -I../.. -I/opt2/linux/x86_64/ACE/1.4.7/ACE_wrappers/TAO -DTAO_BUILD_DLL  -c -fPIC -o .shobj/ServicesC.o ServicesC.cpp
g++: warning: -pipe ignored because -save-temps specified
In file included from <built-in>:0:
<built-in>:0: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Comment 1 Lothar Werzinger 2005-10-08 05:59:07 UTC
Created attachment 9931 [details]
preprocessed file
Comment 2 Richard Biener 2005-10-08 10:30:49 UTC
I cannot reproduce this with a x86_64 host compiler on the 4.0 branch or mainline.
Can you re-check with a compiler compiled from the head of the 4.0 branch to see
if this is a genuine cross-compiler problem?  Also a gdb backtrace from cc1plus
would be helpful (you can figure out the cc1plus command-line by providing the
-v command-line argument to g++). 

Thanks,
Richard.
Comment 3 Andrew Pinski 2005-10-08 13:37:48 UTC
This is a dup of bug 24202.  The preprocessor is crashing so having the preprocessed source is really useless.

*** This bug has been marked as a duplicate of 24202 ***