# emerge -pqv '=media-gfx/blender-2.93.2::gentoo' [ebuild N ] media-gfx/blender-2.93.2 USE="alembic bullet collada color-management cycles dds embree ffmpeg fftw fluid gmp jack jpeg2k man ndof nls oidn openal openexr openimageio openmp opensubdiv openvdb osl pdf potrace pugixml pulseaudio sdl sndfile system-numpy system-python tbb tiff -cuda -debug (-doc) -headless -jemalloc -opencl -standalone -test -valgrind" PYTHON_SINGLE_TARGET="python3_9" # emerge --info '=media-gfx/blender-2.93.2::gentoo' Portage 3.0.28 (python 3.9.7-final-0, default/linux/amd64/17.1/desktop/gnome/systemd, gcc-11.2.0, glibc-2.33-r7, 5.14.11-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-5.14.11-gentoo-x86_64-Intel-R-_Core-TM-_i7-10710U_CPU_@_1.10GHz-with-glibc2.33 KiB Mem: 8148432 total, 5472120 free KiB Swap: 8388604 total, 8322952 free Timestamp of repository gentoo: Wed, 13 Oct 2021 17:00:01 +0000 Head commit of repository gentoo: 82a20a67837c2d8d50e9432d1efe98ab9d9ca1ca sh bash 5.1_p8 ld GNU ld (Gentoo 2.37_p1 p0) 2.37 ccache version 4.4.2 [disabled] app-shells/bash: 5.1_p8::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.34.0-r3::gentoo dev-lang/python: 2.7.18_p13::gentoo, 3.9.7_p1::gentoo, 3.10.0_p1::gentoo dev-lang/rust: 1.55.0::gentoo dev-util/ccache: 4.4.2::gentoo dev-util/cmake: 3.21.3::gentoo sys-apps/baselayout: 2.8::gentoo sys-apps/sandbox: 2.25::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.71-r1::gentoo sys-devel/automake: 1.13.4-r2::gentoo, 1.16.5::gentoo sys-devel/binutils: 2.37_p1::gentoo sys-devel/gcc: 11.2.0::gentoo sys-devel/gcc-config: 2.4::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.14::gentoo (virtual/os-headers) sys-libs/glibc: 2.33-r7::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-metamanifest: yes sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 24 sync-rsync-extra-opts: guru location: /var/lib/layman/guru sync-type: laymansync sync-uri: https://anongit.gentoo.org/git/repo/proj/guru.git masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA google-chrome OPERA-2018 PUEL AnyDesk-TOS geekbench TeamViewer microsoft-edge Vivaldi" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" 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/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.3/ext-active/ /etc/php/apache2-php7.4/ext-active/ /etc/php/apache2-php8.0/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cgi-php8.0/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/php/cli-php8.0/ext-active/ /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="-march=native -O2 -pipe -fomit-frame-pointer" DISTDIR="/var/cache/distfiles" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR" FCFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" GENTOO_MIRRORS="http://mirror.isoc.org.il/pub/gentoo/" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j5" PKGDIR="/var/cache/binpkgs" 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 accessibility acl acpi alsa amd64 archive audit berkdb bluetooth branding brotli bzip2 cairo cdda cdr cli colord crypt cups curl dbus device-mapper dri dts dvd dvdr eds emacs emboss encode evo examples exif experimental extras fam firebird flac fontconfig fortran fuse gcrypt gd gdbm gif git glusterfs gmp gnome gnome-keyring gnome-online-accounts go gpg gphoto2 gpm gssapi gstreamer gtk gtk-doc gui highlight hscolour http http2 iconv icu idn introspection ipv6 iso java jpeg json kafka kde kerberos lcms ldap libglvnd libnotify libsecret libtirpc lmdb lua lvm lz4 lzma mad mng mp3 mp4 mpeg multilib mysql nas nautilus ncurses netlink networkmanager nfs nls nptl nss ntlm odbc ogg opengl openmp pam pango pcap pcre pdf perl plugins png policykit postgres ppds pulseaudio python qml qt5 readline redis samba sasl sdl seccomp smtp snmp sound spell split-usr sqlite ssh ssl startup-notification svg sysprof systemd tcl tcpd threads tiff tk tools tracker truetype udev udisks unicode upower usb utils uuid vala vim-syntax vnc vorbis wayland webp wxwidgets x264 x265 xattr xcb xinerama xml xv xvid yaml zeroconf zip zlib zstd" ABI_X86="64 32" ADA_TARGET="gnat_2019" 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="karbon sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev" KERNEL="linux" L10N="en en-US he ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver scripting-beanshell wiki-publisher scripting-javascript" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27 ruby30" USERLAND="GNU" VIDEO_CARDS="intel i965 iris vmware vesa fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Created attachment 745008 [details] build.log.xz
Sadly I cannot reproduce this issue. Blender 2.93.2 and the live 9999 version build and runs fine with Alembic support for me. I don't know why your build is failing.
See also https://bugs.gentoo.org/818010. It should be noticed that the build system for Blender by default uses ld.gold as the linker. My concern is that the gold linker is not well-maintained now. On the other hand, ld.bfd seems to cause a problem with LTO (https://github.com/InBetweenNames/gentooLTO/issues/381). So my suggestion is to try using ld.lld (sys-devel/lld) as the third option. It might also worth trying another (older) version of binutils than binutils-2.37_p1.
My analysis was probably wrong in the above comment. What I have noticed is that my installation of Alembic (=media-gfx/alembic-1.8.2) links against /usr/lib64/Imath-3/libImath-3_1.so, whereas in the case of failure /usr/lib64/libImath-2_5.so is going to be used: -- Found OpenEXR: /usr/lib64/libHalf-2_5.so;/usr/lib64/libIex-2_5.so;/usr/lib64/libIlmImf-2_5.so;/usr/lib64/libIlmThread-2_5.so;/usr/lib64/libImath-2_5.so So I suspect that this might be caused by the version inconsistency of dev-libs/imath used in the dependencies of Blender, namely between media-libs/openexr and media-gfx/alembic.
(In reply to Tee KOBAYASHI from comment #4) > My analysis was probably wrong in the above comment. > > What I have noticed is that my installation of Alembic > (=media-gfx/alembic-1.8.2) links against /usr/lib64/Imath-3/libImath-3_1.so, > whereas in the case of failure /usr/lib64/libImath-2_5.so is going to be > used: > > -- Found OpenEXR: > /usr/lib64/libHalf-2_5.so;/usr/lib64/libIex-2_5.so;/usr/lib64/libIlmImf-2_5. > so;/usr/lib64/libIlmThread-2_5.so;/usr/lib64/libImath-2_5.so > > So I suspect that this might be caused by the version inconsistency of > dev-libs/imath used in the dependencies of Blender, namely between > media-libs/openexr and media-gfx/alembic. Interesting. I'm guessing it is openexr >= 3.0 that is pulling in dev-libs/imath on your system? Seems like ilmbase also provides the imath libraries and the alembic ebuild can choose either or which leads to issues :/ I wonder if there is any ebuild mechanisms to detect these sorts of things. There is a similar issue but with llvm versions. However I didn't find any way to detect library issues like that in the blender ebuild last time I looked into it.
I'm getting the same build issue: [I] media-gfx/alembic Available versions: 1.8.2^t {examples hdf5 test} Installed versions: 1.8.2^t(22:01:24 16/10/21)(hdf5 -examples -test) Homepage: https://www.alembic.io/ Description: Open framework for storing and sharing scene data [I] media-libs/openexr Available versions: (0) 2.5.6(0/25)^t 2.5.7(0/25)^t (3) (~)3.0.5(3/29)^t (~)3.1.1(3/30)^t {doc examples large-stack static-libs test threads utils ABI_MIPS="n32 n64 o32" ABI_S390="32 64" ABI_X86="32 64 x32" CPU_FLAGS_X86="avx"} Installed versions: 2.5.7(0/25)^t(21:41:59 15/10/21)(-doc -examples -static-libs -test -utils ABI_MIPS="-n32 -n64 -o32" ABI_S390="-32 -64" ABI_X86="32 64 -x32" CPU_FLAGS_X86="avx") 3.1.1(3/30)^t(07:54:19 16/10/21)(-doc -examples -large-stack -static-libs -test -threads -utils CPU_FLAGS_X86="avx") Homepage: https://www.openexr.com/ Description: ILM's OpenEXR high dynamic-range image file format libraries media-gfx/blender Available versions: (2.83) (~)2.83.15^t (~)2.83.16^t (~)2.83.17^t (2.93) (~)2.93.0^t (~)2.93.1^t (~)2.93.2^t (9999) **9999*l^t {abi6-compat abi7-compat alembic +bullet collada (+)color-management cuda (+)cycles +dds debug doc +elbeem +embree (+)ffmpeg (+)fftw +fluid +gmp headless jack jemalloc jpeg2k llvm man ndof nls +oidn openal opencl +openexr (+)openimageio (+)openmp (+)opensubdiv (+)openvdb (+)osl +pdf +potrace +pugixml pulseaudio sdl (+)sndfile standalone +system-numpy +system-python +tbb test (+)tiff valgrind PYTHON_SINGLE_TARGET="python3_10 (+)python3_8 (+)python3_9"} Installed versions: 2.93.2(2.93)^t(02:03:09 11/10/21)(alembic bullet collada color-management cycles dds embree ffmpeg fftw fluid gmp jack jpeg2k nls oidn openal opencl openexr openimageio openmp opensubdiv openvdb osl pdf potrace pugixml pulseaudio sdl sndfile system-numpy system-python tbb tiff -cuda -debug -doc -headless -jemalloc -man -ndof -standalone -test -valgrind PYTHON_SINGLE_TARGET="python3_9") Homepage: https://www.blender.org Description: 3D Creation/Animation/Publishing System [I] dev-libs/imath Available versions: (3) (~)3.0.5-r1(3/28)^t (~)3.1.1(3/29)^t {doc large-stack python static-libs test PYTHON_SINGLE_TARGET="python3_10 python3_8 python3_9"} Installed versions: 3.1.1(3/29)^t(07:53:18 16/10/21)(python -doc -large-stack -static-libs -test PYTHON_SINGLE_TARGET="python3_9 -python3_10 -python3_8") Homepage: https://imath.readthedocs.io Description: Imath basic math package
Alembic prefers the use of Imath-3. So if it's available on the system, it will use it. IlmBase is only used as a fallback, if the newer imath isn't present. This could be used as a workaround to force build against the ilmbase libraries, by temporarily removing imath from the system before building alembic and reinstalling it again afterwards. There could be a possibility to add a USE flag, which, if set will use Imath, and if unset use IlmBase, but this will also need some fiddling on their cmake files, most prominently on the AlembicIlmBase.cmake file and probably the main CMakeLists.txt file to handle the added USE flag.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cae650d89e8ff3ceb61818bc90b216339deff77d commit cae650d89e8ff3ceb61818bc90b216339deff77d Author: Sam James <sam@gentoo.org> AuthorDate: 2021-10-31 06:26:04 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-10-31 06:29:08 +0000 media-gfx/alembic: force use of OpenEXR 2 (ilmbase), not imath for now We want to avoid mismatches within Blender. Closes: https://bugs.gentoo.org/818232 Signed-off-by: Sam James <sam@gentoo.org> .../{alembic-1.8.3.ebuild => alembic-1.8.3-r1.ebuild} | 17 ++++++++--------- profiles/arch/arm/package.use.mask | 4 ++++ profiles/arch/arm64/package.use.mask | 4 ++++ 3 files changed, 16 insertions(+), 9 deletions(-)
Sam (or anyone else), I could patch blender it work with openexr 3 and thus work with the imath library as well. However if I do this, then as I pointed out before, we might run into an issue where the user still has a library mismatch between the libraries. So the alembic library might use ilmbase while blender uses imath. Same thing with llvm. Blender will crash for example if mesa uses a different llvm version than some of the libraries blender pulls in. Therefore I think we would need some kind of mechanism in portage were we can check libraries of dependencies. I'm not too sure if this should be solved with useflags as I think it pollutes the options needlessly. I would rather have it be some kind of ebuild settings so you could for example do something like: MATCHING_SLOT_DEPEND=sys-devel/llvm #Checks that all dependencies are using the same llvm slot library NO_DEPEND=dev-libs/imath #No library can depend on imath until support for openexr3 is in blender. Then is will show up as blocked packages when trying to merge blender is there are any conflicts.
(In reply to Sebastian Parborg from comment #9) > Sam (or anyone else), I could patch blender it work with openexr 3 and thus > work with the imath library as well. > I would avoid this for now. There's at least openvdb, which is an important dependency of blender, that will support openexr-3 only with the newly released 9.0 and the upcoming 8.2 release. We also have an open issue with oiio and openexr-3 on Gentoo.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cdbdfa031ae9572cc3558609adb4eca5e3508216 commit cdbdfa031ae9572cc3558609adb4eca5e3508216 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-02-12 14:27:53 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-02-12 14:27:53 +0000 media-gfx/alembic: flip over to OpenEXR 3 Things are getting complicated with trying to keep Blender on OpenEXR 2. Blender needs to switch as a result, but so do its dependencies. Bug: https://bugs.gentoo.org/818232 Signed-off-by: Sam James <sam@gentoo.org> media-gfx/alembic/alembic-1.8.3-r2.ebuild | 65 +++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+)