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

Bug 5039

Summary: procmail-3.22-r2 hangs at "Benchmarking your system's strstr() implementation" w/ gcc3.1
Product: Gentoo Linux Reporter: Grant Goodyear (RETIRED) <g2boojum>
Component: Current packagesAssignee: Nick Hadaway <grandmasterlinux>
Status: RESOLVED FIXED    
Severity: normal CC: kabau, lostlogic
Priority: High    
Version: 1.2   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Grant Goodyear (RETIRED) gentoo-dev 2002-07-15 12:17:52 UTC
Works fine on my 2.95 system w/ glibc 2.2.5-r5.  Hangs on 
my three tested gcc3.1 systems:

mine: glibc 2.2.5-r5, gcc-3.1-r7.
kabau: glibc-2.2.5-r4, gcc-3.1-r7
lostlogic: glibc-2.2.5-r5, gcc-3.1-r8
Comment 1 Grant Goodyear (RETIRED) gentoo-dev 2002-07-15 12:26:27 UTC
I checked the forums; they recommend dropping from -O3 to -O2.  Worked for me.

Kabua says that on his system procmail eventually emerged, but he had to wait
a few minutes at the strstr test.
Comment 2 Nick Hadaway 2002-07-16 09:17:38 UTC
Added a -O2 at the end of the CFLAGS sed statement.

This is important as flags are inherited inline... the last flag past will 
clobber the first flag... so the -O2 is placed after the ${CFLAGS} to override 
the -O3 in most of the gentoo default flags.

This shouldn't cause any trouble as I don't think there are any architectures 
that use anything less than a -O2...

-Nick