Recently, I tried to update my NGSolve build. I did git, etc. I then go to the build directory to run “make”. It goes for a while without problems, but then finally gives me this error about invalid MKL_LINK:
– Found Netgen: /home/walker/ngsuite/ngsolve-install/lib/cmake/netgen
– MAX_SYS_DIM = 3
– Upgrade to CMake version 3.25.2 or later for native Intel(R) oneAPI DPC++/C++ Compiler support. You are running version 3.22.1.
– MKL_ARCH: intel64
CMake Error at /usr/local/lib/cmake/mkl-2023.2.0/MKLConfig.cmake:103 (message):
Invalid MKL_LINK sdl
, options are: static dynamic
Call Stack (most recent call first):
/usr/local/lib/cmake/mkl-2023.2.0/MKLConfig.cmake:172 (mkl_message)
/usr/local/lib/cmake/mkl-2023.2.0/MKLConfig.cmake:318 (define_param)
cmake/cmake_modules/FindMKL.cmake:36 (find_package)
CMakeLists.txt:253 (find_package)
– Configuring incomplete, errors occurred!
See also “/home/walker/ngsuite/ngsolve-build/ngsolve/CMakeFiles/CMakeOutput.log”.
make[2]: *** [CMakeFiles/ngsolve.dir/build.make:107: dependencies/src/ngsolve-stamp/ngsolve-configure] Error 1
make[1]: *** [CMakeFiles/Makefile2:283: CMakeFiles/ngsolve.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
Supposedly my MKL is up to date, but maybe that needs to be re-installed. Could there be any other issue?
I think I got this figured out, but now I am having trouble with a fresh install.
After downloading the source, etc, when I run the cmake command (before building/compiling), I get this message about not finding Python3:
Configure Netgen from submodule…
Checking for write permissions in install directory…
CMake Error at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find Python3 (missing: Development.Module)
Call Stack (most recent call first):
/usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.22/Modules/FindPython/Support.cmake:3180 (find_package_handle_standard_args)
/usr/share/cmake-3.22/Modules/FindPython3.cmake:490 (include)
CMakeLists.txt:89 (find_package)
– Configuring incomplete, errors occurred!
See also “/home/walker/ngsuite/ngsolve-build/netgen/CMakeFiles/CMakeOutput.log”.
Was there some big update that uses a newer Python3?
I am still having trouble with this. If I start fresh, and I can get the compiling to work until a certain point. It can’t find MUMPS for instance.
But if I rerun cmake, it cannot find Python3 now. When I first run cmake (fresh) everything is fine. Is there something new with the build? I’m using cmake ver 3.22.1
Ok, I have got it all working. But something should be updated on the website for compiling from sources.
In order to use MKL, I had to include this:
-DMKL_LINK=dynamic
as a flag for cmake
. But there is no mention of this in the cmake flags listed on the website. I think this must be new. Someone please add this.