Python-2.6.1 compiles but fails to install when --fast-math is enabled. Error message: Compiling /var/tmp/portage/dev-lang/python-2.6.1-r1/image//usr/lib64/python2.6/test/test_fileio.py ... Compiling /var/tmp/portage/dev-lang/python-2.6.1-r1/image//usr/lib64/python2.6/test/test_float.py ... Traceback (most recent call last): File "/var/tmp/portage/dev-lang/python-2.6.1-r1/image//usr/lib64/python2.6/compileall.py", line 156, in <module> exit_status = int(not main()) File "/var/tmp/portage/dev-lang/python-2.6.1-r1/image//usr/lib64/python2.6/compileall.py", line 146, in main force, rx, quiet): File "/var/tmp/portage/dev-lang/python-2.6.1-r1/image//usr/lib64/python2.6/compileall.py", line 83, in compile_dir if not compile_dir(fullname, maxlevels - 1, dfile, force, rx, quiet): File "/var/tmp/portage/dev-lang/python-2.6.1-r1/image//usr/lib64/python2.6/compileall.py", line 65, in compile_dir ok = py_compile.compile(fullname, None, dfile, True) File "/var/tmp/portage/dev-lang/python-2.6.1-r1/image/usr/lib64/python2.6/py_compile.py", line 137, in compile wr_long(fc, timestamp) File "/var/tmp/portage/dev-lang/python-2.6.1-r1/image/usr/lib64/python2.6/py_compile.py", line 75, in wr_long f.write(chr( x & 0xff)) ValueError: cannot convert float NaN to integer make: *** [libinstall] Fehler 1 * * ERROR: dev-lang/python-2.6.1-r1 failed. Of course I know the warnings about ffast-math, but I decided to use it despite of the warnings. And afaik ffast-math should be safe on amd64. Thus if the developers of python find some time, they could fix that problem. In the meantime it works with ffast-math disabled. Reproducible: Always Steps to Reproduce: 1. emerge python (2.6.1)
ffast-math is known to break stuff. Don't use it.
In fact, it should be called -f2+2=3.9999999