https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: sci-libs/ViSP-3.5.0 fails to compile. Discovered on: amd64 (internal ref: lto_tinderbox) System: LTO-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#LTO) Info about the issue: https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Created attachment 888136 [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 Atlas (missing: Atlas_CBLAS_INCLUDE_DIR Atlas_CLAPACK_INCLUDE_DIR Atlas_CBLAS_LIBRARY Atlas_BLAS_LIBRARY Atlas_LAPACK_LIBRARY) -- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) -- Could NOT find FTIITSDK (missing: FTIITSDK_FT_LIBRARY FTIITSDK_COMMUNICATION_LIBRARY FTIITSDK_INCLUDE_DIR) -- Could NOT find JPEG (missing: JPEG_LIBRARY JPEG_INCLUDE_DIR) -- Could NOT find MKL (missing: MKL_LIBRARIES MKL_INCLUDE_DIRS MKL_INTERFACE_LIBRARY MKL_SEQUENTIAL_LAYER_LIBRARY MKL_CORE_LIBRARY) -- Could not find OpenBLAS include. Turning OpenBLAS_FOUND off -- Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off FAILED: lib/libvisp_core.so.3.5.0 ModuleNotFoundError: No module named 'numpy' /var/tmp/portage/sci-libs/ViSP-3.5.0/work/visp-3.5.0/modules/core/src/math/matrix/vpMatrix.cpp:92:20: error: type of ‘dsyev_’ does not match original declaration [-Werror=lto-type-mismatch]
This is actually caused by it automagically detecting lapack, and if no lapack is available, building a bundled copy. The error comes from the bundled copy of clapack.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6bf220c7b3f0fec4f6bed074774b26392f1d62e commit c6bf220c7b3f0fec4f6bed074774b26392f1d62e Author: Eli Schwartz <eschwartz@gentoo.org> AuthorDate: 2024-08-09 18:24:36 +0000 Commit: Eli Schwartz <eschwartz@gentoo.org> CommitDate: 2024-08-09 18:26:55 +0000 sci-libs/ViSP: enforce system dependency on lapack It will build against a system lapack if one is installed. If it isn't installed at build time, it includes its own copy of clapack, which fails with LTO type errors. Closes: https://bugs.gentoo.org/927486 Signed-off-by: Eli Schwartz <eschwartz@gentoo.org> sci-libs/ViSP/{ViSP-3.5.0.ebuild => ViSP-3.5.0-r1.ebuild} | 4 ++++ 1 file changed, 4 insertions(+)