Description of problem:
Trying to compile STAF <URL:http://staf.sf.net/>; it seems to have a subtle
compiler bug in gcc-2.96, so I thought I'd compile with gcc3. When compiling
with gcc3, I got this message:
g++3 -c -o /test/staf/obj/linux/staf/retail/services/log/STAFLogService.o
-D_XOPEN_SOURCE -D_BSD_SOURCE -DSTAF_OS_NAME_LINUX -DSTAF_GETHOSTBYNAME_R_6PARM
-fPIC -O -DNDEBUG -DSTAF_SHARED_LIB_PREFIX=lib -DSTAF_SHARED_LIB_SUFFIX=.so
-D_PTHREADS -DSTAF_NATIVE_COMPILER -I/test/staf/src/staf/services/log
/test/staf/src/staf/services/log/STAFLogService.cpp: In function `void
writeUIntToFile(std::ostream&, unsigned int, unsigned int)':
/test/staf/src/staf/services/log/STAFLogService.cpp:2629: Internal compiler
error in elimination_effects, at reload1.c:2696
Please submit a full bug report,
with preprocessed source if appropriate.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Download the attached tarball; create 'staf' dir; uncompress into that dir
2. cd to src/staf
3. CC_NAME=gcc3 OS_NAME=linux BUILD_TYPE=retail PROJECTS=staf make
4. Should fail on STAFLogService.cpp
NOTE: I tried just creating a preprocessed cpp file, but I couldn't get that to
work, so sorry, but the tarball isn't very large.
g++3 doesn't crash
This program uses lots of pthreads, it seems.
The tarball is available from
Compilation succeeds with gcc-3.2.3-20.
Are there plans to ship 3.2.3 with 2.1? So far as I can tell, 3.0.4
is the only version I've found that it won't compile with.