Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 306237

Summary: dev-python/numpy-1.4.0 doesn't build on ppc
Product: Gentoo Linux Reporter: Mounir Lamouri (volkmar) (RETIRED) <volkmar>
Component: [OLD] LibraryAssignee: PPC Porters <ppc>
Status: RESOLVED FIXED    
Severity: normal CC: frp.bissey, gnu_andrew, python
Priority: High Keywords: KEYWORDREQ
Version: unspecified   
Hardware: PPC   
OS: Linux   
URL: http://projects.scipy.org/numpy/ticket/1403
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Testsuite failures on ppc64

Description Mounir Lamouri (volkmar) (RETIRED) gentoo-dev 2010-02-21 19:32:57 UTC
numpy is failing because of a long double type detection which doesn't seem to care about PPC.
The bug has been reported upstream (see $URL).

If you want to fix this issue, patches are welcome.
Comment 1 Joe Jezak (RETIRED) gentoo-dev 2010-02-23 10:50:38 UTC
*** Bug 306505 has been marked as a duplicate of this bug. ***
Comment 2 Joe Jezak (RETIRED) gentoo-dev 2010-03-04 20:55:43 UTC
I gave upstream some more info, but it doesn't look like it'll be fixed soon. I may take a swing at it if I get some free time (hah!) but in the meantime, it's been masked on ppc/ppc64.

1.3.0 still works fine.
Comment 3 Stuart Shelton 2010-03-24 10:37:00 UTC
Are you seeing error messages like this?

compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/include -I/opt/gentoo/usr/include/python2.6 -c'
cc: _configtest.c
removing: _configtest.c _configtest.o
Traceback (most recent call last):
  File "setup.py", line 187, in <module>
    setup_package()
...
  File "numpy/core/setup.py", line 416, in generate_config_h
    rep = check_long_double_representation(config_cmd)
  File "numpy/core/setup_common.py", line 136, in check_long_double_representation
    type = long_double_representation(pyod(object))
  File "numpy/core/setup_common.py", line 244, in long_double_representation
    raise ValueError("Unrecognized format (%s)" % saw)
ValueError: Unrecognized format (['001', '043', '105', '147', '211', '253', '315', '357', '301', '235', '157', '064', '124', '000', '000', '000', '000', '000', '000', '000', '000', '000', '000', '000', '376', '334', '272', '230', '166', '124', '062', '020'])

