Hi,
I am trying to compile FreeFem to bypass the libhdf5_serial.so.100 error highlighted here, which occurs when running the version from the .deb
package.
I am following the instructions provided by the documentation, with the only difference being that I am adding --without-hdf5
to the ./configure
options.
When running make
I get the following error:
make[4]: Entering directory '/home/michele/FreeFem-sources/plugin/seq'
eval ./ff-c++ mshmet.cpp -L/home/michele/FreeFem-sources/3rdparty/lib -lmshmet -I/home/michele/FreeFem-sources/3rdparty/include -L/home/michele/FreeFem-sources/3rdparty/lib -lMesh -I/home/michele/FreeFem-sources/3rdparty/include/libMesh
eval ./ff-c++ SuperLu.cpp -lsuperlu -lblas -DWITH_fc -L/usr/lib/gcc/x86_64-linux-gnu/9 -L/usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/9/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/9/../../.. -lgfortran -lm -lquadmath -DAdd_
eval ./ff-c++ aniso.cpp -L/home/michele/FreeFem-sources/3rdparty/lib -lmshmet -I/home/michele/FreeFem-sources/3rdparty/include -L/home/michele/FreeFem-sources/3rdparty/lib -lMesh -I/home/michele/FreeFem-sources/3rdparty/include/libMesh
g++ -c -fPIC '-I./include' '-I/home/michele/FreeFem-sources/3rdparty/include' '-I/home/michele/FreeFem-sources/3rdparty/include/libMesh' -g -DNDEBUG -O3 -mmmx -mavx -std=c++14 -DBAMG_LONG_LONG -DNCHECKPTR -fPIC -I/usr/include/suitesparse 'mshmet.cpp'
g++ -c -fPIC '-I./include' '-DWITH_fc' '-DAdd_' -g -DNDEBUG -O3 -mmmx -mavx -std=c++14 -DBAMG_LONG_LONG -DNCHECKPTR -fPIC -I/usr/include/suitesparse 'SuperLu.cpp'
g++ -c -fPIC '-I./include' '-I/home/michele/FreeFem-sources/3rdparty/include' '-I/home/michele/FreeFem-sources/3rdparty/include/libMesh' -g -DNDEBUG -O3 -mmmx -mavx -std=c++14 -DBAMG_LONG_LONG -DNCHECKPTR -fPIC -I/usr/include/suitesparse 'aniso.cpp'
eval ./ff-c++ gsl.cpp -L/usr/lib/x86_64-linux-gnu -lgsl -lgslcblas -lm -I/usr/include
g++ -c -fPIC '-I./include' '-I/usr/include' -g -DNDEBUG -O3 -mmmx -mavx -std=c++14 -DBAMG_LONG_LONG -DNCHECKPTR -fPIC -I/usr/include/suitesparse 'gsl.cpp'
SuperLu.cpp:29:10: fatal error: slu_ddefs.h: No such file or directory
29 | #include "slu_ddefs.h"
| ^~~~~~~~~~~~~
compilation terminated.
make[4]: *** [Makefile:902: SuperLu.so] Error 1
I tried to debug it to no avail. According to StackOverflow, that’s because of a version mismatch between gcc and g++, but I have updated both to the same version.
Any idea on how I could solve/bypass this issue?
OS: Ubuntu 20.04, gcc and g++ 11.1.0