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.
Created attachment 346682 [details, diff] little patch to add /usr/lib32 in place of /usr/lib
Created attachment 346684 [details, diff] add #include <cstring> beacause strlen was not declared in this scope error
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
Compilation success if typed manualy (the last line) without the many -L/usr/lib. After which blender run well :-)
Compile game-engine USE flag because of some more error.
Please attach the entire build log to this bug report.
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).
(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?
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.
blender now uses cmake, tell us if the new build system works for you