Hide Forgot
Description of problem: After updating to the latest gcc 4.1.2 our *debug* build started failing: g++ -O0 -g3 -D_DEBUG -D STRIDEDB_STATIC -D GCC_IS_GENERATED_CODE_TARGET=1 -D SUN_IS_GENERATED_CODE_TARGET=0 -D MSVC_IS_GENERATED_CODE_TARGET=0 -D MICROSOFT_DIALECT_IS_GENERATED_CODE_TARGET=0 -I./ -I./include -I./Source/DT -I../ILReader -I../EDGFront -I../inc -I../Common/include -I../SDK/Runtime -I"/mnt/build_tools/OpenSource/boost/1.45.0" -I"/mnt/build_tools/OpenSource/apache/xerces-c/3.1.1/src" -I"/mnt/build_tools/OpenSource/log4cplus/1.0.4/include" -Wall -c -fmessage-length=0 -fPIC -oDebug/CdtCompilationUnit.o Source/DT/CdtCompilationUnit.cpp /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/iomanip: In function ‘std::_Setw std::setw(int)’: /usr/lib/gcc/i386-redhat-linux/4.1.2/../../../../include/c++/4.1.2/iomanip:247: internal compiler error: Segmentation fault Version-Release number of selected component (if applicable): gcc version 4.1.2 20080704 (Red Hat 4.1.2-51) Linux 2.6.18-274.7.1.el5.centos.plusPAE i686 i686 i386 GNU/Linux How reproducible: Will try to preprocess and provide the output. Additional info: The problem happens consistantly in the *debug* build (as mentioned above). We haven't had any issue with the *release* so far. FYI, here is the release command line: g++ -O3 -DNDEBUG -D STRIDEDB_STATIC -D GCC_IS_GENERATED_CODE_TARGET=1 -D SUN_IS_GENERATED_CODE_TARGET=0 -D MSVC_IS_GENERATED_CODE_TARGET=0 -D MICROSOFT_DIALECT_IS_GENERATED_CODE_TARGET=0 -I./ -I./include -I./Source/DT -I../ILReader -I../EDGFront -I../inc -I../Common/include -I../SDK/Runtime -I"/mnt/build_tools/OpenSource/boost/1.45.0" -I"/mnt/build_tools/OpenSource/apache/xerces-c/3.1.1/src" -I"/mnt/build_tools/OpenSource/log4cplus/1.0.4/include" -Wall -c -fmessage-length=0 -fPIC -oRelease/CdtCompilationUnit.o Source/DT/CdtCompilationUnit.cpp Also, I don't know if this has anything to do with the problem, but we use a precompiled header, compiled as: g++ -O0 -g3 -D_DEBUG -D STRIDEDB_STATIC -D GCC_IS_GENERATED_CODE_TARGET=1 -D SUN_IS_GENERATED_CODE_TARGET=0 -D MSVC_IS_GENERATED_CODE_TARGET=0 -D MICROSOFT_DIALECT_IS_GENERATED_CODE_TARGET=0 -I./ -I./include -I./Source/DT -I../ILReader -I../EDGFront -I../inc -I../Common/include -I../SDK/Runtime -I"/mnt/build_tools/OpenSource/boost/1.45.0" -I"/mnt/build_tools/OpenSource/apache/xerces-c/3.1.1/src" -I"/mnt/build_tools/OpenSource/log4cplus/1.0.4/include" -Wall -c -fmessage-length=0 -fPIC -ostdafx.h.gch stdafx.h
You haven't provided anything to reproduce it, but most likely this is already fixed dup of #735304, just retry with gcc-4.1.2-52.el5 or in the mean time disable PCH.
Yes, the problem appears to be related to PCH. I'm not able to reproduce without that. I'm sorry it took me that long to respond.
Assuming this is fixed in gc-4.1.2-52.el5 then, please reopen if not.