Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Failing on Mac OS #55

Open
sayonsom opened this issue Dec 24, 2019 · 1 comment
Open

Build Failing on Mac OS #55

sayonsom opened this issue Dec 24, 2019 · 1 comment

Comments

@sayonsom
Copy link

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
Copy link
Collaborator

phlptp commented Dec 27, 2019

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,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants