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
Created attachment 193566 [details] build.log
*** Bug 272662 has been marked as a duplicate of this bug. ***
This also happens with kdm-4.2.4
*** Bug 272292 has been marked as a duplicate of this bug. ***
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.
updated ebuild that replaces -O3 with -O2 now in tree.