Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 329511 - dev-lang/python-2.6.5-r3 - image//usr/lib/python2.6/test/test_float.py ... Sorry: ValueError: ('cannot convert float NaN to integer',)
Summary: dev-lang/python-2.6.5-r3 - image//usr/lib/python2.6/test/test_float.py ... So...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-23 01:59 UTC by Aaron Lewis
Modified: 2010-08-14 00:57 UTC (History)
0 users

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


Attachments
dev-lang/python-2.6.5-r3 altinstall fail with ValueError (dev-lang:python-2.6.5-r3:20100723-014255.log,379.67 KB, text/plain)
2010-07-23 14:42 UTC, Aaron Lewis
Details
ValueError with this py script (test_float.py,33.70 KB, text/plain)
2010-07-23 16:15 UTC, Aaron Lewis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron Lewis 2010-07-23 01:59:40 UTC
altinstall maninstall fails, i can see these errors:

Compiling /var/tmp/portage/dev-lang/python-2.6.5-r3/image//usr/lib/python2.6/test/test_float.py ...
Sorry: ValueError: ('cannot convert float NaN to integer',)
Compiling /var/tmp/portage/dev-lang/python-2.6.5-r3/image//usr/lib/python2.6/test/test_fnmatch.py ...


Reproducible: Always

Steps to Reproduce:
1.emerge python
2.
3.




I've got a overlay , but no dev-lang/python here.

>>> emerge --info                                                                                                                                            
Portage 2.1.8.3 (default/linux/x86/10.0/desktop, gcc-4.4.4, glibc-2.11.2-r0, 2.6.31-tuxonice-r11 i686)                                                                              
=================================================================                                                                                                                   
System uname: Linux-2.6.31-tuxonice-r11-i686-Intel-R-_Core-TM-2_Duo_CPU_T5870_@_2.00GHz-with-gentoo-2.0.1                                                                           
Timestamp of tree: Fri, 23 Jul 2010 00:30:10 +0000                                                                                                                                  
app-shells/bash:     4.1_p7                                                                                                                                                         
dev-java/java-config: 1.3.7-r1, 2.1.11                                                                                                                                              
dev-lang/python:     2.6.5-r2                                                                                                                                                       
dev-util/cmake:      2.8.1-r2                                                                                                                                                       
sys-apps/baselayout: 2.0.1                                                                                                                                                          
sys-apps/openrc:     0.6.1-r1                                                                                                                                                       
sys-apps/sandbox:    2.2                                                                                                                                                            
sys-devel/autoconf:  2.13, 2.65-r1                                                                                                                                                  
sys-devel/automake:  1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1                                                                                                                   
sys-devel/binutils:  2.20.1-r1                                                                                                                                                      
sys-devel/gcc:       4.4.4-r1                                                                                                                                                       
sys-devel/gcc-config: 1.4.1                                                                                                                                                         
sys-devel/libtool:   2.2.10                                                                                                                                                         
virtual/os-headers:  2.6.34                                                                                                                                                         
ACCEPT_KEYWORDS="x86 ~x86"                                                                                                                                                          
ACCEPT_LICENSE="*"                                                                                                                                                                  
CBUILD="i686-pc-linux-gnu"                                                                                                                                                          
CFLAGS="-O2 -march=core2 -pipe -mfpmath=sse -msse -msse2 -msse3 -mmmx -ffast-math -fomit-frame-pointer"                                                                             
CHOST="i686-pc-linux-gnu"                                                                                                                                                           
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /usr/share/config/kdm /var/bind"                                                                                          
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/skel /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"                                                                                                                                      
CXXFLAGS="-O2 -march=core2 -pipe -mfpmath=sse -msse -msse2 -msse3 -mmmx -ffast-math -fomit-frame-pointer"                                                                           
DISTDIR="/tools/repos/distfiles"
FEATURES="assume-digests collision-protect distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://www.gentoo-portage.com/gentoo/"
LANG="en_US.utf8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1,--as-needed"
LINGUAS="en zh_CN"
MAKEOPTS="-j4 -s "
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac accessibility acl acpi aiglx aim alsa artswrappersuid audiofile avahi bash-completion berkdb bidi bluetooth bzip2 cairo cdda cddb cdr cjk cli consolekit cpudetection cracklib crypt cups cxx dbus dga dri dts dv dvb dvd dvdr dvdread emboss encode exif fakevim fam fame fat ffmpeg firefox flac foomatic-db fortran freetype gcj gdbm gif gimpprint gmp gnutls gphoto2 gpm gsm gtk hal hdaps hfs iconv icq ieee1394 imap inotify ipod irc irda jabber jack jfs joystick jpeg kde kdehiddenvisibility kerberos lame lcd lcms ldap libnotify live lm_sensors lzo mad mail matroska mikmod mjpeg mmx mng modules mozdevelop mp3 mp3rtp mp4 mpeg msn mudflap musepack musicbrainz ncurses network nls nptl nptlonly nsplugin ntfs ogg openal openexr opengl openmp pam pango pcmcia pcre pda pdf perl png policykit ppds pppd pulseaudio python qt3support qt4 qtscript rar rdesktop readline reflection rss sasl scanner sdl session slp speex spell spl sse sse2 sse3 ssl startup-notification stream svg sysfs tcpd theora thinkpad tiff truetype udev unicode usb v4l v4l2 visualization vorbis wifi win32codecs wmf x264 x86 xcb xine xinerama xml xorg xpm xprint xulrunner xv xvid xvmc yahoo zeroconf zlib" ALSA_CARDS="emu10k1x darla20 darla24 emu10k1 gina20 gina24 hdsp hdspm ice1712 indigo indigoio layla20 layla24 mia mixart mona pcxhr rme32 rme96 sb16 sbawe sscape usbusx2y vx222 usb-usx2y" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" CAMERAS="agfa_cl20 casio_qv dimagev dimera3500 kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica_qm150 panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ricoh_g3 sipix_blink sipix_blink2 sipix_web2 sony_dscf1 sony_dscf55 toshiba_pdrm11 adc65 aox barbie canon clicksmart310 digigr8 digita directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 konica largan lg_gsm mars mustek pccam300 pccam600 ptp2 ricoh samsung sierra smal sonix soundvision spca50x sq905 stv0674 stv0680 sx330z template" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en zh_CN" LIRC_DEVICES="audio audio_alsa serial" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev vesa radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-07-23 14:37:59 UTC
Attach full build log.
Comment 2 Aaron Lewis 2010-07-23 14:42:04 UTC
Created attachment 239925 [details]
dev-lang/python-2.6.5-r3 altinstall fail with ValueError
Comment 3 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-07-23 15:51:08 UTC
I can't reproduce this problem.
Comment 4 Aaron Lewis 2010-07-23 16:15:15 UTC
Created attachment 239929 [details]
ValueError with this py script

