Please see the attached build.log. Curiously it says: BUILDING MATPLOTLIB matplotlib: 1.2.0 python: 3.2.3 (default, May 15 2012, 14:02:22) [GCC 4.5.3] platform: linux2 REQUIRED DEPENDENCIES numpy: no * You must install numpy 1.4 or later to build * matplotlib. I have numpy-1.5.1 from sage-on-gentoo overlay, but that should not be too different. Reproducible: Always # emerge --info Portage 2.1.11.32 (default/linux/amd64/10.0/desktop/kde, gcc-4.6.3, glibc-2.15-r3, 3.4.2-gentoo-r1 x86_64) ================================================================= System uname: Linux-3.4.2-gentoo-r1-x86_64-Intel-R-_Core-TM-_i5-2520M_CPU_@_2.50GHz-with-gentoo-2.1 Timestamp of tree: Fri, 30 Nov 2012 02:00:01 +0000 ld GNU ld (GNU Binutils) 2.22 ccache version 3.1.8 [enabled] app-shells/bash: 4.2_p37 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.7.3-r2, 3.2.3 dev-util/ccache: 3.1.8 dev-util/cmake: 2.8.9 dev-util/pkgconfig: 0.27.1 sys-apps/baselayout: 2.1-r1 sys-apps/openrc: 0.11.5 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13, 2.68 sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.6 sys-devel/binutils: 2.22-r1 sys-devel/gcc: 4.5.4, 4.6.3 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82-r3 sys-kernel/linux-headers: 3.6 (virtual/os-headers) sys-libs/glibc: 2.15-r3 Repositories: gentoo science sunrise sage-on-gentoo emacs java-overlay TomOverlay ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA Intel-SDP nauty PUEL googleearth google-talkplugin AdobeFlash-10.1 AdobeFlash-10.3 dlj-1.1 skype-eula skype-4.0.0.7-copyright IBM-J1.6 google-chrome Oracle-BCLA-JavaSE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /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="-march=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--autounmask-write --quiet-build=n" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs ccache collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch protect-owned sandbox sfperms sign splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu" LINGUAS="en en_US de" MAKEOPTS="-j5 -l5" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/science /var/lib/layman/sunrise /var/lib/layman/sage-on-gentoo /var/lib/layman/emacs /var/lib/layman/java-overlay /home/tom/tom-overlay" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 anthy apache2 avahi bash-completion berkdb branding bzip2 cairo cdda cddb cdparanoia cdr cjk cli consolekit cracklib crypt ctype cups curl cxx daap dbus declarative djvu dri dts dvb dvd dvdr emacs encode exif expat fam fbcon ffmpeg firefox flac fortran ftp gd gdbm gif gimp glut gmp gnome gnome-keyring gnutls gpm graphviz gstreamer gtk guile hdaps iconv icu ieee1394 imagemagick imap imlib ipod ipv6 java javascript jit jpeg kde kipi latex lcms ldap leim libnotify lm_sensors lzma m17n-lib mad migemo mime mmx mng modules mp3 mp4 mpeg mplayer mtp mudflap mule multilib musicbrainz mysql mysqli ncurses nls nptl nsplugin obex ocaml ogg oggvorbis openal opengl openmp pam pango pcmcia pcre pdf perl phonon php plasma plotutils png policykit ppds pppd pulseaudio python qt3support qt4 readline sasl sdl semantic-desktop session slang smartcard spell sqlite sqlite3 sse sse2 ssl ssse3 startup-notification svg tcpd texlive theora threads tiff tk truetype udev udisks uim unicode upower usb v4l v4l2 visualization vorbis wicd wifi wxwidgets wxwindows x264 xcb xcomposite xft xine xinerama xml xscreensaver xulrunner xv xvid zeroconf zlib zsh-completion" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US de" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="intel vesa fbdev" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Created attachment 331008 [details] build.log with failures
Hi Thomas, I think that's related to your previous numpy problem that you posted about on the science mailing list. The failure is because python 3.2.3 doesn't find numpy. But if you followed my advice from the mailing list you don't have numpy installed for python 3.2.3! We have an updated numpy-1.5.1 in the science overlay, someone bothered to provide a fix for the blas/lapack problem and I merged it if you want to it a spin.
Sorry I meant the sage-on-gentoo overlay :)
(In reply to comment #2) > Hi Thomas, > > I think that's related to your previous numpy problem that you posted about > on the science mailing list. The failure is because python 3.2.3 doesn't > find numpy. But if you followed my advice from the mailing list you don't > have numpy installed for python 3.2.3! > We have an updated numpy-1.5.1 in the science overlay, someone bothered to > provide a fix for the blas/lapack problem and I merged it if you want to it > a spin. I can't find anything updated about numpy-1.5.1 ?? Anyway, I tried to disable python-3.2.3 and now matplotlib fails differently. I'll attach the build.log in a second.
Created attachment 331110 [details] build.log with failures
We have ways and means of disabling python3. Which 1 did you use?
(In reply to comment #6) > We have ways and means of disabling python3. Which 1 did you use? The failure in the attached build log is with Python-2.7.
This is different from your original log. That's weird parsing of tcl/tk options. Can you try to build with -tk to see if the problem is limited to that back end. The numpy-1.5.1 ebuild in the s-o-g overlay has an extra patch but was not revbumped.
Actually trolling both logs I can see you did go past that point without trouble in the first one. What changed in between these two builds?
numpy 1.5.1 from the s-o-g overlay is guilty of that last failure. This is totally weird.
(In reply to comment #10) > numpy 1.5.1 from the s-o-g overlay is guilty of that last failure. This is > totally weird. The history is like you inferred: first build.log: original numpy (without the patch) (from s-o-g). Then I rebuilt numpy on Nov 30th and tried again and produced the second build.log and comment #4.
I am starting to move things to numpy-1.7.0 (beta2) for now in sage-on-gentoo to try to get ride of all the problems that are appearing from our continued use of numpy 1.5.1. But bug #443778 is currently a blocker for moving things along since we have to rebuild scipy and stuff.
I was able to reproduce the issue and I found a candidate fix. I've created a PR on github:cschwan/sage-on-gentoo to add a patch found in upstream's git. Once it is merged, you could try and see if it fixes it. Or you can add my fork as a git branch and try it directly. On my setup I was able to install matplotlib with the tk flag and with for python-2.7 and python-3.2 eix -e numpy [I] dev-python/numpy Available versions: 1.5.1 1.5.1[1] [m]1.6.0 m1.6.1 [m]1.6.1-r1 m1.6.2 m1.7.0_beta2[1] {doc lapack test} Installed versions: 1.5.11(lapack -doc -test) Homepage: http://numpy.scipy.org/ http://pypi.python.org/pypi/numpy Description: Fast array and numerical python library [1] "sage-on-gentoo" /usr/local/overlays/sage-on-gentoo eix -e matplotlib [I] dev-python/matplotlib Available versions: 1.0.1-r1 1.1.0 1.1.1 (~)1.2.0^m {cairo doc examples excel fltk gtk latex qt4 test tk traits wxwidgets} Installed versions: 1.2.0^m(05:38:56 PM 12/05/2012)(cairo excel gtk latex qt4 tk -doc -examples -fltk -test -wxwidgets) Homepage: http://matplotlib.sourceforge.net/ http://pypi.python.org/pypi/matplotlib Description: Pure python plotting library with matlab like syntax
I have merged Olivier's changes in the sage-on-gentoo overlay. Can you try it Thomas?
(In reply to comment #14) > I have merged Olivier's changes in the sage-on-gentoo overlay. Can you try > it Thomas? I still get the issue in the currently attached build.log. It happens because - l t c l 8 . 5 - l t k 8 . 5 is passed on the command line. Where do the spaces come from?
(In reply to comment #15) > (In reply to comment #14) > > I have merged Olivier's changes in the sage-on-gentoo overlay. Can you try > > it Thomas? > > I still get the issue in the currently attached build.log. It happens > because > > - l t c l 8 . 5 - l t k 8 . 5 > > is passed on the command line. Where do the spaces come from? I've no idea. I couldn't track them, I'm not familiar to the python build system. This may look strange, but to completely reproduce the steps I did, could you please emerge numpy-1.6.2 (possibly with --nodeps added to emerge) and then emerge numpy-1.5.1 from the sage-on-gentoo overlay. I'm not sure about this but there may be some strange bytecode thing going on here.
(In reply to comment #16) > This may look strange, but to completely reproduce the steps I did, could > you please emerge numpy-1.6.2 (possibly with --nodeps added to emerge) and > then emerge numpy-1.5.1 from the sage-on-gentoo overlay. I'm not sure about > this but there may be some strange bytecode thing going on here. Hey guys, I just bought this snake oil that cured all my pains. Seriously, after doing what the above paragraph suggests I can not reproduce any failures. both numpy-1.5.1 and matplotlib-1.2 work with both python-2.7 and python-3.2. Feel free to close this bug and thanks!
Hey Thomas, you are a dev you should be able to put this ticket to solved fixed, me and Olivier cannot (although that may change soon).