Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 621672 - dev-python/matplotlib-1.4.3 build fails with PYTHON_TARGETS="python2_7"
Summary: dev-python/matplotlib-1.4.3 build fails with PYTHON_TARGETS="python2_7"
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-13 14:25 UTC by James Bates
Modified: 2017-06-13 23:09 UTC (History)
0 users

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 James Bates 2017-06-13 14:25:50 UTC
dev-python/matplotlib-1.4.3 build fails when PYTHON_TARGETS contains python2_7, which is required for gtk and/or wxwidgets.

Here is the complete build log:
$ sudo  emerge -av1 --nodeps matplotlib

 * IMPORTANT: 30 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


These are the packages that would be merged, in order:

[ebuild   R    ] dev-python/matplotlib-1.4.3::gentoo  USE="cairo gtk* gtk3 qt5 wxwidgets* -doc -examples -excel -fltk -latex -pyside -qt4 {-test} -tk" PYTHON_TARGETS="python2_7* python3_4 python3_5 (-python3_6)" 0 KiB

Total: 1 package (1 reinstall), Size of downloads: 0 KiB

Would you like to merge these packages? [Yes/No] Yes

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-python/matplotlib-1.4.3::gentoo
 * matplotlib-1.4.3.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                              [ ok ]
>>> Unpacking source...
>>> Unpacking matplotlib-1.4.3.tar.gz to /var/tmp/portage/dev-python/matplotlib-1.4.3/work
>>> Source unpacked in /var/tmp/portage/dev-python/matplotlib-1.4.3/work
>>> Preparing source in /var/tmp/portage/dev-python/matplotlib-1.4.3/work/matplotlib-1.4.3 ...
 * Applying matplotlib-1.4.3-cross-compile-1.patch ...                                                                                       [ ok ]
 * Applying matplotlib-1.4.3-cross-compile-2.patch ...                                                                                       [ ok ]
 * Applying matplotlib-1.4.3-cross-compile-3.patch ...                                                                                       [ ok ]
 * Applying matplotlib-1.4.3-backport-GH5291-2462.patch ...                                                                                  [ ok ]
 * Will copy sources from /var/tmp/portage/dev-python/matplotlib-1.4.3/work/matplotlib-1.4.3
 * python2_7: copying to /var/tmp/portage/dev-python/matplotlib-1.4.3/work/matplotlib-1.4.3-python2_7
 * python3_4: copying to /var/tmp/portage/dev-python/matplotlib-1.4.3/work/matplotlib-1.4.3-python3_4
 * python3_5: copying to /var/tmp/portage/dev-python/matplotlib-1.4.3/work/matplotlib-1.4.3-python3_5
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/matplotlib-1.4.3/work/matplotlib-1.4.3 ...
 * python2_7: running distutils-r1_run_phase python_configure
 * python3_4: running distutils-r1_run_phase python_configure
 * python3_5: running distutils-r1_run_phase python_configure
 * python3_5: running distutils-r1_run_phase python_configure_all
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-python/matplotlib-1.4.3/work/matplotlib-1.4.3 ...
 * python2_7: running distutils-r1_run_phase python_compile
cp: './build/matplotlib.egg-info' and '/var/tmp/portage/dev-python/matplotlib-1.4.3/work/matplotlib-1.4.3-python2_7/build/matplotlib.egg-info' are the same file
/usr/bin/python2.7 setup.py build build --build-lib=/var/tmp/portage/dev-python/matplotlib-1.4.3/work/matplotlib-1.4.3-python2_7/build/build/lib
============================================================================
Edit setup.cfg to change the build options

BUILDING MATPLOTLIB
            matplotlib: yes [1.4.3]
                python: yes [2.7.13 (default, Mar  6 2017, 22:35:22)  [GCC
                        4.9.4]]
              platform: yes [linux2]

