Build Failing on Mac OS
Opened this issue · 1 comments
sayonsom commented
Hi, I am trying to build GridDyn on Mac OS Catalina, and I am running into the following issue:
[ 79%] Linking CXX executable griddynMain
Undefined symbols for architecture x86_64:
"_IDADense", referenced from:
idaInterface::initialize(double) in libgridDyn.a(idaInterface.cpp.o)
"_IDAKLU", referenced from:
idaInterface::initialize(double) in libgridDyn.a(idaInterface.cpp.o)
"_IDAKLUReInit", referenced from:
idaInterface::sparseReInit(solverInterface::sparse_reinit_modes) in libgridDyn.a(idaInterface.cpp.o)
"_IDASlsGetNumJacEvals", referenced from:
idaInterface::get(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const in libgridDyn.a(idaInterface.cpp.o)
"_IDASlsSetSparseJacFn", referenced from:
idaInterface::initialize(double) in libgridDyn.a(idaInterface.cpp.o)
"_KINDense", referenced from:
kinsolInterface::initialize(double) in libgridDyn.a(kinsolInterface.cpp.o)
"_KINKLU", referenced from:
kinsolInterface::initialize(double) in libgridDyn.a(kinsolInterface.cpp.o)
"_KINKLUReInit", referenced from:
kinsolInterface::sparseReInit(solverInterface::sparse_reinit_modes) in libgridDyn.a(kinsolInterface.cpp.o)
"_KINKLUSetOrdering", referenced from:
kinsolInterface::initialize(double) in libgridDyn.a(kinsolInterface.cpp.o)
"_KINSlsGetNumJacEvals", referenced from:
kinsolInterface::logSolverStats(int, bool) const in libgridDyn.a(kinsolInterface.cpp.o)
kinsolInterface::get(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) const in libgridDyn.a(kinsolInterface.cpp.o)
"_KINSlsSetSparseJacFn", referenced from:
kinsolInterface::initialize(double) in libgridDyn.a(kinsolInterface.cpp.o)
"_SlsSetToZero", referenced from:
idaJacSparse(double, double, _generic_N_Vector*, _generic_N_Vector*, _generic_N_Vector*, _SlsMat*, void*, _generic_N_Vector*, _generic_N_Vector*, _generic_N_Vector*) in libgridDyn.a(idaInterface.cpp.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [gridDynMain/griddynMain] Error 1
make[1]: *** [gridDynMain/CMakeFiles/griddynMain.dir/all] Error 2
make: *** [all] Error 2
phlptp commented
Those are the calls from Sundials. Could be a version issue with sundials. What Branch are you using? I am in the process of updating all the branches so hopefully after that things should be smoother on the different OS's but we are not quite there yet. you might be able to try the cmake_update branch,