Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 88412 - g++3 crashes compiling STAF
g++3 crashes compiling STAF
Product: Red Hat Enterprise Linux 2.1
Classification: Red Hat
Component: gcc3 (Show other bugs)
ia64 Linux
medium Severity high
: ---
: ---
Assigned To: Jakub Jelinek
Depends On:
  Show dependency treegraph
Reported: 2003-04-09 18:14 EDT by Eric Schwartz
Modified: 2007-11-30 17:06 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-10-03 16:01:07 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Eric Schwartz 2003-04-09 18:14:15 EDT
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 18:47:07 EDT
The tarball is available from
Comment 2 Richard Henderson 2004-10-03 16:01:07 EDT
Compilation succeeds with gcc-3.2.3-20.
Comment 3 Eric Schwartz 2005-01-19 21:29:02 EST
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.

Note You need to log in before you can comment on or make changes to this bug.