-
Notifications
You must be signed in to change notification settings - Fork 7
Closed
Labels
Description
I encountered cmake errors when installing on WSL. My host OS is Windows 11, and the WSL distro is Ubuntu 22.04. I'm not sure whether the issue has to do with my environment or the version of sundials that I installed
cmake output
itaylor@ITAYLOR-40218S:~/projects/scidac-oe/gridkit/build$ cmake -DCMAKE_INSTALL_PREFIX=/home/itaylor/projects/scidac-oe/gridkit/inst -DSUNDIALS_DIR=/home/itaylor/projects/scidac-oe/sundials/inst ../GridKit/
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- SUNDIALS configuration found: /home/itaylor/projects/scidac-oe/sundials/inst/lib/cmake/sundials/SUNDIALSConfig.cmake
-- Found Suitesparse libraries in: /usr/lib/x86_64-linux-gnu
-- Found Suitesparse include: SUITESPARSE_INCLUDE_DIR-NOTFOUND
-- Found suitesparse internal library amd
-- Found suitesparse internal library colamd
-- Found suitesparse internal library klu
-- Found suitesparse internal library suitesparseconfig
-- Configuring done
CMake Error at cmake/GridkitAddLibrary.cmake:62 (add_library):
Target "solvers_dyn_shared" links to target "SUNDIALS::sunlinsolklu" but
the target was not found. Perhaps a find_package() call is missing for an
IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
src/Solver/Dynamic/CMakeLists.txt:63 (gridkit_add_library)
CMake Error at examples/DistributedGeneratorTest/CMakeLists.txt:5 (add_executable):
Target "dgtest" links to target "SUNDIALS::sunlinsolklu" but the target was
not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
CMake Error at examples/AdjointSensitivity/CMakeLists.txt:63 (add_executable):
Target "adjoint" links to target "SUNDIALS::sunlinsolklu" but the target
was not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
CMake Error at examples/RLCircuit/CMakeLists.txt:5 (add_executable):
Target "rlcircuit" links to target "SUNDIALS::sunlinsolklu" but the target
was not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
CMake Error at examples/Microgrid/CMakeLists.txt:5 (add_executable):
Target "microgrid" links to target "SUNDIALS::sunlinsolklu" but the target
was not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?
CMake Error at examples/ScaleMicrogrid/CMakeLists.txt:5 (add_executable):
Target "scalemicrogrid" links to target "SUNDIALS::sunlinsolklu" but the
target was not found. Perhaps a find_package() call is missing for an
IMPORTED target, or an ALIAS target is missing?
CMake Error at cmake/GridkitAddLibrary.cmake:45 (add_library):
Target "solvers_dyn_obj_shared" links to target "SUNDIALS::sunlinsolklu"
but the target was not found. Perhaps a find_package() call is missing for
an IMPORTED target, or an ALIAS target is missing?
Call Stack (most recent call first):
src/Solver/Dynamic/CMakeLists.txt:63 (gridkit_add_library)
-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.
Software and dependency information
GridKit: develop branch, commit 129cac4
Sundials: version 7.2.1
Suitesparse: version 5.10.1, installed via apt install libsuitesparse-dev
Ipopt: version 3.11.9, installed via apt install coinor-libipopt-dev
LLVM: version 15.0.7, installed via apt install llvm-15-dev
cmake: version 3.22.1, installed via apt install cmake
C++ compiler: g++ version 11.4, installed via apt install build-essentials