Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 48406 - ghostscript-7.07.1-r1 fails with GCC 3.4 if anything greater than -O2 in CFLAGS
Summary: ghostscript-7.07.1-r1 fails with GCC 3.4 if anything greater than -O2 in CFLAGS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 48528
  Show dependency tree
 
Reported: 2004-04-19 14:17 UTC by George L. Emigh
Modified: 2004-04-28 15:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
ghostscript ebuild with the fix already added. (ghostscript-7.07.1-r1.ebuild,3.05 KB, text/plain)
2004-04-19 14:20 UTC, George L. Emigh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description George L. Emigh 2004-04-19 14:17:55 UTC
ghostscript will cause GCC 3.4 to implode, if greater than -O2 is used.

Reproducible: Always
Steps to Reproduce:
1. try and build ghostscript with gcc 3.4 and -O3 or additional optimizing.
2.
3.

Actual Results:  
GCC implodes. 

Expected Results:  
success. 

Add this to ebuild: 
 
    # We need to strip all flags and set to -O2 for gcc 3.4 
    if [ "`gcc-major-version`" -eq "3" ] && [ "`gcc-minor-version`" -eq "4" ] 
        then 
           strip-flags 
           export CFLAGS="${CFLAGS//-O?} -O2" 
           export CXXFLAGS="${CFLAGS}" 
    fi
Comment 1 George L. Emigh 2004-04-19 14:20:16 UTC
Created attachment 29657 [details]
ghostscript ebuild with the fix already added.

Tested with GCC 3.3.3 and GCC 3.4, builds ghostscript fine.
Comment 2 Travis Tilley (RETIRED) gentoo-dev 2004-04-28 15:42:43 UTC
i didnt use your patch, but edited the ebuild in a similar way. the fix is in CVS, give it a bit to reach rsync.