Bug 2805

Summary: ICE: Segmentation fault in frysk-imports/tests/frysk2137/Gcov.java:3
Product: frysk Reporter: Wu Zhou <woodzltc>
Component: generalAssignee: Andrew Cagney <cagney>
Status: RESOLVED FIXED    
Severity: critical    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: i386-redhat-linux Target: i386-redhat-linux
Build: i386-redhat-linux Last reconfirmed:
Project(s) to access: ssh public key:
Bug Depends on:    
Bug Blocks: 1839, 3375    

Description Wu Zhou 2006-06-19 18:38:02 UTC
I am trying to build with the latest frysk cvs tree on FC5. and got the
following error while running "make -j2":

if gcj --coverage -g -O -MT frysk2137/frysk2137_Gcov-Gcov.o -MD -MP -MF
"frysk2137/.deps/frysk2137_Gcov-Gcov.Tpo" -c -o frysk2137/frysk2137_Gcov-Gcov.o
`test -f 'frysk2137/Gcov.java' || echo
'../../../frysk/frysk-imports/tests/'`frysk2137/Gcov.java; \
then mv -f "frysk2137/.deps/frysk2137_Gcov-Gcov.Tpo"
"frysk2137/.deps/frysk2137_Gcov-Gcov.Po"; else rm -f
"frysk2137/.deps/frysk2137_Gcov-Gcov.Tpo"; exit 1; fi
../../../frysk/frysk-imports/tests/frysk2137/Gcov.java:3: internal compiler
error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.

If I manually build Gcov.java like above, it reports the same error.  If I
delete the "--coverage" option, it report no error:

[woodzltc@woodzltc tests]$ gcj --coverage -g -O -MT
frysk2137/frysk2137_Gcov-Gcov.o -MD -MP -MF
"frysk2137/.deps/frysk2137_Gcov-Gcov.Tpo" -c -o frysk2137/frysk2137_Gcov-Gcov.o
`test -f 'frysk2137/Gcov.java' || echo
'../../../frysk/frysk-imports/tests/'`frysk2137/Gcov.java
../../../frysk/frysk-imports/tests/frysk2137/Gcov.java:3: internal compiler
error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
[woodzltc@woodzltc tests]$ gcj  -g -O -MT frysk2137/frysk2137_Gcov-Gcov.o -MD
-MP -MF "frysk2137/.deps/frysk2137_Gcov-Gcov.Tpo" -c -o
frysk2137/frysk2137_Gcov-Gcov.o `test -f 'frysk2137/Gcov.java' || echo
'../../../frysk/frysk-imports/tests/'`frysk2137/Gcov.java
[woodzltc@woodzltc tests]$

Maybe I am not using the same gcj version as what you are using?

Any comments?
Comment 1 Mike Cvet 2006-06-19 18:56:55 UTC
There have been some similar problems with previous versions of GCJ and building
Frysk; currently we're running 4.1.1-1 and have avoided this problem...
Comment 2 Wu Zhou 2006-06-19 19:03:05 UTC
Would you please tell me where I can get the gcj-4.1.1-1 you are using?  Thanks
a lot!
Comment 3 Mike Cvet 2006-06-19 19:14:35 UTC
Well depends; if you're running fedora, a 'yum update' should do it; otherwise
you can grab the gcc RPM from
http://mirror.linux.duke.edu/pub/fedora/linux/core/updates/5/i386/gcc-4.1.1-1.fc5.i386.rpm

or the source from a GNU mirror such as ftp://mirrors.kernel.org/gnu/gcc
Comment 4 Mike Cvet 2006-06-21 20:19:55 UTC
Wu, did that fix your build problem?
Comment 5 Wu Zhou 2006-06-22 20:10:05 UTC
Yes. this can fix my build problem.  Close it.