I tried to install the skynet code on ubuntu, the corressponding packages are all set. First, i successfully installed the skynet when using the matrix solver Armadillo. Now, i am trying to use sparse MKL, but the problem is occured. I am pretty sure the problem is on MKL, but i don't know how to fix it. Here is the error messages. Many thanks for your kindness and help.
I tried to install the skynet code on ubuntu, the corressponding packages are all set. First, i successfully installed the skynet when using the matrix solver Armadillo. Now, i am trying to use sparse MKL, but the problem is occured. I am pretty sure the problem is on MKL, but i don't know how to fix it. Here is the error messages. Many thanks for your kindness and help.
home/fuhongxue/sky/src/Network/NetworkOutput.hpp:243:10: warning: format not a string literal and no format arguments [-Wformat-security]
243 | fprintf(mLogFile, format, args...);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/fuhongxue/sky/src/Network/NetworkOutput.hpp:247:11: warning: format not a string literal and no format arguments [-Wformat-security]
247 | printf(format, args...);
| ~~~~~~^~~~~~~~~~~~~~~~~
In file included from /home/fuhongxue/sky/src/Network/NetworkOptions.hpp:12,
from /home/fuhongxue/sky/src/EquationsOfState/HelmholtzEOS.hpp:15,
from /home/fuhongxue/sky/tests/AlphaNetwork/AlphaNetwork.cpp:15:
/home/fuhongxue/sky/src/Network/NetworkOutput.hpp: In instantiation of ‘void NetworkOutput::Log(const char*, Args ...) [with Args = {}]’:
/home/fuhongxue/sky/src/EquationsOfState/NeutrinoHistory.hpp:77:67: required from here
/home/fuhongxue/sky/src/Network/NetworkOutput.hpp:243:10: warning: format not a string literal and no format arguments [-Wformat-security]
243 | fprintf(mLogFile, format, args...);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/fuhongxue/sky/src/Network/NetworkOutput.hpp:247:11: warning: format not a string literal and no format arguments [-Wformat-security]
247 | printf(format, args...);
| ~~~~~~^~~~~~~~~~~~~~~~~
[ 88%] Linking CXX executable ReadFFN
[ 88%] Linking CXX executable NetworkOutput
[ 88%] Built target NetworkOutput
[ 88%] Built target ReadFFN
[ 89%] Linking CXX executable movie
[ 89%] Built target movie
/home/fuhongxue/sky/build/CMakeFiles/_SkyNet.dir/SkyNetPYTHON_wrap.cxx: In function ‘PyTypeObject* swig_varlink_type()’:
/home/fuhongxue/sky/build/CMakeFiles/_SkyNet.dir/SkyNetPYTHON_wrap.cxx:63509:7: warning: missing initializer for member ‘_typeobject::tp_vectorcall’ [-Wmissing-field-initializers]
63509 | };
| ^
/home/fuhongxue/sky/build/CMakeFiles/_SkyNet.dir/SkyNetPYTHON_wrap.cxx:63509:7: warning: missing initializer for member ‘_typeobject::tp_print’ [-Wmissing-field-initializers]
In file included from /home/fuhongxue/sky/src/MatrixSolver/Jacobian.hpp:17,
from /home/fuhongxue/sky/src/Reactions/ReactionLibraryBase.hpp:20,
from /home/fuhongxue/sky/build/CMakeFiles/_SkyNet.dir/SkyNetPYTHON_wrap.cxx:3542:
/home/fuhongxue/sky/src/Network/NetworkOutput.hpp: In instantiation of ‘void NetworkOutput::Log(const char*, Args ...) [with Args = {}]’:
/home/fuhongxue/sky/src/EquationsOfState/NeutrinoHistory.hpp:77:67: required from here
/home/fuhongxue/sky/src/Network/NetworkOutput.hpp:243:10: warning: format not a string literal and no format arguments [-Wformat-security]
243 | fprintf(mLogFile, format, args...);
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/fuhongxue/sky/src/Network/NetworkOutput.hpp:247:11: warning: format not a string literal and no format arguments [-Wformat-security]
247 | printf(format, args...);
| ~~~~~~^~~~~~~~~~~~~~~~~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libmkl_core.a(mkl_memory_patched.o): in function `mkl_serv_set_memory_limit':
mkl_memory.c:(.text+0x5d1): undefined reference to `dlopen'
/usr/bin/ld: mkl_memory.c:(.text+0x5ee): undefined reference to `dlsym'
/usr/bin/ld: mkl_memory.c:(.text+0x62f): undefined reference to `dlclose'
/usr/bin/ld: mkl_memory.c:(.text+0x642): undefined reference to `dlsym'
/usr/bin/ld: mkl_memory.c:(.text+0x658): undefined reference to `dlsym'
/usr/bin/ld: mkl_memory.c:(.text+0x73f): undefined reference to `dlerror'
/usr/bin/ld: mkl_memory.c:(.text+0x7a9): undefined reference to `dlopen'
/usr/bin/ld: mkl_memory.c:(.text+0x84d): undefined reference to `dlopen'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libmkl_core.a(mkl_memory_patched.o): in function `mkl_serv_allocate':
mkl_memory.c:(.text+0x1961): undefined reference to `dlopen'
/usr/bin/ld: mkl_memory.c:(.text+0x197e): undefined reference to `dlsym'
/usr/bin/ld: mkl_memory.c:(.text+0x19bf): undefined reference to `dlclose'
/usr/bin/ld: mkl_memory.c:(.text+0x19d2): undefined reference to `dlsym'
/usr/bin/ld: mkl_memory.c:(.text+0x19e8): undefined reference to `dlsym'
/usr/bin/ld: mkl_memory.c:(.text+0x1acf): undefined reference to `dlerror'
/usr/bin/ld: mkl_memory.c:(.text+0x1b39): undefined reference to `dlopen'
/usr/bin/ld: mkl_memory.c:(.text+0x1bdd): undefined reference to `dlopen'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libmkl_core.a(mkl_memory_patched.o): in function `mkl_serv_malloc':
mkl_memory.c:(.text+0x21e0): undefined reference to `dlopen'