Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 147473 - dev-python/numpy fails to compile with as-needed
Summary: dev-python/numpy fails to compile with as-needed
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2006-09-13 09:53 UTC by Sébastien Fabbro (RETIRED)
Modified: 2006-09-24 11:47 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 Sébastien Fabbro (RETIRED) gentoo-dev 2006-09-13 09:53:53 UTC
I put numpy-1.0_beta5 in the http://gentooscience.org overlay (only change is the homepage). But I can't make it work with as-needed. Anyone here could help me on this? This version is needed for >=matplotlib-0.87.5 and >=scipy-0.5.1

Compilation error (abridged):
------------------------------------

creating build/temp.linux-x86_64-2.4/numpy/linalg
compile options: '-DATLAS_INFO="\"3.7.11\"" -I/usr/include/atlas -Inumpy/core/include -Ibuild/src.linux-x86_64-2.4/numpy/core -Inumpy/core/src -Inumpy/core/include -I/usr/include/python2.4 -c'
x86_64-pc-linux-gnu-gcc: numpy/linalg/lapack_litemodule.c
/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.1/gfortran -Wl,--as-needed build/temp.linux-x86_64-2.4/numpy/linalg/lapack_litemodule.o -L/usr/lib -llapack -llapack -lblas -lcblas -latlas -lgfortran -o build/lib.linux-x86_64-2.4/numpy/linalg/lapack_lite.so
build/temp.linux-x86_64-2.4/numpy/linalg/lapack_litemodule.o: In function `check_object':
lapack_litemodule.c:(.text+0x41): undefined reference to `PyType_IsSubtype'
lapack_litemodule.c:(.text+0x7b): undefined reference to `PyErr_Format'
lapack_litemodule.c:(.text+0xb7): undefined reference to `PyErr_Format'
lapack_litemodule.c:(.text+0xd5): undefined reference to `PyErr_Format'

--------------------------------
emerge --info:

Portage 2.1-r2 (default-linux/amd64/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.12.4
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
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="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=athlon64"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /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/splash /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=athlon64"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://mirrors1.netvisao.pt/gentoo"
LANG="pt_PT.UTF-8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="en pt fr"
MAKEOPTS="-j2"
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="/home/seb/gentoo/sci"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac acpi alsa audacious audiofile avi bash-completion berkdb bitmap-fonts blas bzip2 cairo cdparanoia cli crypt css cups dbus dga directfb divx4linux dlloader doc dri dts dv dvd dvdr dvdread emacs emboss encode exif fbcon fbdev ffmpeg fftw firefox flac foomaticdb fortran gcj geoip gif glitz gnutls gphoto2 gpm gstreamer gtk2 hal icq ieee1394 imagemagick imlib isdnlog jabber java javascript jbig jpeg kde kdeenablefinal lapack lirc lm_sensors lzo lzw lzw-tiff mad matroska mikmod mjpeg mng mp3 mp4 mpeg msn musepack musicbrainz ncurses nls nptl nptlonly nsplugin nvidia objc offensive ogg oggvorbis opengl pam pcre pdf perl png ppds pppd python qt3 qt4 quicktime readline reflection rt2500pci scanner sdl sensord session shorten silc sndfile sox speex spell spl ssl subversion svg symlink tcltk tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vcd vorbis wifi wma wmf wxwindows x264 xanim xine xml xorg xpm xprint xv xvid xvmc yahoo zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_en linguas_pt linguas_fr lirc_devices_pctv userland_GNU video_cards_nv video_cards_vesa video_cards_fbdev video_cards_nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2006-09-24 11:47:32 UTC
The distutils in numpy/scipy is very customized and setting any LDFLAGS at all breaks it because it overrides all the internal linker flags instead of adding to them. This is known to upstream, so I've just forced off LDFLAGS for now. Feel free to reopen when you notice upstream's fixed this.