Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 467454 - =media-gfx/blender-2.64a - /usr/lib/libutil.so: could not read symbols: File in wrong format
Summary: =media-gfx/blender-2.64a - /usr/lib/libutil.so: could not read symbols: File ...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: MIPS Linux
: Normal normal (vote)
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-04-27 08:28 UTC by Bruno d'Arcangeli
Modified: 2013-06-21 13:43 UTC (History)
2 users (show)

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


Attachments
little patch to add /usr/lib32 in place of /usr/lib (file_467454.txt,563 bytes, patch)
2013-04-27 11:30 UTC, Bruno d'Arcangeli
Details | Diff
add #include <cstring> beacause strlen was not declared in this scope error (file_467454.txt,334 bytes, patch)
2013-04-27 11:31 UTC, Bruno d'Arcangeli
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bruno d'Arcangeli 2013-04-27 08:28:41 UTC
Hi,
Compilation of blender-2.64a with two little patch but can't be linked (the blender binary).
This is on my Lemote 8133 laptop with loongson 3a processor. Gentoo was installed with multilib.



Reproducible: Always

Steps to Reproduce:
1. compile blender on loongson 3a
2.
3.
Comment 1 Bruno d'Arcangeli 2013-04-27 11:30:14 UTC
Created attachment 346682 [details, diff]
little patch to add /usr/lib32 in place of /usr/lib
Comment 2 Bruno d'Arcangeli 2013-04-27 11:31:39 UTC
Created attachment 346684 [details, diff]
add #include <cstring> beacause strlen was not declared in this scope error
Comment 3 Bruno d'Arcangeli 2013-04-27 11:58:19 UTC
Portage 2.1.11.62 (default/linux/mips/13.0/mipsel/multilib/n32, gcc-4.7.2, glibc-2.17, 3.6.11-libertin+ mips64)
=================================================================
System uname: Linux-3.6.11-libertin+-mips64-ICT_Loongson-3A_V0.5_FPU_V0.1-with-gentoo-2.2
KiB Mem:     1986848 total,    355072 free
KiB Swap:    4194288 total,   4193648 free
Timestamp of tree: Fri, 26 Apr 2013 15:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.4, 4.7.2-r1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.8 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo 4nykey x-bruno
ACCEPT_KEYWORDS="mips ~mips"
ACCEPT_LICENSE="*"
CBUILD="mips64el-unknown-linux-gnu"
CFLAGS="-O2 -march=loongson3a -mtune=loongson3a -mplt -pipe"
CHOST="mips64el-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
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"
CXXFLAGS="-O2 -march=loongson3a -mtune=loongson3a -mplt -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build y --quiet-fail y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ http://mirrors.linuxant.fr/distfiles.gentoo.org/"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=300"
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="/usr/local/portage/4nykey-read-only /usr/local/portage/bruno"
SYNC="rsync://rsync.fr.gentoo.org/gentoo-portage"
USE="X a52 aac acl alsa berkdb bzip2 cairo cddb cdparanoia cdr cli consolekit cracklib crypt css cups curl cxx dbus dts dvd encode exif extras firefox flac fontconfig gdbm gimp gpm gtk gtk3 gzip iconv icu imlib ipv6 java6 jpeg jpeg2k lame lcms libav lm_sensors lzma matroska mime mips mng modules mp3 mp4 mplayer mudflap multilib ncurses nls nptl ogg opengl openrc pam pcre pdf pmu png policykit qt3support raw readline session smp spell ssl svg tcpd theora threads tiff truetype unicode usb xft xmp zlib zsh-completion" ALSA_CARDS="au1x00" 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="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" CAMERAS="canon" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" SANE_BACKENDS="genesys" USERLAND="GNU" VIDEO_CARDS="fbdev radeon" 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, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, USE_PYTHON
Comment 4 Bruno d'Arcangeli 2013-04-27 12:00:10 UTC
Compilation success if typed manualy (the last line) without the many -L/usr/lib.
After which blender run well :-)
Comment 5 Bruno d'Arcangeli 2013-04-27 12:11:27 UTC
Compile game-engine USE flag because of some more error.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2013-04-27 16:49:03 UTC
Please attach the entire build log to this bug report.
Comment 7 Bruno d'Arcangeli 2013-04-28 08:43:48 UTC
Hi,

Sorry for the build.log. I was unable to add it as attachment because of it's big size.
You can find it here:
http://www.arcangeli.org/build.log
I can't attach it with netsurf web browser (webkit browser and FF doesn't work on lemote for now).
Comment 8 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-04-29 18:11:26 UTC
(In reply to comment #7)
> I was unable to add it as attachment because of it's big size.

You could try to compress it first with xz in the future.

Anyhow, shouldn't matter, it's clear that it doesn't work when linking aganist /usr/lib and works when linking again /usr/lib32.

(In reply to comment #4)
> Compilation success if typed manualy (the last line) without the many
> -L/usr/lib.
> After which blender run well :-)

Just to be sure: Did you remove all the occurences or leave one behind?
Comment 9 Bruno d'Arcangeli 2013-04-30 05:47:02 UTC
I've removed all occurence of -L/usr/lib and keep one -L/usr/lib32.

On MIPS, lib is for o32 ABI, lib32 for n32 and lib64 for n64. I think that in futur, o32 need to be abandoned in profit of n32. But for now, we need to adapt the software...

For comment 5, compiled WITHOUT game-engine...

Thanks for your help.
Comment 10 Julian Ospald 2013-06-21 13:42:02 UTC
blender now uses cmake, tell us if the new build system works for you