﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3896	Cannot build Cpp runtime on OS X	Henning Kiel	somebody	"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
}}}"	defect	closed	high	Future	Cpp Run-time	v1.10.0-dev-nightly	wontfix		
