Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 52708

Summary: Perl 5.8.4 segfaults on ppc
Product: Gentoo Linux Reporter: Pieter Van den Abeele (RETIRED) <pvdabeel>
Component: New packagesAssignee: Gentoo Perl team <perl>
Status: RESOLVED DUPLICATE    
Severity: normal CC: michael.kiermaier
Priority: High    
Version: 2004.1   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Pieter Van den Abeele (RETIRED) gentoo-dev 2004-06-01 11:38:05 UTC
Haven't had time to reproduce myself, but reported by two people. gcc-3.2.2 compiler.
Temp. masked -ppc
Comment 1 Michael Kiermaier 2004-06-01 14:14:29 UTC
These older bug reports are similar:
http://bugs.gentoo.org/show_bug.cgi?id=50783
http://bugs.gentoo.org/show_bug.cgi?id=50542

In that cases, the problem can be resolved by using -O1 instead of heavier optimizations in the CFLAGS.
Comment 2 Pieter Van den Abeele (RETIRED) gentoo-dev 2004-06-01 15:58:10 UTC
Catalyst uses the same CFLAGS for the entire GRP set, so unfortunately I can't tell it to use -O1 for perl, because everything else would be compiled with -O1 too. I can add a check that sets -OX to -O1 on ppc?
Comment 3 Michael Kiermaier 2004-06-01 16:15:17 UTC
Isn't it possible to override the CFLAGS for ppc in the perl ebuild (like the mplayer ebuild does)?

I guess that there is one single optimization-parameter within O2, but not within O1, that results in the segfault. The best solution would be, in my opinion, to track down this optimization, and to switch it off in the ebuild, in the case that it is executed on ppc architecture.
Comment 4 Joe Jezak (RETIRED) gentoo-dev 2004-06-04 23:17:52 UTC
Compiling perl with gcc-3.3.3_pre20040408-r1 fixes the problem on my machine.
Comment 5 SpanKY gentoo-dev 2004-06-07 05:46:31 UTC

*** This bug has been marked as a duplicate of 50542 ***