Build of dev-python/matplotlib-0.98* and 0.9* fail with a file not found as below. Workaround : ln -s /usr/include/python2.6/CXX/ /usr/include/python2.6/CXX/Python2 Longer log attached, important parts here: In file included from src/ft2font.h:4, from src/ft2font.cpp:1: /usr/include/python2.6/CXX/Extensions.hxx:50:34: error: CXX/Python2/Config.hxx: No such file or directory /usr/include/python2.6/CXX/Extensions.hxx:51:36: error: CXX/Python2/CxxDebug.hxx: No such file or directory /usr/include/python2.6/CXX/Extensions.hxx:52:35: error: CXX/Python2/Objects.hxx: No such file or directory /usr/include/python2.6/CXX/Extensions.hxx:182:43: error: CXX/Python2/ExtensionModule.hxx: No such file or directory /usr/include/python2.6/CXX/Extensions.hxx:183:38: error: CXX/Python2/PythonType.hxx: No such file or directory /usr/include/python2.6/CXX/Extensions.hxx:184:45: error: CXX/Python2/ExtensionTypeBase.hxx: No such file or directory /usr/include/python2.6/CXX/Extensions.hxx:185:44: error: CXX/Python2/ExtensionOldType.hxx: No such file or directory /usr/include/python2.6/CXX/Extensions.hxx:186:41: error: CXX/Python2/ExtensionType.hxx: No such file or directory Reproducible: Always
Created attachment 200716 [details] log of error
Please paste the output of 'emerge --info' into a bugzilla comment to assist the maintainers in resolving this issue
Same problem here. # emerge --info Portage 2.2_rc33 (default/linux/amd64/10.0/desktop, gcc-4.4.1, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r4 x86_64) ================================================================= System uname: Linux-2.6.30-gentoo-r4-x86_64-Intel-R-_Core-TM-2_CPU_T5600_@_1.83GHz-with-gentoo-2.1.3 Timestamp of tree: Sun, 09 Aug 2009 06:00:01 +0000 distcc 3.1 x86_64-pc-linux-gnu [disabled] app-shells/bash: 4.0_p28 dev-java/java-config: 2.1.8-r1 dev-lang/python: 2.6.2-r1 dev-util/cmake: 2.6.4-r2 sys-apps/baselayout: 2.1.3 sys-apps/openrc: 0.5.0-r2 sys-apps/sandbox: 2.0 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11 sys-devel/binutils: 2.19.1-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.29 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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 /etc/udev/rules.d" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps y" FEATURES="distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="en_CA.utf8" LC_ALL="en_CA.utf8" LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed" LINGUAS="en" MAKEOPTS="-j3" 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/layman/gentoo-quebec /usr/local/portage/local-overlay" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acl acpi alac alsa amd64 battery berkdb blas bluetooth branding bzip2 cairo cdaudio cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo exif fam firefox flac fortran gcj gdbm gif gpm gsl gstreamer gtk hal iconv ipod ipv6 isdnlog java java6 jpeg kde kde4 lame laptop ldap libnotify lm_sensors mad mmx mp3 mp3tune mpeg mudflap multilib ncurses networkmanager nls nptl nptlonly nvidia ogg opengl openmp pam pcre pdf perl plasma png ppds pppd pulseaudio python qt3support qt4 quicktime readline reflection sdl semantic-desktop session spell spl sse sse2 ssl startup-notification subversion svg sysfs tcpd theora tiff truetype unicode usb v4l v4l2 vorbis wavpack wifi xcomposite xinerama xml xmp xorg xscreensaver xulrunner xv zlib" 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 authn_alias authn_anon 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 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia nv nouveau" Unset: CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Hi, I know very little about this matter, but the further I go looking into how it is probably intended to work (the whole CXX magic happening in the ebuild) the less I understand it and I'm not sure who's to blame here (matplotlib itself, the ebuild or pycxx). The matplotlib ebuild erases matplotlib's own CXX directory and links /usr/share/python*/CXX in its place. It should be /usr/include/... actually, but even that would be weird when I realize that gcc is already looking there (because it is a standard include path), so why link it? Anyway, even if I make it see the CXX files (either by erasing the CXX dir or by erasing it and linking the system one in place), it doesn't help, because the files themselves are weird: In Extensions.hxx I see #include "CXX/Python2/Config.hxx" which doesn't exist (there's no Python2 dir). Please, take this with a grain of salt, because I'm maybe really off here, just wanted to share a bit of what I've found. al-Quaknaa
see this bug #280732 It should be fixed if you reemerge pycxx after syncing the tree
(In reply to comment #5) > see this bug #280732 It should be fixed if you reemerge pycxx after syncing the > tree > Confirmed, but could you please revbump pycxx and set matplotlib depending on the revbumped version...
Confirmed, thanks :)
thanks for this bug report, emerge -1 pycxx fixed the issue for me
OK, considering as a duplicate then. Thanks. *** This bug has been marked as a duplicate of bug 280732 ***