Unit tests in testModules fail
Hi, I had some troubles when I tried to compile CORISKA 8. "testModules" didn't build anymore with the last master branch.
I have these messages at the end of my make build and can't create the testModules binary :
[100%] Linking CXX executable ../../bin/testModules
/usr/bin/ld : /home/mcarrere/.conan/data/cubicinterpolation/0.1.4/_/_/package/0e3e143cffaaf6beb64ceb441f7a62dbdbb98464/lib/libCubicInterpolation.a(BicubicSplines.cxx.o) : dans la fonction « cubic_splines::BicubicSplines<double>::StorageData cubic_splines::load<cubic_splines::BicubicSplines<double>, cubic_splines::BicubicSplines<double>::StorageData>(boost::filesystem::path, boost::filesystem::path) » :
BicubicSplines.cxx:(.text._ZN13cubic_splines4loadINS_14BicubicSplinesIdEENS2_11StorageDataEEET0_N5boost10filesystem4pathES7_[_ZN13cubic_splines4loadINS_14BicubicSplinesIdEENS2_11StorageDataEEET0_N5boost10filesystem4pathES7_]+0x6a) : référence indéfinie vers « boost::filesystem::path::append_v3(boost::filesystem::path const&) »
/usr/bin/ld : BicubicSplines.cxx:(.text._ZN13cubic_splines4loadINS_14BicubicSplinesIdEENS2_11StorageDataEEET0_N5boost10filesystem4pathES7_[_ZN13cubic_splines4loadINS_14BicubicSplinesIdEENS2_11StorageDataEEET0_N5boost10filesystem4pathES7_]+0xd9) : référence indéfinie vers « boost::filesystem::path::append_v3(boost::filesystem::path const&) »
/usr/bin/ld : /home/mcarrere/.conan/data/cubicinterpolation/0.1.4/_/_/package/0e3e143cffaaf6beb64ceb441f7a62dbdbb98464/lib/libCubicInterpolation.a(BicubicSplines.cxx.o) : dans la fonction « bool cubic_splines::save<cubic_splines::BicubicSplines<double>::StorageData>(cubic_splines::BicubicSplines<double>::StorageData const&, boost::filesystem::path, boost::filesystem::path) » :
BicubicSplines.cxx:(.text._ZN13cubic_splines4saveINS_14BicubicSplinesIdE11StorageDataEEEbRKT_N5boost10filesystem4pathES9_[_ZN13cubic_splines4saveINS_14BicubicSplinesIdE11StorageDataEEEbRKT_N5boost10filesystem4pathES9_]+0x62) : référence indéfinie vers « boost::filesystem::path::append_v3(boost::filesystem::path const&) »
/usr/bin/ld : BicubicSplines.cxx:(.text._ZN13cubic_splines4saveINS_14BicubicSplinesIdE11StorageDataEEEbRKT_N5boost10filesystem4pathES9_[_ZN13cubic_splines4saveINS_14BicubicSplinesIdE11StorageDataEEEbRKT_N5boost10filesystem4pathES9_]+0xc4) : référence indéfinie vers « boost::filesystem::path::append_v3(boost::filesystem::path const&) »
/usr/bin/ld : /home/mcarrere/.conan/data/cubicinterpolation/0.1.4/_/_/package/0e3e143cffaaf6beb64ceb441f7a62dbdbb98464/lib/libCubicInterpolation.a(BicubicSplines.cxx.o) : dans la fonction « cubic_splines::BicubicSplines<float>::StorageData cubic_splines::load<cubic_splines::BicubicSplines<float>, cubic_splines::BicubicSplines<float>::StorageData>(boost::filesystem::path, boost::filesystem::path) » :
BicubicSplines.cxx:(.text._ZN13cubic_splines4loadINS_14BicubicSplinesIfEENS2_11StorageDataEEET0_N5boost10filesystem4pathES7_[_ZN13cubic_splines4loadINS_14BicubicSplinesIfEENS2_11StorageDataEEET0_N5boost10filesystem4pathES7_]+0x6a) : référence indéfinie vers « boost::filesystem::path::append_v3(boost::filesystem::path const&) »
/usr/bin/ld : /home/mcarrere/.conan/data/cubicinterpolation/0.1.4/_/_/package/0e3e143cffaaf6beb64ceb441f7a62dbdbb98464/lib/libCubicInterpolation.a(BicubicSplines.cxx.o):BicubicSplines.cxx:(.text._ZN13cubic_splines4loadINS_14BicubicSplinesIfEENS2_11StorageDataEEET0_N5boost10filesystem4pathES7_[_ZN13cubic_splines4loadINS_14BicubicSplinesIfEENS2_11StorageDataEEET0_N5boost10filesystem4pathES7_]+0xdc) : encore plus de références indéfinies suivent vers « boost::filesystem::path::append_v3(boost::filesystem::path const&) »
collect2: error: ld returned 1 exit status
make[2]: *** [tests/modules/CMakeFiles/testModules.dir/build.make:316 : bin/testModules] Erreur 1
make[1]: *** [CMakeFiles/Makefile2:1147 : tests/modules/CMakeFiles/testModules.dir/all] Erreur 2
make: *** [Makefile:141 : all] Erreur 2
By default the boost version in the conan file on the master branch is the 1.76.0.
There is a link between the cubicinterpolation repository and the boost version. I tried the 1.78 version for boost on the conan file and it's work now. But there is still this problem on testMedia : Unit tests in testMagneticField fail
update : Unfortunately it doesn't work online but in local on 2 laptop yes (Ubuntu 20), there is something else
Edited by Matthieu Carrere