https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: media-gfx/prusaslicer-2.4.0 fails to compile. Discovered on: amd64 (internal ref: ci) NOTE: If you think this is a GCC-11 related issue, please block bug 732706.
Created attachment 760157 [details] build.log build log and emerge --info
Error(s) that match a know pattern in addition to what has been reported in the summary: -- Could NOT find GLEW (missing: GLEW_INCLUDE_DIRS GLEW_LIBRARIES) Hollowing.cpp:(.text._ZN7openvdb8v9_0abi82io10HalfReaderILb1EfE4readERSiPfjjPNS1_19DelayedLoadMetadataEm[_ZN7openvdb8v9_0abi82io10HalfReaderILb1EfE4readERSiPfjjPNS1_19DelayedLoadMetadataEm]+0xa1): undefined reference to `imath_half_to_float_table' OpenVDBUtils.cpp:(.text+0x16ec): undefined reference to `imath_half_to_float_table' OpenVDBUtils.cpp:(.text._ZNK7openvdb8v9_0abi84tree8RootNodeINS1_12InternalNodeINS3_INS1_8LeafNodeIfLj3EEELj4EEELj5EEEE13writeTopologyERSob[_ZNK7openvdb8v9_0abi84tree8RootNodeINS1_12InternalNodeINS3_INS1_8LeafNodeIfLj3EEELj4EEELj5EEEE13writeTopologyERSob]+0x23b): undefined reference to `imath_half_to_float_table' /usr/bin/vdb_print: error while loading shared libraries: libImath-3_1.so.29: cannot open shared object file: No such file or directory /usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: warning: libImath-3_1.so.29, needed by /usr/lib64/libopenvdb.so, not found (try using -rpath or -rpath-link) collect2: error: ld returned 1 exit status
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6c248e8a5da5507f3bc63fbcbefcf381c413f85 commit c6c248e8a5da5507f3bc63fbcbefcf381c413f85 Author: Dennis Lamm <expeditioneer@gentoo.org> AuthorDate: 2021-12-29 10:32:11 +0000 Commit: Dennis Lamm <expeditioneer@gentoo.org> CommitDate: 2021-12-29 11:05:03 +0000 media-gfx/prusaslicer: dropped GUI useflag Closes: https://bugs.gentoo.org/829874 Signed-off-by: Dennis Lamm <expeditioneer@gentoo.org> Package-Manager: Portage-3.0.28, Repoman-3.0.3 Closes: https://github.com/gentoo/gentoo/pull/23560 Signed-off-by: Dennis Lamm <expeditioneer@gentoo.org> ...er-2.4.0.ebuild => prusaslicer-2.4.0-r1.ebuild} | 32 ++++++---------------- 1 file changed, 9 insertions(+), 23 deletions(-)
* Package: media-gfx/prusaslicer-2.4.0-r1 * Repository: gentoo * Maintainer: 3dprint@gentoo.org * Upstream: https://github.com/prusa3d/PrusaSlicer/issues * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking prusaslicer-2.4.0.tar.gz to /var/tmp/portage/media-gfx/prusaslicer-2.4.0-r1/work >>> Source unpacked in /var/tmp/portage/media-gfx/prusaslicer-2.4.0-r1/work >>> Preparing source in /var/tmp/portage/media-gfx/prusaslicer-2.4.0-r1/work/PrusaSlicer-version_2.4.0 ... * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/media-gfx/prusaslicer-2.4.0-r1/work/PrusaSlicer-version_2.4.0" * Build directory (BUILD_DIR): "/var/tmp/portage/media-gfx/prusaslicer-2.4.0-r1/work/PrusaSlicer-version_2.4.0_build" * Hardcoded definition(s) removed in deps/CMakeLists.txt: * set(CMAKE_BUILD_TYPE Release) * Hardcoded definition(s) removed in CMakeLists.txt: * set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Build type (default Release)" >>> Source prepared. >>> Configuring source in /var/tmp/portage/media-gfx/prusaslicer-2.4.0-r1/work/PrusaSlicer-version_2.4.0 ... * ERROR: media-gfx/prusaslicer-2.4.0-r1::gentoo failed (configure phase): * USE Flag 'gui' not in IUSE for media-gfx/prusaslicer-2.4.0-r1 * * Call stack: * ebuild.sh, line 127: Called src_configure * environment, line 2461: Called use 'gui' * phase-helpers.sh, line 252: Called die * The specific snippet of code: * die "USE Flag '${u}' not in IUSE for ${CATEGORY}/${PF}" *
*** Bug 830252 has been marked as a duplicate of this bug. ***
Still an issue post-commit (see bug 830252).
I experienced this issue today, after upgrading to =media-gfx/openvdb-9.0.0 from 8.2.0-r1. I have posted an article in the forum about what I did to try and get to the bottom of the problem (failed :-( ): https://forums.gentoo.org/viewtopic-p-8688015.html#8688015 A summary of what I found: 1) =dev-libs/imath-3.1.3 places it's files in /usr/lib64/Imath-3 with no links from /usr/lib64. This causes the "not found" problem, as illustrated by ldd /usr/lib64/libopenvdb.so 2) After creating some symbolic links in /usr/lib64, =media-gfx/prusaslicer-2.4.0-r1 fails to build with two errors reported: ....undefined reference to symbol 'imath_half_to_float_table' and ..../usr/lib64/libImath-3_1.so.29: error adding symbols: DSO missing from command line Maybe this will be of help in tracking down the issue. As I said in the forum post, it appears that there may be up to three packages at fault here. For now - =media-gfx/prusaslicer-2.4.0-r1 builds OK if =media-gfx/openvdb-8.2.0-r1 is emerged (rather than 9.0.0).
tinderbox has reproduced this issue with version 2.4.0-r1 - Updating summary.
Things definitely went wrong earlier on: ``` -- Using NLopt library '/usr/lib64/libnlopt.so'. -- Found OpenVDB: /usr/include (found suitable version "9.0.0", minimum required is "5.0") found components: openvdb /usr/bin/vdb_print: error while loading shared libraries: libImath-3_1.so.29: cannot open shared object file: No such file or directory CMake Warning at cmake/modules/OpenVDBUtils.cmake:154 (message): vdb_print returned with status 127 Call Stack (most recent call first): cmake/modules/FindOpenVDB.cmake:317 (OPENVDB_ABI_VERSION_FROM_PRINT) CMakeLists.txt:525 (find_package) CMake Warning at cmake/modules/FindOpenVDB.cmake:324 (message): Unable to determine OpenVDB ABI version from OpenVDB installation. The library major version "9" will be inferred. If this is not correct, use add_definitions(-DOPENVDB_ABI_VERSION_NUMBER=N) Call Stack (most recent call first): CMakeLists.txt:525 (find_package) ```
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=147c21715d8e926e556681cce16139c39e117cec commit 147c21715d8e926e556681cce16139c39e117cec Author: Piotr Karbowski <slashbeast@gentoo.org> AuthorDate: 2022-06-26 20:18:45 +0000 Commit: Piotr Karbowski <slashbeast@gentoo.org> CommitDate: 2022-06-26 20:20:26 +0000 media-gfx/prusaslicer: drop old. Closes: https://bugs.gentoo.org/829874 Closes: https://bugs.gentoo.org/824854 Signed-off-by: Piotr Karbowski <slashbeast@gentoo.org> media-gfx/prusaslicer/prusaslicer-2.4.0-r2.ebuild | 82 ---------------------- media-gfx/prusaslicer/prusaslicer-2.4.1.ebuild | 82 ---------------------- media-gfx/prusaslicer/prusaslicer-2.4.2.ebuild | 82 ---------------------- .../prusaslicer/prusaslicer-2.4.2_p20220506.ebuild | 80 --------------------- 4 files changed, 326 deletions(-)