Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 266039 - dev-lang/python-2.6.1-r1 fails to compile with --fast-math on amd64
Summary: dev-lang/python-2.6.1-r1 fails to compile with --fast-math on amd64
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: High minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-13 19:11 UTC by Sven Müller
Modified: 2009-04-13 19:27 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Müller 2009-04-13 19:11:13 UTC
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)
Comment 1 Peter Alfredsen (RETIRED) gentoo-dev 2009-04-13 19:21:46 UTC
ffast-math is known to break stuff. Don't use it.
Comment 2 Peter Alfredsen (RETIRED) gentoo-dev 2009-04-13 19:27:14 UTC
In fact, it should be called -f2+2=3.9999999