REQUIRED DEPENDENCIES AND EXTENSIONS
                 numpy: yes [version 1.10.4]
                   six: yes [using six version 1.10.0]
              dateutil: yes [using dateutil version 2.4.2]
                  pytz: yes [using pytz version 2017.2]
               tornado: yes [tornado was not found. It is required for the
                        WebAgg backend. pip/easy_install may attempt to
                        install it after matplotlib.]
             pyparsing: yes [using pyparsing version 2.1.10]
                 pycxx: yes [Couldn't import.  Using local copy.]
                libagg: yes [pkg-config information for 'libagg' could not
                        be found. Using local copy.]
              freetype: yes [version 2.8.0]
                   png: yes [version 1.6.27]
                 qhull: yes [pkg-config information for 'qhull' could not be
                        found. Using local copy.]

OPTIONAL SUBPACKAGES
           sample_data: yes [installing]
              toolkits: yes [installing]
                 tests: yes [nose 0.11.1 or later is required to run the
                        matplotlib test suite.  pip/easy_install may attempt
                        to install it after matplotlib. / mock is required
                        to run the matplotlib test suite.  pip/easy_install
                        may attempt to install it after matplotlib.]
        toolkits_tests: yes [nose 0.11.1 or later is required to run the
                        matplotlib test suite.  pip/easy_install may attempt
                        to install it after matplotlib. / mock is required
                        to run the matplotlib test suite.  pip/easy_install
                        may attempt to install it after matplotlib.]

OPTIONAL BACKEND EXTENSIONS
                macosx: no  [Mac OS-X only]
                qt5agg: yes [installing, Qt: 5.6.2, PyQt: 5.6.2]
                qt4agg: no  [skipping due to configuration]
                pyside: no  [skipping due to configuration]
               gtk3agg: yes [installing, version 3.15.22]
/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py:57: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)
             gtk3cairo: yes [installing, version 3.15.22]
                gtkagg: yes [installing, Gtk: 2.24.31 pygtk: 2.24.0]
                 tkagg: no  [skipping due to configuration]