... this was from an attempt to build numpy-1.4.0 from Gentoo-prefix on MIPS/IRIX.
Comment 4 François Bissey 2010-09-09 00:31:15 UTC
(In reply to comment #3)
> Are you seeing error messages like this?
> 
> compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core
> -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath
> -Inumpy/core/include -I/opt/gentoo/usr/include/python2.6 -c'
> cc: _configtest.c
> removing: _configtest.c _configtest.o
> Traceback (most recent call last):
>   File "setup.py", line 187, in <module>
>     setup_package()
> ...
>   File "numpy/core/setup.py", line 416, in generate_config_h
>     rep = check_long_double_representation(config_cmd)
>   File "numpy/core/setup_common.py", line 136, in
> check_long_double_representation
>     type = long_double_representation(pyod(object))
>   File "numpy/core/setup_common.py", line 244, in long_double_representation
>     raise ValueError("Unrecognized format (%s)" % saw)
> ValueError: Unrecognized format (['001', '043', '105', '147', '211', '253',
> '315', '357', '301', '235', '157', '064', '124', '000', '000', '000', '000',
> '000', '000', '000', '000', '000', '000', '000', '376', '334', '272', '230',
> '166', '124', '062', '020'])
> 
> ... this was from an attempt to build numpy-1.4.0 from Gentoo-prefix on
> MIPS/IRIX.
> 
I do. It is clearly an endianess problem. The good news is numpy-1.5.0 
built out of the box for me on ppc so it may work on MIPS/IRIX as well.
I am not sure which changeset is responsible for it working.
Possibly 
http://projects.scipy.org/numpy/changeset/8541
but I am not sure, I may test the theory later.
Comment 5 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-09-09 17:04:52 UTC
PPC/PPC64 teams: Please test >=dev-python/numpy-1.5.0-r1 and add ~ppc/~ppc64 keywords if this version is fixed.
Comment 6 François Bissey 2010-09-10 01:11:37 UTC
Successfully merged numpy-1.5.0 on ppc:
emerge --info
Portage 2.2_rc77 (default/linux/powerpc/ppc32/10.0, gcc-4.4.4, glibc-2.11.2-r0, 2.6.32-gentoo-r7 ppc)
=================================================================
System uname: Linux-2.6.32-gentoo-r7-ppc-7450,_altivec_supported-with-gentoo-1.12.13
Timestamp of tree: Tue, 07 Sep 2010 20:15:02 +0000
ccache version 2.4 [disabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.5-r99::sage-on-gentoo, 3.1.2-r4
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13::<unknown repository>, 2.65
sys-devel/automake:  1.4_p6::<unknown repository>, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 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.6b
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="ppc"
ACCEPT_LICENSE="* -@EULA"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=7450 -mtune=7450 -pipe -maltivec -mabi=altivec -fno-strict-aliasing"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/portage /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -mcpu=7450 -mtune=7450 -pipe -maltivec -mabi=altivec -fno-strict-aliasing"
DISTDIR="/scratch/portage/distfiles/"
FEATURES="assume-digests distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.ihug.co.nz/gentoo ftp://mirrors.tds.net/gentoo http://mirrors.tds.net/gentoo ftp://ftp.vic.keypoint.com.au ftp://mirror.pacific.net.au/linux/Gentoo"
LC_ALL="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="fr en_GB"
MAKEOPTS="-j1 VERBOSE=1"
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="/scratch/portage/"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/science /usr/local/portage/layman/x11 /usr/local/portage/layman/sunrise /usr/local/portage/layman/sage-on-gentoo /home/fbissey/Work/overlay"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="X a52 aac acl alsa altivec amr ao asf audiofile avahi berkdb bzip2 cairo cdda cddb cdf cdio cdparanoia cdr cli consolekit cracklib crypt cups curl cxx dbus divx dri dts dv dvd dvdr dvdread encode exif expat f77 ffmpeg fftw flac fontconfig foomaticdb fortran fts3 gdbm gif gmedia gmp gpm graphviz gs gstreamer gtk hal iconv icu id3tag idn ieee1394 imagemagick imlib imlib2 ipv6 java jbig jpeg jpeg2k kpathsea ladspa lame lapack latex lcms libsamplerate lzma lzo mad mikmod mjpeg mmap mng modules mp3 mp4 mpeg mudflap musicbrainz ncurses netcdf network nls nptl nptlonly ogg openal openexr opengl pcre pdf perl png policykit ppc ppds pppd python qt3support qt4 quicktime raster rdesktop readline reflection sdl sdl-image secure-delete session slang slp sndfile spl ssl startup-notification svg sysfs szip taglib tcl tcltk tcpd theora tiff tk truetype udev unicode usb vcd vidix vnc vorbis wavpack wmf wmp x264 xcb xine xinerama xml xml2 xorg xv xvid zeroconf zip zlib" ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx" 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr en_GB" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev nv vga nouveau" 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, LANG, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 7 Mark Loeser (RETIRED) gentoo-dev 2010-11-05 16:30:34 UTC
Created attachment 253301 [details]
Testsuite failures on ppc64

I got the attached testsuite failures.  Also, the install doesn't stop if the testsuite fails, so someone might want to fix that as well :)  This is for dev-python/numpy-1.5.0-r2
Comment 8 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-11-07 14:57:14 UTC
(In reply to comment #7)

If it's a regression in comparison to 1.3.0*, then it might block stabilization, not rekeywording.
Comment 9 Mark Loeser (RETIRED) gentoo-dev 2010-11-07 17:08:26 UTC
(In reply to comment #8)
> (In reply to comment #7)
> 
> If it's a regression in comparison to 1.3.0*, then it might block
> stabilization, not rekeywording.
> 

I wanted to let you know before keywording it, and it won't be going stable with those testsuite failures.

~ppc64 done
Comment 10 François Bissey 2010-11-07 20:50:25 UTC
Would someone keyword it on ppc if I try to run the tests and report?
It builds already and I have been using it.
Comment 11 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-12-05 16:00:37 UTC
(In reply to comment #5)
> PPC/PPC64 teams: Please test >=dev-python/numpy-1.5.0-r1 and add ~ppc/~ppc64
> keywords if this version is fixed.

PPC team: Also restore ppc keyword in >=sci-libs/scipy-0.8.0.
Comment 12 Stefan de Konink 2011-01-04 19:39:55 UTC
numpy-1.5.1 seems to compile... so keyword request for ~ppc
Comment 13 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-01-12 21:25:39 UTC
  12 Jan 2011; Brent Baude <ranger@gentoo.org> numpy-1.5.1.ebuild:
  Marking numpy-1.5.1 ppc for bug 306237