Created attachment 721303 [details] build.log On my system media-gfx/openvdb-8.0.1 fails with [36/40] : && /usr/bin/x86_64-pc-linux-gnu-g++ -march=znver1 -pipe -O2 -Wl,-O1 -Wl,--as-needed openvdb/openvdb/cmd/CMakeFiles/vdb_view.dir/openvdb_view.cc.o openvdb/openvdb/cmd/CMakeFiles/vdb_view.dir/__/viewer/Camera.cc.o openvdb/openvdb/cmd/CMakeFiles/vdb_view.dir/__/viewer/ClipBox.cc.o openvdb/openvdb/cmd/CMakeFiles/vdb_view.dir/__/viewer/Font.cc.o openvdb/openvdb/cmd/CMakeFiles/vdb_view.dir/__/viewer/RenderModules.cc.o openvdb/openvdb/cmd/CMakeFiles/vdb_view.dir/__/viewer/Viewer.cc.o -o openvdb/openvdb/cmd/vdb_view -Wl,-rpath,/home/portage/portage/media-gfx/openvdb-8.0.1/work/openvdb-8.0.1_build/openvdb/openvdb: openvdb/openvdb/libopenvdb.so.8.0.1 /usr/lib64/libjemalloc.so /usr/lib64/libGLU.so /usr/lib/libglfw.so.3.3 /usr/lib64/libboost_iostreams.so.1.76.0 /usr/lib64/libboost_system.so.1.76.0 /usr/lib64/libHalf.so /usr/lib64/libIlmThread.so /usr/lib64/libIex.so /usr/lib64/libImath.so /usr/lib64/libIlmImf.so /usr/lib64/liblog4cplus.so /usr/lib64/libblosc.so /usr/lib64/libz.so /usr/lib64/libtbb.so -pthread /usr/lib64/libGLX.so /usr/lib64/libOpenGL.so && : FAILED: openvdb/openvdb/cmd/vdb_view : && /usr/bin/x86_64-pc-linux-gnu-g++ -march=znver1 -pipe -O2 -Wl,-O1 -Wl,--as-needed openvdb/openvdb/cmd/CMakeFiles/vdb_view.dir/openvdb_view.cc.o openvdb/openvdb/cmd/CMakeFiles/vdb_view.dir/__/viewer/Camera.cc.o openvdb/openvdb/cmd/CMakeFiles/vdb_view.dir/__/viewer/ClipBox.cc.o openvdb/openvdb/cmd/CMakeFiles/vdb_view.dir/__/viewer/Font.cc.o openvdb/openvdb/cmd/CMakeFiles/vdb_view.dir/__/viewer/RenderModules.cc.o openvdb/openvdb/cmd/CMakeFiles/vdb_view.dir/__/viewer/Viewer.cc.o -o openvdb/openvdb/cmd/vdb_view -Wl,-rpath,/home/portage/portage/media-gfx/openvdb-8.0.1/work/openvdb-8.0.1_build/openvdb/openvdb: openvdb/openvdb/libopenvdb.so.8.0.1 /usr/lib64/libjemalloc.so /usr/lib64/libGLU.so /usr/lib/libglfw.so.3.3 /usr/lib64/libboost_iostreams.so.1.76.0 /usr/lib64/libboost_system.so.1.76.0 /usr/lib64/libHalf.so /usr/lib64/libIlmThread.so /usr/lib64/libIex.so /usr/lib64/libImath.so /usr/lib64/libIlmImf.so /usr/lib64/liblog4cplus.so /usr/lib64/libblosc.so /usr/lib64/libz.so /usr/lib64/libtbb.so -pthread /usr/lib64/libGLX.so /usr/lib64/libOpenGL.so && : /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/libglfw.so.3.3: error adding symbols: file in wrong format collect2: error: ld returned 1 exit status This error sounds a bit strange to me, it's a 64bit build trying to link a 32bit lib, while the 64bit version of the same lib is present in /usr/lib64/ file /usr/lib*/libglfw.so.3.3 /usr/lib64/libglfw.so.3.3: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped /usr/lib/libglfw.so.3.3: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped emerge --info Portage 3.0.20 (python 3.9.6-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-11.1.0, glibc-2.33-r1, 5.13.0-gentoo x86_64) ================================================================= System uname: Linux-5.13.0-gentoo-x86_64-AMD_Ryzen_5_1600_Six-Core_Processor-with-glibc2.33 KiB Mem: 16340400 total, 7303932 free KiB Swap: 8393924 total, 8392892 free Timestamp of repository gentoo: Sat, 03 Jul 2021 18:03:25 +0000 Head commit of repository gentoo: 23055a0e434176e6f2dd6d1b77e545775f9c22ce sh bash 5.1_p8 ld ld di GNU (Gentoo 2.36.1 p3) 2.36.1 app-shells/bash: 5.1_p8::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.34.0::gentoo dev-lang/python: 3.9.6::gentoo, 3.10.0_beta3::gentoo dev-lang/rust-bin: 1.53.0::gentoo dev-util/cmake: 3.20.5::gentoo sys-apps/baselayout: 2.7-r3::gentoo sys-apps/openrc: 0.43.3::gentoo sys-apps/sandbox: 2.24::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo sys-devel/automake: 1.13.4-r2::gentoo, 1.16.3-r1::gentoo sys-devel/binutils: 2.36.1-r1::gentoo sys-devel/gcc: 11.1.0-r1::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.12::gentoo (virtual/os-headers) sys-libs/glibc: 2.33-r1::gentoo Repositories: gentoo location: /usr/portage sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo priority: -1000 x-portage location: /usr/local/portage masters: gentoo priority: 0 dotnet location: /var/lib/layman/dotnet sync-type: laymansync sync-uri: https://github.com/gentoo/dotnet.git masters: gentoo priority: 50 kde location: /var/lib/layman/kde sync-type: laymansync sync-uri: git://anongit.gentoo.org/proj/kde.git masters: gentoo priority: 50 pentoo location: /var/lib/layman/pentoo sync-type: laymansync sync-uri: https://github.com/pentoo/pentoo-overlay.git masters: gentoo priority: 50 steam-overlay location: /var/lib/layman/steam-overlay sync-type: laymansync sync-uri: git://github.com/anyc/steam-overlay.git masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="@FREE google-chrome Oracle-BCLA-JavaSE linux-fw-redistributable unRAR fairuse android ValveSteamLicense Spotify freedist Skype-TOS CC-BY-ND-3.0 dropbox MPEG-4 no-source-code AdobeFlash-11.x Plex" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=znver1 -pipe -O2" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /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/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=znver1 -pipe -O2" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps=y --quiet-build=y" 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="-O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs candy 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="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="it_IT.utf8" LC_ALL="it_IT.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="it" MAKEOPTS="-j3" 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="/home/portage" USE="X a52 aac acl acpi activities alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus declarative dri dts dvd dvdr egl elogind emboss encode exif flac fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg kipi kwallet lcms libglvnd libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds qml qt5 readline sdl seccomp semantic-desktop spell split-usr ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vaapi vdpau vorbis wayland widgets wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64 32" ADA_TARGET="gnat_2018" ALSA_CARDS="emu10k1" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_core authn_dbd authn_dbm authn_default authn_file authz_dbm authz_core authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif slotmem_shm so speling status socache_shmcb unique_id unixd userdir usertrack vhost_alias" APACHE2_MPMS="worker" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a 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="it" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby30" SANE_BACKENDS="epson2" USERLAND="GNU" VIDEO_CARDS="radeon r600" 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, INSTALL_MASK, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Created attachment 721333 [details, diff] remove lib/cmake search.patch The 32bit support was added to glfw a few days ago, and looks like openvdb is doing its own thing to find it using OpenVDBGLFW3Setup.cmake (a normal find_package(glfw3) works). Patch seems to work but haven't really checked much.
(In reply to Ionen Wolkens from comment #1) > Created attachment 721333 [details, diff] [details, diff] > remove lib/cmake search.patch > > The 32bit support was added to glfw a few days ago, and looks like openvdb > is doing its own thing to find it using OpenVDBGLFW3Setup.cmake (a normal > find_package(glfw3) works). > > Patch seems to work but haven't really checked much. Looks reasonable to me. CCing DarkDefender and waebbl (who I think has some interaction with openvdb, maybe I'm wrong).
Looks good to me. We could try to replace include(OpenVDBGLFW3Setup) with find_package(glfw3) in openvdb/openvdb/cmd/CMakeLists.txt at the vdb_view target and see if this will work. They only use the version information and it looks like all the added checks in OpenVDBGLFW3Setup.cmake aren't needed for Gentoo. But I haven't tried this yet.
(In reply to Bernd from comment #3) > Looks good to me. > We could try to replace include(OpenVDBGLFW3Setup) with find_package(glfw3) > in openvdb/openvdb/cmd/CMakeLists.txt at the vdb_view target and see if this > will work. It does work and kinda what I wanted to propose at first, but it installs the file: /usr/lib64/cmake/OpenVDB/OpenVDBGLFW3Setup.cmake I imagine something else may eventually use it, and it'll be broken.
(In reply to Ionen Wolkens from comment #4) > (In reply to Bernd from comment #3) > > Looks good to me. > > We could try to replace include(OpenVDBGLFW3Setup) with find_package(glfw3) > > in openvdb/openvdb/cmd/CMakeLists.txt at the vdb_view target and see if this > > will work. > It does work and kinda what I wanted to propose at first, but it installs > the file: > > /usr/lib64/cmake/OpenVDB/OpenVDBGLFW3Setup.cmake > > I imagine something else may eventually use it, and it'll be broken. How about dropping the file in src_prepare and eliminating the install target for it?
Since this is likely to stall otherwise (wasn't really planning to fix this myself) and haven't done research into what might (possibly) need these cmake files, I'll go with the safe fix for now in a bit.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2757616782a8356b55f704e5e98d894c59a964d9 commit 2757616782a8356b55f704e5e98d894c59a964d9 Author: Ionen Wolkens <ionen@gentoo.org> AuthorDate: 2021-07-09 02:53:23 +0000 Commit: Ionen Wolkens <ionen@gentoo.org> CommitDate: 2021-07-09 03:10:11 +0000 media-gfx/openvdb: prevent using lib/ by default for glfw Formerly benign because it'd find nothing and try $(get_libdir) next, but glfw now has multilib support. This simple fix should be safe enough for stable version as well. Closes: https://bugs.gentoo.org/800200 Signed-off-by: Ionen Wolkens <ionen@gentoo.org> media-gfx/openvdb/files/openvdb-8.0.1-glfw-libdir.patch | 12 ++++++++++++ media-gfx/openvdb/openvdb-7.0.0-r1.ebuild | 1 + media-gfx/openvdb/openvdb-7.1.0-r1.ebuild | 1 + media-gfx/openvdb/openvdb-8.0.1.ebuild | 1 + 4 files changed, 15 insertions(+)
*** Bug 801307 has been marked as a duplicate of this bug. ***