So I am having trouble compiling NGSolve from source. I’ve done this before, but there have been some changes. When I follow my usual script, everything seems to work fine until (during compiling)
[ 32%] Building CXX object fem/CMakeFiles/ngfem.dir/hdiv_equations.cpp.o
In file included from /home/walker/ngsuite/ngsolve-src/parallel/parallel_matrices.cpp:9:
/home/walker/ngsuite/ngsolve-src/parallel/../linalg/mumpsinverse.hpp:41:21: error: ‘Complex’ was not declared in this scope
This seems to be connected to this message earlier:
-- Could NOT find LAPACK (missing: LAPACK_DIR)
And this one:
-- Configuring done (11.9s)
CMake Warning at linalg/CMakeLists.txt:3 (add_library):
Cannot generate a safe runtime search path for target ngla because files in
some directories may conflict with libraries in implicit directories:
runtime library [libhwloc.so.15] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
/opt/intel/oneapi/compiler/latest/lib
Some of these libraries may not be found correctly.
This is despite cmake FINDING:
Found /opt/intel/oneapi/mkl/2025.0/lib/libmkl_scalapack_lp64.so
and some others.
I have included all my usual options (that used to work). I don’t know what changed, other than various things being updated.
So, do I need to include an LAPACK_DIR
? Or something?