Bug 88412

Summary: g++3 crashes compiling STAF
Product: Red Hat Enterprise Linux 2.1 Reporter: Eric Schwartz <eric.schwartz>
Component: gcc3Assignee: Jakub Jelinek <jakub>
Severity: high Docs Contact:
Priority: medium    
Version: 2.1   
Target Milestone: ---   
Target Release: ---   
Hardware: ia64   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-10-03 20:01:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Eric Schwartz 2003-04-09 22:14:15 UTC
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_PTHREADS -DSTAF_NATIVE_COMPILER  -I/test/staf/src/staf/services/log
-I/test/staf/src/staf/services/log/unix -I/test/staf/src/staf/stafif/unix
-I/test/staf/src/staf/stafif /test/staf/src/staf/services/log/STAFLogService.cpp
/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):

How reproducible:

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.
Actual results:
g++3 crashes

Expected results:
g++3 doesn't crash

Additional info:
This program uses lots of pthreads, it seems.

Comment 1 Eric Schwartz 2003-04-09 22:47:07 UTC
The tarball is available from

Comment 2 Richard Henderson 2004-10-03 20:01:07 UTC
Compilation succeeds with gcc-3.2.3-20.

Comment 3 Eric Schwartz 2005-01-20 02:29:02 UTC
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.