Opened 9 years ago
Closed 4 years ago
#3896 closed defect (wontfix)
Cannot build Cpp runtime on OS X
Reported by: | Henning Kiel | Owned by: | somebody |
---|---|---|---|
Priority: | high | Milestone: | Future |
Component: | Cpp Run-time | Version: | v1.10.0-dev-nightly |
Keywords: | Cc: |
Description
When I configure OMCompiler with --with-cppruntime, configuring cpp runtime fails because it does not find sundials (which I would expect to be built beforehand):
[...] -- A library with LAPACK API found. -- Lapack Libraries -- /System/Library/Frameworks/Accelerate.framework/System/Library/Frameworks/Accelerate.framework CMake Error at CMakeLists.txt:493 (MESSAGE): Could not find Sundials, specify environment variable SUNDIALS_ROOT -- Configuring incomplete, errors occurred! See also "/Users/x/src/OpenModelica/OMCompiler/SimulationRuntime/cpp/Build_dynamic/CMakeFiles/CMakeOutput.log". gmake[4]: Entering directory '/Users/x/src/OpenModelica/OMCompiler/SimulationRuntime/cpp/Build_dynamic' gmake[4]: *** No targets specified and no makefile found. Stop. gmake[4]: Leaving directory '/Users/x/src/OpenModelica/OMCompiler/SimulationRuntime/cpp/Build_dynamic'
However, when I installed sundials on the system (via macports), I get the following error when sundials is linking:
[ 3%] Linking C shared library libsundials_arkode.dylib cd /Users/x/src/OpenModelica/OMCompiler/3rdParty/sundials/build/src/arkode && /opt/local/bin/cmake -E cmake_link_script CMakeFiles/sundials_arkode_shared.dir/link.txt --verbose=1 /opt/local/bin/clang -lm -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -Wl,-undefined -Wl,dynamic_lookup -compatibility_version 1.0.0 -current_version 1.0.0 -o libsundials_arkode.1.0.0.dylib -install_name /Users/x/src/OpenModelica/OMCompiler/3rdParty/sundials/build/src/arkode/libsundials_arkode.1.dylib CMakeFiles/sundials_arkode_shared.dir/arkode.c.o CMakeFiles/sundials_arkode_shared.dir/arkode_band.c.o CMakeFiles/sundials_arkode_shared.dir/arkode_bandpre.c.o CMakeFiles/sundials_arkode_shared.dir/arkode_bbdpre.c.o CMakeFiles/sundials_arkode_shared.dir/arkode_butcher.c.o CMakeFiles/sundials_arkode_shared.dir/arkode_dense.c.o CMakeFiles/sundials_arkode_shared.dir/arkode_direct.c.o CMakeFiles/sundials_arkode_shared.dir/arkode_io.c.o CMakeFiles/sundials_arkode_shared.dir/arkode_pcg.c.o CMakeFiles/sundials_arkode_shared.dir/arkode_spbcgs.c.o CMakeFiles/sundials_arkode_shared.dir/arkode_spfgmr.c.o CMakeFiles/sundials_arkode_shared.dir/arkode_spgmr.c.o CMakeFiles/sundials_arkode_shared.dir/arkode_spils.c.o CMakeFiles/sundials_arkode_shared.dir/arkode_sptfqmr.c.o CMakeFiles/sundials_arkode_shared.dir/arkode_sparse.c.o CMakeFiles/sundials_arkode_shared.dir/arkode_klu.c.o CMakeFiles/sundials_arkode_shared.dir/__/sundials/sundials_nvector.c.o CMakeFiles/sundials_arkode_shared.dir/__/sundials/sundials_math.c.o CMakeFiles/sundials_arkode_shared.dir/__/sundials/sundials_direct.c.o CMakeFiles/sundials_arkode_shared.dir/__/sundials/sundials_band.c.o CMakeFiles/sundials_arkode_shared.dir/__/sundials/sundials_dense.c.o CMakeFiles/sundials_arkode_shared.dir/__/sundials/sundials_iterative.c.o CMakeFiles/sundials_arkode_shared.dir/__/sundials/sundials_pcg.c.o CMakeFiles/sundials_arkode_shared.dir/__/sundials/sundials_spbcgs.c.o CMakeFiles/sundials_arkode_shared.dir/__/sundials/sundials_spfgmr.c.o CMakeFiles/sundials_arkode_shared.dir/__/sundials/sundials_spgmr.c.o CMakeFiles/sundials_arkode_shared.dir/__/sundials/sundials_sptfqmr.c.o CMakeFiles/sundials_arkode_shared.dir/__/sundials/sundials_sparse.c.o -lklu -lamd -lcolamd -lbtf ld: library not found for -lklu clang: error: linker command failed with exit code 1 (use -v to see invocation) src/arkode/CMakeFiles/sundials_arkode_shared.dir/build.make:799: recipe for target 'src/arkode/libsundials_arkode.1.0.0.dylib' failed gmake[6]: *** [src/arkode/libsundials_arkode.1.0.0.dylib] Error 1 gmake[6]: Leaving directory '/Users/x/src/OpenModelica/OMCompiler/3rdParty/sundials/build' CMakeFiles/Makefile2:202: recipe for target 'src/arkode/CMakeFiles/sundials_arkode_shared.dir/all' failed
Change History (5)
comment:1 by , 9 years ago
comment:3 by , 8 years ago
Milestone: | 1.11.0 → 1.12.0 |
---|
Milestone moved to 1.12.0 due to 1.11.0 already being released.
comment:4 by , 7 years ago
Milestone: | 1.12.0 → Future |
---|
The milestone of this ticket has been reassigned to "Future".
If you think the issue is still valid and relevant for you, please select milestone 1.13.0 for back-end, code generation and run-time issues, or 2.0.0 for front-end issues.
If you are aware that the problem is no longer present, please select the milestone corresponding to the version of OMC you used to check that, and set the status to "worksforme".
In both cases, a short informative comment would be welcome.
comment:5 by , 4 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Closing this ticket because it is out of date: We dropped support for OSX, SUNDIALS was updated to a neweer version, the OSX build was fixed (and broken again and fixed again and broken again ...)
With PR #948 I can compile, but running the testsuite still does not work on OS X, because Accelerate library (Cminpack?) is missing: