Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 835094 - =sci-libs/libigl-2.3.0[static-libs]: don't find Eigen/Core during build
Summary: =sci-libs/libigl-2.3.0[static-libs]: don't find Eigen/Core during build
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: 3D Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-13 23:15 UTC by Iade Gesso
Modified: 2023-02-07 12:07 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
My emerge --info output (emerge --info.txt,11.86 KB, text/plain)
2022-03-13 23:16 UTC, Iade Gesso
Details
working ebuild (libigl-2.4.0-r1.ebuild,1.32 KB, text/plain)
2023-02-07 12:07 UTC, Sylvain Papazzoni
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Iade Gesso 2022-03-13 23:15:14 UTC
When I try to emerge the package, I get the following error but eigen-3.4.0 is installed in my system:

emerge =sci-libs/libigl-2.3.0
Calculating dependencies... done!
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) sci-libs/libigl-2.3.0::gentoo
>>> Failed to emerge sci-libs/libigl-2.3.0, Log file:
>>>  '/tmp/portage/sci-libs/libigl-2.3.0/temp/build.log'
>>> Jobs: 0 of 1 complete, 1 failed                 Load avg: 0.53, 0.71, 1.25
 * Package:    sci-libs/libigl-2.3.0
 * Repository: gentoo
 * Maintainer: 3dprint@gentoo.org
 * Upstream:   https://github.com/libigl/libigl/issues
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux static-libs userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
>>> Unpacking source...
>>> Unpacking libigl-2.3.0.tar.gz to /tmp/portage/sci-libs/libigl-2.3.0/work
>>> Source unpacked in /tmp/portage/sci-libs/libigl-2.3.0/work
>>> Preparing source in /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0 ...
 * Source directory (CMAKE_USE_DIR): "/tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0"
 * Build directory  (BUILD_DIR):     "/tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0_build"
>>> Source prepared.
>>> Configuring source in /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0 ...
 * Source directory (CMAKE_USE_DIR): "/tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0"
 * Build directory  (BUILD_DIR):     "/tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0_build"
cmake -C /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DLIBIGL_BUILD_TESTS=OFF -DLIBIGL_BUILD_TUTORIALS=OFF -DLIBIGL_SKIP_DOWNLOAD=ON -DLIBIGL_USE_STATIC_LIBRARY=yes -DLIBIGL_WITH_CGAL=OFF -DLIBIGL_WITH_COMISO=OFF -DLIBIGL_WITH_EMBREE=OFF -DLIBIGL_WITH_MATLAB=OFF -DLIBIGL_WITH_MOSEK=OFF -DLIBIGL_WITH_OPENGL=OFF -DLIBIGL_WITH_OPENGL_GLFW=OFF -DLIBIGL_WITH_OPENGL_GLFW_IMGUI=OFF -DLIBIGL_WITH_PNG=OFF -DLIBIGL_WITH_PREDICATES=OFF -DLIBIGL_WITH_PYTHON=OFF -DLIBIGL_WITH_TETGEN=OFF -DLIBIGL_WITH_TRIANGLE=OFF -DLIBIGL_WITH_XML=OFF -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_TOOLCHAIN_FILE=/tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0_build/gentoo_toolchain.cmake /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0
loading initial cache file /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0_build/gentoo_common_config.cmake
-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is GNU 11.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Creating target: igl::core (igl)
CMake Warning (dev) at cmake/libigl.cmake:570 (export):
  Policy CMP0103 is not set: Multiple export() with same FILE without APPEND
  is not allowed.  Run "cmake --help-policy CMP0103" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

  export() command already specified for the file

    /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0_build/libigl-export.cmake

  Did you miss 'APPEND' keyword?
Call Stack (most recent call first):
  CMakeLists.txt:59 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- <<< Gentoo configuration >>>
Build type      Gentoo
Install path    /usr
Compiler flags:
C               -O2 -pipe -march=native -msse4 -msse4.1 -msse4.2 -mcx16 -fomit-frame-pointer -mfpmath=sse -msahf -w -flto=8 -fPIC
C++             -O2 -pipe -march=native -msse4 -msse4.1 -msse4.2 -mcx16 -fomit-frame-pointer -mfpmath=sse -msahf -w -flto=8 -fPIC
Linker flags:
Executable      -Wl,-O1 -Wl,--as-needed
Module          -Wl,-O1 -Wl,--as-needed
Shared          -Wl,-O1 -Wl,--as-needed

-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0_build
>>> Source configured.
>>> Compiling source in /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0 ...
 * Source directory (CMAKE_USE_DIR): "/tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0"
 * Build directory  (BUILD_DIR):     "/tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0_build"
ninja -v -j8 -l8
[1/421] /usr/bin/x86_64-pc-linux-gnu-g++ -DIGL_STATIC_LIBRARY -isystem /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/cmake/../include -isystem /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/cmake/../external/eigen  -O2 -pipe -march=native -msse4 -msse4.1 -msse4.2 -mcx16 -fomit-frame-pointer -mfpmath=sse -msahf -w -flto=8 -fPIC -fPIC -MD -MT CMakeFiles/igl.dir/include/igl/AtA_cached.cpp.o -MF CMakeFiles/igl.dir/include/igl/AtA_cached.cpp.o.d -o CMakeFiles/igl.dir/include/igl/AtA_cached.cpp.o -c /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/include/igl/AtA_cached.cpp
FAILED: CMakeFiles/igl.dir/include/igl/AtA_cached.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DIGL_STATIC_LIBRARY -isystem /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/cmake/../include -isystem /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/cmake/../external/eigen  -O2 -pipe -march=native -msse4 -msse4.1 -msse4.2 -mcx16 -fomit-frame-pointer -mfpmath=sse -msahf -w -flto=8 -fPIC -fPIC -MD -MT CMakeFiles/igl.dir/include/igl/AtA_cached.cpp.o -MF CMakeFiles/igl.dir/include/igl/AtA_cached.cpp.o.d -o CMakeFiles/igl.dir/include/igl/AtA_cached.cpp.o -c /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/include/igl/AtA_cached.cpp
In file included from /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/include/igl/AtA_cached.cpp:8:
/tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/include/igl/AtA_cached.h:12:10: fatal error: Eigen/Dense: No such file or directory
   12 | #include <Eigen/Dense>
      |          ^~~~~~~~~~~~~
compilation terminated.
[2/421] /usr/bin/x86_64-pc-linux-gnu-g++ -DIGL_STATIC_LIBRARY -isystem /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/cmake/../include -isystem /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/cmake/../external/eigen  -O2 -pipe -march=native -msse4 -msse4.1 -msse4.2 -mcx16 -fomit-frame-pointer -mfpmath=sse -msahf -w -flto=8 -fPIC -fPIC -MD -MT CMakeFiles/igl.dir/include/igl/HalfEdgeIterator.cpp.o -MF CMakeFiles/igl.dir/include/igl/HalfEdgeIterator.cpp.o.d -o CMakeFiles/igl.dir/include/igl/HalfEdgeIterator.cpp.o -c /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/include/igl/HalfEdgeIterator.cpp
FAILED: CMakeFiles/igl.dir/include/igl/HalfEdgeIterator.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DIGL_STATIC_LIBRARY -isystem /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/cmake/../include -isystem /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/cmake/../external/eigen  -O2 -pipe -march=native -msse4 -msse4.1 -msse4.2 -mcx16 -fomit-frame-pointer -mfpmath=sse -msahf -w -flto=8 -fPIC -fPIC -MD -MT CMakeFiles/igl.dir/include/igl/HalfEdgeIterator.cpp.o -MF CMakeFiles/igl.dir/include/igl/HalfEdgeIterator.cpp.o.d -o CMakeFiles/igl.dir/include/igl/HalfEdgeIterator.cpp.o -c /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/include/igl/HalfEdgeIterator.cpp
In file included from /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/include/igl/HalfEdgeIterator.cpp:9:
/tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/include/igl/HalfEdgeIterator.h:11:10: fatal error: Eigen/Core: No such file or directory
   11 | #include <Eigen/Core>
      |          ^~~~~~~~~~~~
compilation terminated.
[3/421] /usr/bin/x86_64-pc-linux-gnu-g++ -DIGL_STATIC_LIBRARY -isystem /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/cmake/../include -isystem /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/cmake/../external/eigen  -O2 -pipe -march=native -msse4 -msse4.1 -msse4.2 -mcx16 -fomit-frame-pointer -mfpmath=sse -msahf -w -flto=8 -fPIC -fPIC -MD -MT CMakeFiles/igl.dir/include/igl/active_set.cpp.o -MF CMakeFiles/igl.dir/include/igl/active_set.cpp.o.d -o CMakeFiles/igl.dir/include/igl/active_set.cpp.o -c /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/include/igl/active_set.cpp
FAILED: CMakeFiles/igl.dir/include/igl/active_set.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DIGL_STATIC_LIBRARY -isystem /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/cmake/../include -isystem /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/cmake/../external/eigen  -O2 -pipe -march=native -msse4 -msse4.1 -msse4.2 -mcx16 -fomit-frame-pointer -mfpmath=sse -msahf -w -flto=8 -fPIC -fPIC -MD -MT CMakeFiles/igl.dir/include/igl/active_set.cpp.o -MF CMakeFiles/igl.dir/include/igl/active_set.cpp.o.d -o CMakeFiles/igl.dir/include/igl/active_set.cpp.o -c /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/include/igl/active_set.cpp
In file included from /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/include/igl/active_set.cpp:8:
/tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/include/igl/active_set.h:13:10: fatal error: Eigen/Core: No such file or directory
   13 | #include <Eigen/Core>
      |          ^~~~~~~~~~~~
compilation terminated.
[4/421] /usr/bin/x86_64-pc-linux-gnu-g++ -DIGL_STATIC_LIBRARY -isystem /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/cmake/../include -isystem /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/cmake/../external/eigen  -O2 -pipe -march=native -msse4 -msse4.1 -msse4.2 -mcx16 -fomit-frame-pointer -mfpmath=sse -msahf -w -flto=8 -fPIC -fPIC -MD -MT CMakeFiles/igl.dir/include/igl/accumarray.cpp.o -MF CMakeFiles/igl.dir/include/igl/accumarray.cpp.o.d -o CMakeFiles/igl.dir/include/igl/accumarray.cpp.o -c /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/include/igl/accumarray.cpp
FAILED: CMakeFiles/igl.dir/include/igl/accumarray.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DIGL_STATIC_LIBRARY -isystem /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/cmake/../include -isystem /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/cmake/../external/eigen  -O2 -pipe -march=native -msse4 -msse4.1 -msse4.2 -mcx16 -fomit-frame-pointer -mfpmath=sse -msahf -w -flto=8 -fPIC -fPIC -MD -MT CMakeFiles/igl.dir/include/igl/accumarray.cpp.o -MF CMakeFiles/igl.dir/include/igl/accumarray.cpp.o.d -o CMakeFiles/igl.dir/include/igl/accumarray.cpp.o -c /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/include/igl/accumarray.cpp
In file included from /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/include/igl/accumarray.cpp:8:
/tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/include/igl/accumarray.h:11:10: fatal error: Eigen/Core: No such file or directory
   11 | #include <Eigen/Core>
      |          ^~~~~~~~~~~~
compilation terminated.
[5/421] /usr/bin/x86_64-pc-linux-gnu-g++ -DIGL_STATIC_LIBRARY -isystem /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/cmake/../include -isystem /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/cmake/../external/eigen  -O2 -pipe -march=native -msse4 -msse4.1 -msse4.2 -mcx16 -fomit-frame-pointer -mfpmath=sse -msahf -w -flto=8 -fPIC -fPIC -MD -MT CMakeFiles/igl.dir/include/igl/AABB.cpp.o -MF CMakeFiles/igl.dir/include/igl/AABB.cpp.o.d -o CMakeFiles/igl.dir/include/igl/AABB.cpp.o -c /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/include/igl/AABB.cpp
FAILED: CMakeFiles/igl.dir/include/igl/AABB.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DIGL_STATIC_LIBRARY -isystem /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/cmake/../include -isystem /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/cmake/../external/eigen  -O2 -pipe -march=native -msse4 -msse4.1 -msse4.2 -mcx16 -fomit-frame-pointer -mfpmath=sse -msahf -w -flto=8 -fPIC -fPIC -MD -MT CMakeFiles/igl.dir/include/igl/AABB.cpp.o -MF CMakeFiles/igl.dir/include/igl/AABB.cpp.o.d -o CMakeFiles/igl.dir/include/igl/AABB.cpp.o -c /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/include/igl/AABB.cpp
In file included from /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/include/igl/AABB.cpp:8:
/tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/include/igl/AABB.h:13:10: fatal error: Eigen/Core: No such file or directory
   13 | #include <Eigen/Core>
      |          ^~~~~~~~~~~~
compilation terminated.
[6/421] /usr/bin/x86_64-pc-linux-gnu-g++ -DIGL_STATIC_LIBRARY -isystem /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/cmake/../include -isystem /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/cmake/../external/eigen  -O2 -pipe -march=native -msse4 -msse4.1 -msse4.2 -mcx16 -fomit-frame-pointer -mfpmath=sse -msahf -w -flto=8 -fPIC -fPIC -MD -MT CMakeFiles/igl.dir/include/igl/EPS.cpp.o -MF CMakeFiles/igl.dir/include/igl/EPS.cpp.o.d -o CMakeFiles/igl.dir/include/igl/EPS.cpp.o -c /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/include/igl/EPS.cpp
[7/421] /usr/bin/x86_64-pc-linux-gnu-g++ -DIGL_STATIC_LIBRARY -isystem /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/cmake/../include -isystem /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/cmake/../external/eigen  -O2 -pipe -march=native -msse4 -msse4.1 -msse4.2 -mcx16 -fomit-frame-pointer -mfpmath=sse -msahf -w -flto=8 -fPIC -fPIC -MD -MT CMakeFiles/igl.dir/include/igl/MshSaver.cpp.o -MF CMakeFiles/igl.dir/include/igl/MshSaver.cpp.o.d -o CMakeFiles/igl.dir/include/igl/MshSaver.cpp.o -c /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/include/igl/MshSaver.cpp
[8/421] /usr/bin/x86_64-pc-linux-gnu-g++ -DIGL_STATIC_LIBRARY -isystem /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/cmake/../include -isystem /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/cmake/../external/eigen  -O2 -pipe -march=native -msse4 -msse4.1 -msse4.2 -mcx16 -fomit-frame-pointer -mfpmath=sse -msahf -w -flto=8 -fPIC -fPIC -MD -MT CMakeFiles/igl.dir/include/igl/MshLoader.cpp.o -MF CMakeFiles/igl.dir/include/igl/MshLoader.cpp.o.d -o CMakeFiles/igl.dir/include/igl/MshLoader.cpp.o -c /tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0/include/igl/MshLoader.cpp
ninja: build stopped: subcommand failed.
 * ERROR: sci-libs/libigl-2.3.0::gentoo failed (compile phase):
 *   ninja -v -j8 -l8 failed
 * 
 * Call stack:
 *     ebuild.sh, line  127:  Called src_compile
 *   environment, line 2096:  Called cmake_src_compile
 *   environment, line  788:  Called cmake_build
 *   environment, line  757:  Called eninja
 *   environment, line 1243:  Called die
 * The specific snippet of code:
 *       "$@" || die "${nonfatal_args[@]}" "${*} failed"
 * 
 * If you need support, post the output of `emerge --info '=sci-libs/libigl-2.3.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sci-libs/libigl-2.3.0::gentoo'`.
 * The complete build log is located at '/tmp/portage/sci-libs/libigl-2.3.0/temp/build.log'.
 * The ebuild environment file is located at '/tmp/portage/sci-libs/libigl-2.3.0/temp/environment'.
 * Working directory: '/tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0_build'
 * S: '/tmp/portage/sci-libs/libigl-2.3.0/work/libigl-2.3.0'

Reproducible: Always

Steps to Reproduce:
1. emerge sci-libs/libigl
2.
3.
Comment 1 Iade Gesso 2022-03-13 23:16:29 UTC
Created attachment 767000 [details]
My emerge --info output
Comment 2 Dennis Lamm gentoo-dev 2022-03-18 16:45:46 UTC
The reason ligigl required eigen 3.3.7, currently in the tree only 3.4 is available. Therefore it would not emerge at the moment. I'll try to find a good solution.
Comment 3 Iade Gesso 2022-03-19 22:40:45 UTC
(In reply to Dennis Lamm from comment #2)
> The reason ligigl required eigen 3.3.7, currently in the tree only 3.4 is
> available. Therefore it would not emerge at the moment. I'll try to find a
> good solution.

Thanks :)
Here the official issue on GitHub: https://github.com/libigl/libigl/issues/1974

Iade
Comment 4 Sylvain Papazzoni 2023-02-07 12:07:36 UTC
Created attachment 850084 [details]
working ebuild

Bug still there.
A working Ebuild attached.