﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3893	Linking of simulation code broken in Linux	Francesco Casella	Willi Braun	"After updating to this early morning's nightly (dev-533-ga85e5c7), we haven't been able to compile and simulate our test cases under Linux, due to library issues with the linker, even if we don't use the IDA solver at all.

Excerpt from the compilation log:
{{{
clang -I. -o UCTE_RETE_C_v3_nsl_m1__LoadPQ UCTE_RETE_C_v3_nsl_m1__LoadPQ.o UCTE_RETE_C_v3_nsl_m1__LoadPQ_functions.o UCTE_RETE_C_v3_nsl_m1__LoadPQ_records.o UCTE_RETE_C_v3_nsl_m1__LoadPQ_01exo.o UCTE_RETE_C_v3_nsl_m1__LoadPQ_02nls.o UCTE_RETE_C_v3_nsl_m1__LoadPQ_03lsy.o UCTE_RETE_C_v3_nsl_m1__LoadPQ_04set.o UCTE_RETE_C_v3_nsl_m1__LoadPQ_05evt.o UCTE_RETE_C_v3_nsl_m1__LoadPQ_06inz.o UCTE_RETE_C_v3_nsl_m1__LoadPQ_07dly.o UCTE_RETE_C_v3_nsl_m1__LoadPQ_08bnd.o UCTE_RETE_C_v3_nsl_m1__LoadPQ_09alg.o UCTE_RETE_C_v3_nsl_m1__LoadPQ_10asr.o UCTE_RETE_C_v3_nsl_m1__LoadPQ_11mix.o UCTE_RETE_C_v3_nsl_m1__LoadPQ_12jac.o UCTE_RETE_C_v3_nsl_m1__LoadPQ_13opt.o UCTE_RETE_C_v3_nsl_m1__LoadPQ_14lnz.o UCTE_RETE_C_v3_nsl_m1__LoadPQ_15syn.o UCTE_RETE_C_v3_nsl_m1__LoadPQ_16dae.o -I""/usr/include/omc/c"" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -L""/home/casella/dynamica/OMC_RUN/2016.05.03_2"" -fPIC -O0 -falign-functions -march=native -I""/usr/include/omc/c"" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -L""/home/casella/dynamica/OMC_RUN/2016.05.03_2"" -L""/usr/lib/x86_64-linux-gnu/omc"" -L""/usr/lib"" -Wl,-rpath,""/usr/lib/x86_64-linux-gnu/omc"" -Wl,-rpath,""/usr/lib"" -lSimulationRuntimeC -llapack -lblas -lm -lm -lomcgc -lpthread -rdynamic -Wl,--no-undefined
/usr/lib/x86_64-linux-gnu/omc/libSimulationRuntimeC.so: undefined reference to `SlsConvertDls'
/usr/lib/x86_64-linux-gnu/omc/libSimulationRuntimeC.so: undefined reference to `NewSparseMat'
/usr/lib/x86_64-linux-gnu/omc/libSimulationRuntimeC.so: undefined reference to `PrintSparseMat'
/usr/lib/x86_64-linux-gnu/omc/libSimulationRuntimeC.so: undefined reference to `SlsAddMat'
/usr/lib/x86_64-linux-gnu/omc/libSimulationRuntimeC.so: undefined reference to `IDASlsGetNumJacEvals'
/usr/lib/x86_64-linux-gnu/omc/libSimulationRuntimeC.so: undefined reference to `IDAKLU'
/usr/lib/x86_64-linux-gnu/omc/libSimulationRuntimeC.so: undefined reference to `DestroySparseMat'
/usr/lib/x86_64-linux-gnu/omc/libSimulationRuntimeC.so: undefined reference to `IDASlsSetSparseJacFn'
/usr/lib/x86_64-linux-gnu/omc/libSimulationRuntimeC.so: undefined reference to `CopySparseMat'
/usr/lib/x86_64-linux-gnu/omc/libSimulationRuntimeC.so: undefined reference to `SlsSetToZero'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
}}}"	defect	closed	blocker		Build Environment		fixed		Martin Sjölund Adeel Asghar pierre.haessig@…