/var/tmp/portage/dev-python/matplotlib-1.4.3/temp/environment: line 1715: 17684 Aborted                 (core dumped) "${@}"
 * ERROR: dev-python/matplotlib-1.4.3::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  115:  Called src_compile
 *   environment, line 4211:  Called distutils-r1_src_compile
 *   environment, line 1242:  Called _distutils-r1_run_foreach_impl 'python_compile'
 *   environment, line  446:  Called python_foreach_impl 'distutils-r1_run_phase' 'python_compile'
 *   environment, line 3644:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_compile'
 *   environment, line 2676:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_compile'
 *   environment, line 2674:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_compile'
 *   environment, line  805:  Called distutils-r1_run_phase 'python_compile'
 *   environment, line 1235:  Called python_compile
 *   environment, line 3173:  Called wrap_setup 'distutils-r1_python_compile'
 *   environment, line 5028:  Called distutils-r1_python_compile 'build' '--build-lib=/var/tmp/portage/dev-python/matplotlib-1.4.3/work/matplotlib-1.4.3-python2_7/build/build/lib'
 *   environment, line 1110:  Called esetup.py 'build' 'build' '--build-lib=/var/tmp/portage/dev-python/matplotlib-1.4.3/work/matplotlib-1.4.3-pytho  _7/build/build/lib'
 *   environment, line 1722:  Called die
 * The specific snippet of code:
 *       "${@}" || die "${die_args[@]}";
 * 
 * If you need support, post the output of `emerge --info '=dev-python/matplotlib-1.4.3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/matplotlib-1.4.3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-python/matplotlib-1.4.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/matplotlib-1.4.3/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-python/matplotlib-1.4.3/work/matplotlib-1.4.3-python2_7'
 * S: '/var/tmp/portage/dev-python/matplotlib-1.4.3/work/matplotlib-1.4.3'

>>> Failed to emerge dev-python/matplotlib-1.4.3, Log file:

>>>  '/var/tmp/portage/dev-python/matplotlib-1.4.3/temp/build.log'


$ emerge --info
$ emerge --info
Portage 2.3.5 (python 2.7.13-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-5.4.0, glibc-2.23-r3, 4.9.16-gentoo x86_64)
=================================================================
System uname: Linux-4.9.16-gentoo-x86_64-Intel-R-_Core-TM-_i7-3635QM_CPU_@_2.40GHz-with-gentoo-2.3
KiB Mem:    16348980 total,   8795440 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Mon, 12 Jun 2017 00:00:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r2::gentoo
dev-lang/python:          2.7.13::gentoo, 3.4.6::gentoo, 3.5.3::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.26.3::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.26.1::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

java
    location: /var/lib/layman/java
    masters: gentoo
    priority: 50

mrueg
    location: /var/lib/layman/mrueg
    masters: gentoo
    priority: 50

salfter
    location: /var/lib/layman/salfter
    masters: gentoo
    priority: 50

tmacedo
    location: /var/lib/layman/tmacedo
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/chromium/policies/managed/chrome-gnome-shell.json /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/opt/chrome/policies/managed/chrome-gnome-shell.json /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://de-mirror.org/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 apache2 berkdb bluetooth branding bzip2 cairo cdda cdr cli colord cracklib crypt cryptsetup cups curl cxx cycles dbus dmraid dri dts dvd dvdr eds egl emboss encode evo exif faac faad fam farstream fat ffmpeg firefox flac fortran gd gdbm gif gimp git glamor gles gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk3 hfs hidpi iconv icu infinality introspection ios ipv6 java jemalloc jpeg kdenlive lcms ldap legacy-systray libkms libnotify libsecret llvm mad melt minizip mng modules mp3 mp3rtp mp4 mpeg multilib mysql nautilus ncurses networkmanager nls nptl nsplugin ntfs ogg openal opengl openimageio openmp otr pam pango pcre pcre16 pdf pdo perl png policykit postproc ppds pulseaudio qml qt3support qt5 readline samba scripts scripttools sdl seccomp server session source spell ssl startup-notification svg systemd tcpd theora threads tidy tiff tracker truetype udev udisks unicode upnp-av upower usb vim-syntax vorbis wayland widgets wma-fixed wxwidgets x264 xattr xcb xml xmp xslt xv xvid zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 access_compat" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" CURL_SSL="nss" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" NETBEANS_MODULES="php apisupport" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4 python3_5" QEMU_SOFTMMU_TARGETS="arm x86_64 i386" QEMU_USER_TARGETS="arm x86_64 i386" RUBY_TARGETS="ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="intel nouveau 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON



Reproducible: Always

Steps to Reproduce:
emerge -v PYTHON_TARGETS="python2_7" =matplotlib-1.4.3

Actual Results:  
build error: distutils-r1_run_phase python_compile:
cp: './build/matplotlib.egg-info' and '/var/tmp/portage/dev-python/matplotlib-1.4.3/work/matplotlib-1.4.3-python2_7/build/matplotlib.egg-info' are the same file

Expected Results:  
no build error
Comment 1 Mike Gilbert gentoo-dev 2017-06-13 19:25:06 UTC
/var/tmp/portage/dev-python/matplotlib-1.4.3/temp/environment: line 1715: 17684 Aborted                 (core dumped) "${@}"

Please check dmesg for errors.
Comment 2 Mike Gilbert gentoo-dev 2017-06-13 19:25:23 UTC
Do not copy arch teams on bug reports.
Comment 3 James Bates 2017-06-13 23:08:40 UTC
dmesg doesn't contain any errors related to the build. However, I did try executing the /usr/bin/python2.7 setup.py invocation manually. This provides a bit more info that just "core dumped":

Fatal Error: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1009,wx containers,compatible with 2.8),
and wxPython used 3.0 (wchar_t,compiler with C++ ABI 1002,wx containers,compatible with 2.8).
Aborted (core dumped)

Indeed, after a recent upgrade to gcc 5.4, I regularly need to recompile C++ libraries because of the abi change. I had upgraded wxWidgets, but not wxPython. Having re-emerged wxPython first, matplotlib now builds without errors.

Apologies for the invalid bug report ;)