Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Blender compilation error adding symbols DSO
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
sciencegentoo
n00b
n00b


Joined: 08 Feb 2014
Posts: 11

PostPosted: Wed Nov 26, 2014 9:35 pm    Post subject: [SOLVED] Blender compilation error adding symbols DSO Reply with quote

Hi,
I'm having trouble compiling blender. The final messages are:

Code:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: ../../lib/libextern_clew.a(clew.c.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib64/libdl.so: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
source/creator/CMakeFiles/blender.dir/build.make:241: recipe for target 'bin/blender' failed
make[2]: *** [bin/blender] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-gfx/blender-2.72b/work/blender-2.72b_build'
CMakeFiles/Makefile2:6166: recipe for target 'source/creator/CMakeFiles/blender.dir/all' failed
make[1]: *** [source/creator/CMakeFiles/blender.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/media-gfx/blender-2.72b/work/blender-2.72b_build'
Makefile:146: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: media-gfx/blender-2.72b::gentoo failed (compile phase):
 *   emake failed


The output of emerge -pqv '=media-gfx/blender-2.72b::gentoo is:

Code:
!!! Problem resolving dependencies for =media-gfx/blender-2.72b::gentoo

!!! The ebuild selected to satisfy "=media-gfx/blender-2.72b::gentoo" has unmet requirements.
- media-gfx/blender-2.72b::gentoo USE="boost bullet dds elbeem game-engine nls openexr openmp opennl sse sse2 -collada -colorio -cycles -debug -doc -ffmpeg -fftw -jack -jpeg2k -ndof -openal -openimageio -player -redcode -sdl -sndfile -tiff" PYTHON_TARGETS="-python3_4"

  The following REQUIRED_USE flag constraints are unsatisfied:
    python_targets_python3_4

  The above constraints are a subset of the following complete expression:
    python_targets_python3_4 player? ( game-engine ) redcode? ( jpeg2k ffmpeg ) cycles? ( boost openexr tiff ) nls? ( boost ) game-engine? ( boost )

The output of emerge --info '=media-gfx/blender-2.72b::gentoo' is:

Code:
Portage 2.2.8-r2 (default/linux/amd64/13.0/no-multilib, gcc-4.8.3, glibc-2.19-r1, 3.12.20-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.12.20-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_930_@_2.80GHz-with-gentoo-2.2
KiB Mem:    12297868 total,  10607156 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Wed, 26 Nov 2014 13:30:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.2_p53
dev-java/java-config:     2.2.0
dev-lang/perl:            5.18.2-r2
dev-lang/python:          2.7.7, 3.3.5-r1, 3.4.1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
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-r1, 1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo proaudio
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=native -O2 -pipe"
CHOST="x86_64-pc-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="-mtune=native -O2 -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"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LC_ALL="C"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/pro-audio"
USE="acl alsa amd64 berkdb bindist bzip2 cdr cli cracklib crypt cxx dri dvdr fortran gdbm iconv ipv6 jpeg mmx modules ncurses nls nptl openmp pam pcre png readline session sse sse2 ssl tcpd unicode zlib" ABI_X86="64" 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" 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 ublox ubx" INPUT_DEVICES="keyboard mouse evdev" 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_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON


Last edited by sciencegentoo on Sun Jan 04, 2015 4:47 pm; edited 1 time in total
Back to top
View user's profile Send private message
WWWW
Tux's lil' helper
Tux's lil' helper


Joined: 30 Nov 2014
Posts: 143

PostPosted: Sun Nov 30, 2014 8:13 pm    Post subject: Reply with quote

add

PYTHON_TARGETS="python3_4"

to make.conf

bear in mind that other packages might need other python version so include those there as well.
Back to top
View user's profile Send private message
sciencegentoo
n00b
n00b


Joined: 08 Feb 2014
Posts: 11

PostPosted: Thu Dec 11, 2014 12:04 am    Post subject: Reply with quote

I already compiled it with PYTHON_TARGETS="python3_4" .

The problem persists
Back to top
View user's profile Send private message
WWWW
Tux's lil' helper
Tux's lil' helper


Joined: 30 Nov 2014
Posts: 143

PostPosted: Thu Dec 11, 2014 7:41 pm    Post subject: Reply with quote

sciencegentoo wrote:
I already compiled it with PYTHON_TARGETS="python3_4" .

The problem persists


What about revdep-rebuild?

Try this:

Code:

eselect python (pick python 3.4)
emerge portage with [b]python3[/b] USE flag.
python-updater <-- that one
emerge portage (again, just in case)
revdep-rebuild
emerge blender


Oh, and use blender-2.72-r1

I had your same problem with blender and python 3.4 but I forgot exactly it got solved.
Back to top
View user's profile Send private message
sciencegentoo
n00b
n00b


Joined: 08 Feb 2014
Posts: 11

PostPosted: Tue Dec 16, 2014 12:01 am    Post subject: Reply with quote

Code:

eselect python (pick python 3.4)
emerge portage with [b]python3[/b] USE flag.
python-updater <-- that one
emerge portage (again, just in case)
revdep-rebuild
emerge blender


I tried this, and it still fails to compile with the exact same error =(

I'm almost making an arch container just for blender, as it's always painful to compile it on gentoo.
Back to top
View user's profile Send private message
WWWW
Tux's lil' helper
Tux's lil' helper


Joined: 30 Nov 2014
Posts: 143

PostPosted: Tue Dec 16, 2014 3:15 pm    Post subject: Reply with quote

Don't give up yet!

The following snippet gives some clues:

Code:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: ../../lib/libextern_clew.a(clew.c.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib64/libdl.so: error adding symbols: DSO missing from command line


It seems that the error is higher up in the stack.


Code:
libdl.so: error adding symbols: DSO missing from command line


From reading in the webz this means that it's unable to make a dynamic link. So something has been compiled with 'static' USE flag or something. Or perhaps you made strange changes in make.conf half way the building, etc.

The second cule is this one:

Code:
libextern_clew.a


This file is related to CUDA and OPENCL. Perhaps there's something missing the opencl USE flag. I am assuming that you are using nvidia propiertary drivers?

I've installed blender with an nvidia card with no problems, but the difference is that I use a open sauce driver.

I would review all mesa, X, opencl, etc. Specially confusing is that some things now need to be compiled with llvm.
Back to top
View user's profile Send private message
sciencegentoo
n00b
n00b


Joined: 08 Feb 2014
Posts: 11

PostPosted: Fri Dec 26, 2014 1:01 am    Post subject: Reply with quote

Thanks for the reply :)

I recompiled everything with opencl and llvm use flag. Still didn`t work.

I was using fglrx driver. Now I`m using radeon, the open-source one.

It gives the same error as before =(
Back to top
View user's profile Send private message
heiwa
n00b
n00b


Joined: 24 Oct 2012
Posts: 70

PostPosted: Fri Dec 26, 2014 7:22 am    Post subject: Reply with quote

Could you add more lines of context to the compilation error so that
we can see the line used for linking bin/blender?

The error seems to indicate that the command line is missing a "-ldl"
to link against libdl.
Back to top
View user's profile Send private message
sciencegentoo
n00b
n00b


Joined: 08 Feb 2014
Posts: 11

PostPosted: Fri Dec 26, 2014 3:41 pm    Post subject: Reply with quote

Sure, this is a more complete one:

Code:
Scanning dependencies of target blender
make[2]: Leaving directory '/var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b_build'
make -f source/creator/CMakeFiles/blender.dir/build.make source/creator/CMakeFiles/blender.dir/build
make[2]: Entering directory '/var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b_build'
/usr/bin/cmake -E cmake_progress_report /var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b_build/CMakeFiles
/usr/bin/cmake -E cmake_progress_report /var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b_build/CMakeFiles
[100%] [100%] Building C object source/creator/CMakeFiles/blender.dir/creator.c.o
Building C object source/creator/CMakeFiles/blender.dir/buildinfo.c.o
cd /var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b_build/source/creator && /usr/bin/x86_64-pc-linux-gnu-gcc  -DBUILD_CFLAGS="\" -Wall -Wcast-align -Werror=declaration-after-statement -Werror=implicit-function-declaration -Werror=return-type -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -Wno-unknown-pragmas -Wpointer-arith -Wunused-parameter -Wwrite-strings -Wlogical-op -Wundef -Winit-self -Wnonnull -Wmissing-include-dirs -Wno-div-by-zero -Wtype-limits -Wuninitialized -Wredundant-decls -Wno-error=unused-but-set-variable -march=native -O2 -pipe -funsigned-char  -fopenmp  -msse2  -msse -pipe -fPIC -funsigned-char -fno-strict-aliasing\"" -DBUILD_CXXFLAGS="\" -Wredundant-decls -Wall -Wno-invalid-offsetof -Wno-sign-compare -Wlogical-op -Winit-self -Wmissing-include-dirs -Wno-div-by-zero -Wtype-limits -Wuninitialized -Wundef -Wmissing-declarations -march=native -O2 -pipe -funsigned-char  -fopenmp  -msse2  -msse -pipe -fPIC -funsigned-char -fno-strict-aliasing\"" -DBUILD_LINKFLAGS="\" -pthread\"" -DBUILD_PLATFORM=\"Linux\" -DBUILD_SYSTEM=\"CMake\" -DBUILD_TYPE=\"Gentoo\" -DHAVE_STDBOOL_H -DWITH_BINRELOC -DWITH_BUILDINFO -DWITH_BUILDINFO_HEADER -DWITH_FREESTYLE -DWITH_GAMEENGINE -DWITH_LIBMV -DWITH_PYTHON -DWITH_PYTHON_SECURITY -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D__LITTLE_ENDIAN__ -D__MMX__ -D__SSE2__ -D__SSE__  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNDEBUG -Wall -Wcast-align -Werror=declaration-after-statement -Werror=implicit-function-declaration -Werror=return-type -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -Wno-unknown-pragmas -Wpointer-arith -Wunused-parameter -Wwrite-strings -Wlogical-op -Wundef -Winit-self -Wnonnull -Wmissing-include-dirs -Wno-div-by-zero -Wtype-limits -Wuninitialized -Wredundant-decls -Wno-error=unused-but-set-variable -march=native -O2 -pipe -funsigned-char  -fopenmp  -msse2  -msse -pipe -fPIC -funsigned-char -fno-strict-aliasing -I/var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b/intern/guardedalloc -I/var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b/source/blender/blenlib -I/var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b/source/blender/blenkernel -I/var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b/source/blender/blenloader -I/var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b/source/blender/editors/include -I/var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b/source/blender/makesrna -I/var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b/source/blender/imbuf -I/var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b/source/blender/render/extern/include -I/var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b/source/blender/makesdna -I/var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b/source/blender/gpu -I/var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b/source/blender/windowmanager -I/var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b/extern/libmv -I/var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b/source/blender/python -I/var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b/source/gameengine/BlenderRoutines -I/var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b/extern/binreloc/include -I/var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b/source/blender/freestyle -I/var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b_build/source/creator    -o CMakeFiles/blender.dir/creator.c.o -c /var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b/source/creator/creator.c
cd /var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b_build/source/creator && /usr/bin/x86_64-pc-linux-gnu-gcc  -DBUILD_CFLAGS="\" -Wall -Wcast-align -Werror=declaration-after-statement -Werror=implicit-function-declaration -Werror=return-type -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -Wno-unknown-pragmas -Wpointer-arith -Wunused-parameter -Wwrite-strings -Wlogical-op -Wundef -Winit-self -Wnonnull -Wmissing-include-dirs -Wno-div-by-zero -Wtype-limits -Wuninitialized -Wredundant-decls -Wno-error=unused-but-set-variable -march=native -O2 -pipe -funsigned-char  -fopenmp  -msse2  -msse -pipe -fPIC -funsigned-char -fno-strict-aliasing\"" -DBUILD_CXXFLAGS="\" -Wredundant-decls -Wall -Wno-invalid-offsetof -Wno-sign-compare -Wlogical-op -Winit-self -Wmissing-include-dirs -Wno-div-by-zero -Wtype-limits -Wuninitialized -Wundef -Wmissing-declarations -march=native -O2 -pipe -funsigned-char  -fopenmp  -msse2  -msse -pipe -fPIC -funsigned-char -fno-strict-aliasing\"" -DBUILD_LINKFLAGS="\" -pthread\"" -DBUILD_PLATFORM=\"Linux\" -DBUILD_SYSTEM=\"CMake\" -DBUILD_TYPE=\"Gentoo\" -DHAVE_STDBOOL_H -DWITH_BINRELOC -DWITH_BUILDINFO -DWITH_BUILDINFO_HEADER -DWITH_FREESTYLE -DWITH_GAMEENGINE -DWITH_LIBMV -DWITH_PYTHON -DWITH_PYTHON_SECURITY -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D__LITTLE_ENDIAN__ -D__MMX__ -D__SSE2__ -D__SSE__  -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNDEBUG -Wall -Wcast-align -Werror=declaration-after-statement -Werror=implicit-function-declaration -Werror=return-type -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -Wno-unknown-pragmas -Wpointer-arith -Wunused-parameter -Wwrite-strings -Wlogical-op -Wundef -Winit-self -Wnonnull -Wmissing-include-dirs -Wno-div-by-zero -Wtype-limits -Wuninitialized -Wredundant-decls -Wno-error=unused-but-set-variable -march=native -O2 -pipe -funsigned-char  -fopenmp  -msse2  -msse -pipe -fPIC -funsigned-char -fno-strict-aliasing -I/var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b/intern/guardedalloc -I/var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b/source/blender/blenlib -I/var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b/source/blender/blenkernel -I/var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b/source/blender/blenloader -I/var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b/source/blender/editors/include -I/var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b/source/blender/makesrna -I/var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b/source/blender/imbuf -I/var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b/source/blender/render/extern/include -I/var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b/source/blender/makesdna -I/var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b/source/blender/gpu -I/var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b/source/blender/windowmanager -I/var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b/extern/libmv -I/var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b/source/blender/python -I/var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b/source/gameengine/BlenderRoutines -I/var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b/extern/binreloc/include -I/var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b/source/blender/freestyle -I/var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b_build/source/creator    -o CMakeFiles/blender.dir/buildinfo.c.o -c /var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b/source/creator/buildinfo.c
Linking CXX executable ../../bin/blender
cd /var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b_build/source/creator && /usr/bin/cmake -E cmake_link_script CMakeFiles/blender.dir/link.txt --verbose=1
/usr/bin/x86_64-pc-linux-gnu-g++    -Wredundant-decls -Wall -Wno-invalid-offsetof -Wno-sign-compare -Wlogical-op -Winit-self -Wmissing-include-dirs -Wno-div-by-zero -Wtype-limits -Wuninitialized -Wundef -Wmissing-declarations -march=native -O2 -pipe -funsigned-char  -fopenmp  -msse2  -msse -pipe -fPIC -funsigned-char -fno-strict-aliasing   -Wl,-O1 -Wl,--as-needed  -pthread CMakeFiles/blender.dir/creator.c.o CMakeFiles/blender.dir/buildinfo.c.o  -o ../../bin/blender -rdynamic ../../lib/libbf_windowmanager.a ../../lib/libbf_editor_space_api.a ../../lib/libbf_editor_space_action.a ../../lib/libbf_editor_space_buttons.a ../../lib/libbf_editor_space_console.a ../../lib/libbf_editor_space_file.a ../../lib/libbf_editor_space_graph.a ../../lib/libbf_editor_space_image.a ../../lib/libbf_editor_space_info.a ../../lib/libbf_editor_space_logic.a ../../lib/libbf_editor_space_nla.a ../../lib/libbf_editor_space_node.a ../../lib/libbf_editor_space_outliner.a ../../lib/libbf_editor_space_script.a ../../lib/libbf_editor_space_sequencer.a ../../lib/libbf_editor_space_text.a ../../lib/libbf_editor_space_time.a ../../lib/libbf_editor_space_userpref.a ../../lib/libbf_editor_space_view3d.a ../../lib/libbf_editor_space_clip.a ../../lib/libbf_editor_transform.a ../../lib/libbf_editor_util.a ../../lib/libbf_editor_uvedit.a ../../lib/libbf_editor_curve.a ../../lib/libbf_editor_gpencil.a ../../lib/libbf_editor_interface.a ../../lib/libbf_editor_mesh.a ../../lib/libbf_editor_metaball.a ../../lib/libbf_editor_object.a ../../lib/libbf_editor_armature.a ../../lib/libbf_editor_physics.a ../../lib/libbf_editor_render.a ../../lib/libbf_editor_screen.a ../../lib/libbf_editor_sculpt_paint.a ../../lib/libbf_editor_sound.a ../../lib/libbf_editor_animation.a ../../lib/libbf_editor_datafiles.a ../../lib/libbf_editor_mask.a ../../lib/libbf_editor_io.a ../../lib/libbf_render.a ../../lib/libbf_intern_opennl.a ../../lib/libbf_python.a ../../lib/libbf_python_ext.a ../../lib/libbf_python_mathutils.a ../../lib/libbf_python_bmesh.a ../../lib/libbf_freestyle.a ../../lib/libbf_ikplugin.a ../../lib/libbf_modifiers.a ../../lib/libbf_bmesh.a ../../lib/libbf_compositor.a ../../lib/libbf_blenkernel.a ../../lib/libbf_intern_rigidbody.a ../../lib/libbf_nodes.a ../../lib/libbf_rna.a ../../lib/libbf_gpu.a ../../lib/libbf_blenloader.a ../../lib/libbf_imbuf.a ../../lib/libbf_blenlib.a ../../lib/libbf_intern_ghost.a ../../lib/libbf_intern_string.a ../../lib/libbf_avi.a ../../lib/libbf_imbuf_cineon.a ../../lib/libbf_imbuf_openexr.a ../../lib/libbf_imbuf_dds.a ../../lib/libbf_intern_elbeem.a ../../lib/libbf_intern_iksolver.a ../../lib/libbf_intern_memutil.a ../../lib/libbf_intern_guardedalloc.a ../../lib/libge_blen_routines.a ../../lib/libge_converter.a ../../lib/libge_phys_dummy.a ../../lib/libge_phys_bullet.a ../../lib/libbf_intern_smoke.a ../../lib/libextern_minilzo.a ../../lib/libextern_lzma.a ../../lib/libextern_colamd.a ../../lib/libge_logic_ketsji.a ../../lib/libextern_recastnavigation.a ../../lib/libge_logic.a ../../lib/libge_rasterizer.a ../../lib/libge_oglrasterizer.a ../../lib/libge_logic_expressions.a ../../lib/libge_scenegraph.a ../../lib/libge_logic_network.a ../../lib/libge_logic_ngnetwork.a ../../lib/libextern_bullet.a ../../lib/libge_logic_loopbacknetwork.a ../../lib/libbf_intern_moto.a ../../lib/libge_videotex.a ../../lib/libbf_dna.a ../../lib/libbf_blenfont.a ../../lib/libbf_intern_audaspace.a ../../lib/libbf_intern_mikktspace.a ../../lib/libbf_intern_dualcon.a ../../lib/libbf_intern_raskter.a ../../lib/libbf_intern_opencolorio.a ../../lib/libextern_rangetree.a ../../lib/libextern_wcwidth.a ../../lib/libextern_libmv.a ../../lib/libextern_glog.a ../../lib/libextern_ceres.a ../../lib/libextern_binreloc.a ../../lib/libbf_intern_itasc.a ../../lib/libextern_carve.a ../../lib/libextern_xdnd.a ../../lib/libbf_intern_locale.a -lGL -lGLU -lpng -lz -lz -lfreetype -Xlinker -export-dynamic -lpython3.4 -lGLEW -lboost_filesystem-mt -lboost_regex-mt -lboost_system-mt -lboost_thread-mt -lboost_date_time-mt -lboost_locale-mt -ljpeg -lHalf -lIex -lIlmImf -lIlmThread -lImath -lutil -lc -lm -lpthread -lX11 -lXi -lXxf86vm -ldl -ldl ../../lib/libextern_clew.a ../../lib/libextern_cuew.a 
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: ../../lib/libextern_clew.a(clew.c.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib64/libdl.so: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
source/creator/CMakeFiles/blender.dir/build.make:244: recipe for target 'bin/blender' failed
make[2]: *** [bin/blender] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b_build'
CMakeFiles/Makefile2:6312: recipe for target 'source/creator/CMakeFiles/blender.dir/all' failed
make[1]: *** [source/creator/CMakeFiles/blender.dir/all] Error 2
make[1]: Leaving directory '/var/tmp/portage/media-gfx/blender-2.72b-r2/work/blender-2.72b_build'
Makefile:146: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: media-gfx/blender-2.72b-r2::gentoo failed (compile phase):
 *   emake failed
Back to top
View user's profile Send private message
WWWW
Tux's lil' helper
Tux's lil' helper


Joined: 30 Nov 2014
Posts: 143

PostPosted: Mon Dec 29, 2014 6:57 pm    Post subject: Reply with quote

This is an intriguing error, it appears that Blender does succesfully compile:

Code:
/blender-2.72b_build/CMakeFiles
[100%] [100%] Building C object source/creator/CMakeFiles/blender.dir/creator.c.o
Building C object source/creator/CMakeFiles/blender.dir/buildinfo.c.o


But it fails at the very last moment:

Code:

/libextern_xdnd.a ../../lib/libbf_intern_locale.a -lGL -lGLU -lpng -lz -lz -lfreetype -Xlinker -export-dynamic -lpython3.4 -lGLEW -lboost_filesystem-mt -lboost_regex-mt -lboost_system-mt -lboost_thread-mt -lboost_date_time-mt -lboost_locale-mt -ljpeg -lHalf -lIex -lIlmImf -lIlmThread -lImath -lutil -lc -lm -lpthread -lX11 -lXi -lXxf86vm -ldl -ldl ../../lib/libextern_clew.a ../../lib/libextern_cuew.a
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../x86_64-pc-linux-gnu/bin/ld: ../../lib/libextern_clew.a(clew.c.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.3/../../../../lib64/libdl.so: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status


Unfortunately I don't do coding nor do I have intimate knowledge of compiling internals.

There seems to be a chain that has to be properly compiled there:


boost
opencl
xorg
mesa
llvm
blender


I can't recall exactly but there a couple packages that interface with opencl, I came across those when llvm was crashing while clang crashing while needed by xorg/mesa. Wasn't straight forward at first what was needed.

If I were you I'd try to fix this as it points at some other problem that's not properly set up there. Blender runs fine here, as it should in any Gentoo system.

Do you have by any change some custom LDFLAGS??

Is there any out of order glibc/gcc upgrades??

cheers!
Back to top
View user's profile Send private message
sciencegentoo
n00b
n00b


Joined: 08 Feb 2014
Posts: 11

PostPosted: Tue Dec 30, 2014 4:27 pm    Post subject: Reply with quote

Quote:

Do you have by any change some custom LDFLAGS??


Nope.

Quote:

Is there any out of order glibc/gcc upgrades??


How can I check this?

Quote:

The error seems to indicate that the command line is missing a "-ldl"
to link against libdl.


Is this something I can change in the ebuild?
Back to top
View user's profile Send private message
dobromyslov
n00b
n00b


Joined: 04 Jan 2015
Posts: 1

PostPosted: Sun Jan 04, 2015 11:17 am    Post subject: Reply with quote

Solution:

[code]
export LDFLAGS="$LDFLAGS -ldl"
emerge -av blender
[/code]
Back to top
View user's profile Send private message
sciencegentoo
n00b
n00b


Joined: 08 Feb 2014
Posts: 11

PostPosted: Sun Jan 04, 2015 4:47 pm    Post subject: Reply with quote

Quote:

Solution:

Code:
 
export LDFLAGS="$LDFLAGS -ldl"
emerge -av blender



Awesome! Now I have blender :)
Thanks. That solved the problem!
Back to top
View user's profile Send private message
WWWW
Tux's lil' helper
Tux's lil' helper


Joined: 30 Nov 2014
Posts: 143

PostPosted: Wed Jan 07, 2015 5:27 pm    Post subject: Reply with quote

finally!!

It was getting on my nerves already...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum