Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 272664 - kde-base/kdm-4.2.4 and 9999 (from kde-testing) fail to build with -O3 CFLAG
Summary: kde-base/kdm-4.2.4 and 9999 (from kde-testing) fail to build with -O3 CFLAG
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 272292 272662 (view as bug list)
Depends on:
Blocks: 277868
  Show dependency tree
 
Reported: 2009-06-04 18:05 UTC by drhopfen
Modified: 2009-08-05 18:12 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,38.12 KB, text/plain)
2009-06-04 18:07 UTC, drhopfen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description drhopfen 2009-06-04 18:05:18 UTC
Trying to emerge kdm-9999 from the testing fails with a sed error.



Reproducible: Always

Steps to Reproduce:
1. emerge -1v kdm

Actual Results:  
emerge fails

Expected Results:  
emerging kdm

setting the CFLAG -O2 instead of -O3 fixes the problem
Comment 1 drhopfen 2009-06-04 18:07:17 UTC
Created attachment 193566 [details]
build.log
Comment 2 Tomáš Chvátal (RETIRED) gentoo-dev 2009-06-04 18:14:30 UTC
*** Bug 272662 has been marked as a duplicate of this bug. ***
Comment 3 Alex Alexander (RETIRED) gentoo-dev 2009-06-04 18:53:22 UTC
This also happens with kdm-4.2.4
Comment 4 Tomáš Chvátal (RETIRED) gentoo-dev 2009-06-16 12:28:42 UTC
*** Bug 272292 has been marked as a duplicate of this bug. ***
Comment 5 Luke-Jr 2009-08-05 17:59:39 UTC
When has Gentoo *ever* supported -O3?

http://www.gentoo.org/doc/en/gcc-optimization.xml
 
-O3: This is the highest level of optimization possible, and also the riskiest. It will take a longer time to compile your code with this option, and in fact it should not be used system-wide with gcc 4.x. The behavior of gcc has changed significantly since version 3.x. In 3.x, -O3 has been shown to lead to marginally faster execution times over -O2, but this is no longer the case with gcc 4.x. Compiling all your packages with -O3 will result in larger binaries that require more memory, and will significantly increase the odds of compilation failure or unexpected program behavior (including errors). The downsides outweigh the benefits; remember the principle of diminishing returns. Using -O3 is not recommended for gcc 4.x.
Comment 6 Alex Alexander (RETIRED) gentoo-dev 2009-08-05 18:12:00 UTC
updated ebuild that replaces -O3 with -O2 now in tree.