So .. what about this ?

Try: 
* python /var/tmp/portage/dev-lang/python-2.6.5-r3/image//usr/lib/python2.6/test/test_float.py 
ValueError: cannot convert float NaN to integer

That's the problem , just i don't know how to debug this , so put it here.
Comment 5 Aaron Lewis 2010-07-23 16:17:00 UTC
* em -pv python

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-lang/python-2.6.5-r3  USE="berkdb gdbm ncurses readline sqlite ssl threads tk (wide-unicode) xml -build -doc -examples -ipv6 -wininst" 0 kB

I think maybe it's because some of the features is disabled by me , that created a NaN error.
Comment 6 Aaron Lewis 2010-07-23 16:21:58 UTC
Sorry , i just disabled the emake warnings , it's a dirty hack.

src_install() {
..
        emake DESTDIR="${D}" altinstall maninstall # || die "emake altinstall maninstall failed" # I removed these warnings temporary
..
}

It's showed as python-2.6.5-r3 just because i suppressed the warnings and installed it , i can see `make libinstall error 1' , but i made emerge continue , ignoring errors.
Comment 7 Aaron Lewis 2010-08-03 03:25:25 UTC
Fixed in dev-lang/python-2.6.5_p20100801
Comment 8 Brian Harring (RETIRED) gentoo-dev 2010-08-03 04:17:31 UTC
...which was pulled from the tree due to causing bug 330937..
Comment 9 Aaron Lewis 2010-08-03 06:04:50 UTC
I've just upgraded python , it compiled successfully ,  so i think it's solved.        

Now it's dev-lang/python-2.6.5_p20100801
Comment 10 Michal Belica 2010-08-13 16:47:15 UTC
Hi, looks like this ValueError when emerging appears when you have -ffast-math in CFLAGS. I noticed you have, and so did I when I had the same problem. After removing it from CFLAGS, python emerged fine.
Comment 11 Aaron Lewis 2010-08-14 00:57:54 UTC
Oops , fast-math doesn't work for python too , generated wrong code.

Removed -ffast-math from CFLAGS actually solved this problem.

Thanks !