Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 144744 - sci-libs/scipy-0.4.9 emerge fails
Summary: sci-libs/scipy-0.4.9 emerge fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-22 06:38 UTC by Thomas
Modified: 2006-09-24 00:29 UTC (History)
1 user (show)

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 Thomas 2006-08-22 06:38:51 UTC
hi there. trying to compile scipy but the answer is this :

creating build/temp.linux-i686-2.4/Lib/io
compile options: '-I/usr/lib/python2.4/site-packages/numpy/core/include -I/usr/include/python2.4 -c'
i686-pc-linux-gnu-gcc: Lib/io/numpyiomodule.c
Lib/io/numpyiomodule.c: In function `PyTypeFromChar':
Lib/io/numpyiomodule.c:698: erreur: 
Comment 1 Thomas 2006-08-22 06:38:51 UTC
hi there. trying to compile scipy but the answer is this :

creating build/temp.linux-i686-2.4/Lib/io
compile options: '-I/usr/lib/python2.4/site-packages/numpy/core/include -I/usr/include/python2.4 -c'
i686-pc-linux-gnu-gcc: Lib/io/numpyiomodule.c
Lib/io/numpyiomodule.c: In function `PyTypeFromChar':
Lib/io/numpyiomodule.c:698: erreur: « PyArray_SBYTE » non déclaré (première utilisation dans cette fonction)
Lib/io/numpyiomodule.c:698: erreur: (Chaque identificateur non déclaré est rapporté une seule fois
Lib/io/numpyiomodule.c:698: erreur: pour chaque fonction dans laquelle il apparaît.)
Lib/io/numpyiomodule.c: In function `PyTypeFromChar':
Lib/io/numpyiomodule.c:698: erreur: « PyArray_SBYTE » non déclaré (première utilisation dans cette fonction)
Lib/io/numpyiomodule.c:698: erreur: (Chaque identificateur non déclaré est rapporté une seule fois
Lib/io/numpyiomodule.c:698: erreur: pour chaque fonction dans laquelle il apparaît.)
error: Command "i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -march=athlon-xp -O2 -pipe -msse2 -fPIC -I/usr/lib/python2.4/site-packages/numpy/core/include -I/usr/include/python2.4 -c Lib/io/numpyiomodule.c -o build/temp.linux-i686-2.4/Lib/io/numpyiomodule.o" failed with exit status 1

!!! ERROR: sci-libs/scipy-0.4.9 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  scipy-0.4.9.ebuild, line 130:   Called distutils_src_compile 'config_fc' '--fcompiler=gnu' '--opt=-O2 -march=athlon-xp -O2 -pipe -msse2'
  distutils.eclass, line 38:   Called die

rapid translation : 
« PyArray_SBYTE » not declared (first use in this function)

i've got numpy 1.0_beta2 and lapas-atla 3.7.11.

emerge --info :

Portage 2.1-r2 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.17-gentoo-r4 i686)
=================================================================
System uname: 2.6.17-gentoo-r4 i686 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.12.4
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -O2 -pipe -msse2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp -O2 -pipe -msse2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://85.25.128.62"
LANG="fr_FR.utf8"
LC_ALL="fr_FR.utf8"
LINGUAS="fr fr_FR"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/musicbrainz /usr/portage/local/layman/pro-audio"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm avi berkdb bitmap-fonts cli crypt cups dbus dlloader dri eds emboss encode foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 hal imlib ipv6 isdnlog jack jackmidi jpeg libg++ libwww mad motif mp3 mpeg ncurses nls nptl nptlonly ogg opengl pam pcre pdflib perl png pppd python qt3 qt4 quicktime readline reflection sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts udev unicode vorbis xml xorg xv zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_fr linguas_fr_FR userland_GNU video_cards_radeon video_cards_vesa video_cards_fglrx"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-08-22 07:13:21 UTC
Reopen with error message in English. Set your locales to C when reporting bugs, please.
Comment 3 Colin Macdonald 2006-08-23 17:13:32 UTC
I have the same error but I cannot reopen the bug.  Here it is the error in English:

creating build/temp.linux-i686-2.4/Lib/io
compile options: '-I/usr/lib/python2.4/site-packages/numpy/core/include -I/usr/include/python2.4 -c'
i686-pc-linux-gnu-gcc: Lib/io/numpyiomodule.c
Lib/io/numpyiomodule.c: In function 'PyTypeFromChar':
Lib/io/numpyiomodule.c:698: error: 'PyArray_SBYTE' undeclared (first use in this function)
Lib/io/numpyiomodule.c:698: error: (Each undeclared identifier is reported only once
Lib/io/numpyiomodule.c:698: error: for each function it appears in.)
distcc[12115] ERROR: compile Lib/io/numpyiomodule.c on localhost failed
Lib/io/numpyiomodule.c: In function 'PyTypeFromChar':
Lib/io/numpyiomodule.c:698: error: 'PyArray_SBYTE' undeclared (first use in this function)
Lib/io/numpyiomodule.c:698: error: (Each undeclared identifier is reported only once
Lib/io/numpyiomodule.c:698: error: for each function it appears in.)
distcc[12115] ERROR: compile Lib/io/numpyiomodule.c on localhost failed
error: Command "i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -march=i686 -O2 -pipe -fPIC -I/usr/lib/python2.4/site-packages/numpy/core/include -I/usr/include/python2.4 -c Lib/io/numpyiomodule.c -o build/temp.linux-i686-2.4/Lib/io/numpyiomodule.o" failed with exit status 1

!!! ERROR: sci-libs/scipy-0.4.9 failed.
Call stack:
  ebuild.sh, line 1543:   Called dyn_compile
  ebuild.sh, line 938:   Called src_compile
  scipy-0.4.9.ebuild, line 130:   Called distutils_src_compile 'config_fc' '--fcompiler=gnu95' '--opt=-march=i686 -O2 -pipe'
  distutils.eclass, line 38:   Called die

!!! compilation failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 4 Colin Macdonald 2006-08-23 17:55:19 UTC
FWIW, i'm using numpy-1.0_beta2

emerge --info:
Portage 2.1.1_pre5-r3 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17.8 i686)
=================================================================
System uname: 2.6.17.8 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.12.4
Last Sync: Tue, 22 Aug 2006 23:00:07 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/globus-2.4/etc /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=i686 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig collision-protection distcc distlocks metadata-transfer sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.mirrors.easynews.com/linux/gentoo/ http://gentoo.chem.wisc.edu/gentoo/ ftp://gentoo.mirrors.tds.net/gentoo ftp://194.117.143.71/mirrors/gentoo"
LINGUAS=""
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/ag-portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X Xaw3d a52 aac aalib acpi alsa apache2 apm arts audiofile avahi avi berkdb bitmap-fonts bzip2 cairo cdr cjk cli crypt cups curl dbus dga dlloader dri dts dv dvb dvd dvdr eds elibc_glibc emacs emboss encode esd exif expat f77 faad fbcon ffmpeg fftw flac fortran gcj gd gdbm gif gimpprint ginac glut gmp gnome gnustep gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal idn imagemagick imlib input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog jack java jpeg kernel_linux lcms leim libcaca libg++ libwww lirc lirc_devices_realmagic live mad matroska mikmod mmx mng mono motif mozilla mp3 mpeg mysql nas ncurses nls nptl offensive ogg openal opengl oss pam pcre pdf pdflib perl plotutils png ppds pppd python qhull qt3 quicktime radeon readline reflection rtc samba scanner sdk sdl session slang speex spell spl sqlite sse ssl svg tcl tcltk tcpd tetex theora threads tiff tk truetype truetype-fonts type1-fonts udev unicode usb userland_GNU v4l v4l2 vcd video_cards_fbdev video_cards_i810 video_cards_mach64 video_cards_radeon video_cards_v4l video_cards_vesa video_cards_vga vorbis wmf wxwindows xinerama xml xmms xorg xosd xprint xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-08-23 23:35:41 UTC
Reopen.
Comment 6 Thomas 2006-08-25 01:21:58 UTC
I don't know if it will be of any help (sorry for bothering if it is not), but it seems that installing scipy 0.5 from tarball works. I just have a weird message when I load it into python.

Overwriting info=<function info at 0xb747adbc> from scipy.misc.helpmod (was <function info at 0xb74450d4> from numpy.lib.utils)
Overwriting who=<function who at 0xb746d8b4> from scipy.misc.common (was <function who at 0xb744502c> from numpy.lib.utils)
Overwriting source=<function source at 0xb724cd4c> from scipy.misc.helpmod (was <function source at 0xb744510c> from numpy.lib.utils)
Comment 7 Donnie Berkholz (RETIRED) gentoo-dev 2006-09-23 23:55:12 UTC
scipy 0.4.x isn't expected to work with the new numpy, that's why I'm bumping to 0.5.1.
Comment 8 Donnie Berkholz (RETIRED) gentoo-dev 2006-09-24 00:29:34 UTC
Should be fixed by addition of 0.5.1 and fixing of some deps in 0.4.x.