Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 492276 - =dev-python/matplotlib-1.3.0: build fail on MIPS, due to unrecognized library format
Summary: =dev-python/matplotlib-1.3.0: build fail on MIPS, due to unrecognized library...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: MIPS Linux
: Normal normal (vote)
Assignee: MIPS Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-22 08:37 UTC by Yixun Lan
Modified: 2015-03-20 12:35 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
full build log (build.log.xz,24.89 KB, application/x-xz)
2013-11-22 08:38 UTC, Yixun Lan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yixun Lan archtester gentoo-dev 2013-11-22 08:37:47 UTC
mips64el-unknown-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,--as-needed -O2 -march=loongs  on2f -Wa,-mfix-loongson2f-nop -pipe -fno-strict-aliasing /var/tmp/portage/dev-python/matp  lotlib-1.3.0/work/matplotlib-1.3.0-python2_7/build/temp.linux-mips64-2.7/src/ft2font.o /v  ar/tmp/portage/dev-python/matplotlib-1.3.0/work/matplotlib-1.3.0-python2_7/build/temp.lin  ux-mips64-2.7/src/mplutils.o /var/tmp/portage/dev-python/matplotlib-1.3.0/work/matplotlib  -1.3.0-python2_7/build/temp.linux-mips64-2.7/CXX/IndirectPythonInterface.o /var/tmp/porta  ge/dev-python/matplotlib-1.3.0/work/matplotlib-1.3.0-python2_7/build/temp.linux-mips64-2.  7/CXX/cxxsupport.o /var/tmp/portage/dev-python/matplotlib-1.3.0/work/matplotlib-1.3.0-pyt  hon2_7/build/temp.linux-mips64-2.7/CXX/cxx_extensions.o /var/tmp/portage/dev-python/matpl  otlib-1.3.0/work/matplotlib-1.3.0-python2_7/build/temp.linux-mips64-2.7/CXX/cxxextensions  .o -L/usr/lib -L/usr/lib64 -L/usr/lib32 -lfreetype -lstdc++ -lm -lpython2.7 -o /var/tmp/p  ortage/dev-python/matplotlib-1.3.0/work/matplotlib-1.3.0-python2_7/build/build/lib/matplo  tlib/ft2font.so 
  /usr/lib/libm.so: could not read symbols: File in wrong format
  collect2: error: ld returned 1 exit status
  error: command 'mips64el-unknown-linux-gnu-g++' failed with exit status 1
   * ERROR: dev-python/matplotlib-1.3.0::gentoo failed (compile phase):
   *   (no error message)
   * 
   * Call stack:
   *     ebuild.sh, line   93:  Called src_compile
   *   environment, line 4129:  Called distutils-r1_src_compile
   *   environment, line 1299:  Called _distutils-r1_run_foreach_impl 'python_compile'
   *   environment, line  301:  Called python_parallel_foreach_impl 'distutils-r1_run_phase  ' 'python_compile'


Reproducible: Always
Comment 1 Yixun Lan archtester gentoo-dev 2013-11-22 08:38:27 UTC
Created attachment 363784 [details]
full build log
Comment 2 Yixun Lan archtester gentoo-dev 2013-11-22 08:40:20 UTC
Portage 2.2.7 (default/linux/mips/13.0/mipsel/multilib/n32, gcc-4.8.1, glibc-2.17, 3.12.0 mips64)
=================================================================
System uname: Linux-3.12.0-mips64-ICT_Loongson-2_V0.3_FPU_V0.1-with-gentoo-2.2
KiB Mem:     1031456 total,     17376 free
KiB Swap:     524272 total,    440448 free
Timestamp of tree: Fri, 01 Nov 2013 08:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5-r4, 3.1.5, 3.2.5-r3, 3.3.2-r2
dev-util/cmake:           2.8.12
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.4, 1.13.4, 1.14
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.6.3, 4.8.1-r1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.11 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo yeeloong enlightenment-dlan dlan
ACCEPT_KEYWORDS="mips ~mips"
ACCEPT_LICENSE="* -@EULA"
CBUILD="mips64el-unknown-linux-gnu"
CFLAGS="-O2 -march=loongson2f -Wa,-mfix-loongson2f-nop -pipe"
CHOST="mips64el-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /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"
CXXFLAGS="-O2 -march=loongson2f -Wa,-mfix-loongson2f-nop -pipe"
DISTDIR="/mnt/test/home/gentoo/locals"
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"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.163.com/gentoo http://mirrors.xmu.edu.cn/gentoo http://mirrors.stuhome.net/gentoo/ http://gentoo.mirrors.hoobly.com/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3 -l3"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/yeeloong /var/lib/layman/enlightenment-dlan /var/lib/layman/dlan"
USE="X acl alsa artworkextra avahi berkdb bindist bzip2 cairo cli consolekit cracklib crypt cups cxx dbus exif ffmpeg flac gdbm gdu glchess gtk gtk3 gudev hwdb iconv id3tag ipv6 jpeg latex lcms libsamplerate lock math midi mips modules mp3 mudflap multilib ncurses nls nptl openxml ots pam pcre pic png policykit python readline session soundtouch spell ssl startup-notification tcpd threads thunar tiff twolame udev udisks unicode vamp vorbis wmf wordperfect zlib" ABI_MIPS="n32" ALSA_CARDS="au1x00" 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" 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 keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 3 Markos Chandras (RETIRED) gentoo-dev 2013-11-24 13:05:24 UTC
I can't reproduce it on default/linux/mips/13.0/n32 profile
Comment 4 Markos Chandras (RETIRED) gentoo-dev 2013-11-24 13:33:48 UTC
The problem appears to be this

-L/usr/lib -L/usr/lib64 -L/usr/lib32

where all 3 library paths are being searched and given a library is found in /usr/lib it the one that is being used (incorrectly).

I am going to compare your build.log with mine and see what's the difference
Comment 5 Markos Chandras (RETIRED) gentoo-dev 2013-11-24 14:18:06 UTC
I can't reproduce it because i have no libm on /usr/lib. So the bug seems valid
Comment 6 Markos Chandras (RETIRED) gentoo-dev 2013-12-22 11:13:55 UTC
I wonder if the wrap_setup() function is doping something funky. python@ ideas?
Comment 7 Justin Lecher (RETIRED) gentoo-dev 2015-03-20 12:35:06 UTC
Please reopen if this problem still exists with version 1.4