- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Debian Squeeze KinSol Incompatibility...
Debian Squeeze KinSol Incompatibility for Debian Package
Debian Squeeze KinSol Incompatibility for Debian Package
simulate( HelloWorld, startTime=0, stopTime=4 )
record SimulationResult
resultFile = "",
simulationOptions = "startTime = 0.0, stopTime = 4.0, numberOfIntervals = 500, tolerance = 0.000001, method = 'dassl', fileNamePrefix = 'HelloWorld', storeInTemp = false, noClean = false, options = '', outputFormat = 'mat', variableFilter = '.*', measureTime = false, cflags = '', simflags = ''",
messages = "Simulation failed for model: HelloWorld
Error: Error building simulator. Buildlog: gcc -falign-functions -march=native -mfpmath=sse -I\"/usr/include/omc\" -I. -c -o HelloWorld.o HelloWorld.c
gcc -falign-functions -march=native -mfpmath=sse -I\"/usr/include/omc\" -I. -c -o HelloWorld_records.o HelloWorld_records.c
g++ -I. -o HelloWorld HelloWorld.o HelloWorld_records.o -I\"/usr/include/omc\" -I. -falign-functions -march=native -mfpmath=sse -L\"/usr/lib/omc\" -lSimulationRuntimeC -ldl -linteractive -lexpat -lrt -lsundials_kinsol -lsundials_nvecserial -llapack -lpthread -Wl,-Bstatic -lf2c -Wl,-Bdynamic
/usr/lib/omc/libSimulationRuntimeC.a(kinsol_initialization.o): In function `kinsol_initialization':
(.text+0x347): undefined reference to `KINSetUserData'
/usr/lib/omc/libSimulationRuntimeC.a(kinsol_initialization.o): In function `kinsol_initialization':
(.text+0x3a3): undefined reference to `KINInit'
/usr/lib/omc/libSimulationRuntimeC.a(kinsol_initialization.o): In function `kinsol_initialization':
(.text+0x43e): undefined reference to `KINDlsGetNumJacEvals'
/usr/lib/omc/libSimulationRuntimeC.a(kinsol_initialization.o): In function `kinsol_initialization':
(.text+0x450): undefined reference to `KINDlsGetNumFuncEvals'
collect2: ld returned 1 exit status
make: *** [omc_main_target] Error 1
",
timeFrontend = 0.0,
timeBackend = 0.0,
timeSimCode = 0.0,
timeTemplates = 0.0,
timeCompile = 0.0,
timeSimulation = 0.0,
timeTotal = 0.0
end SimulationResult;
Re: Debian Squeeze KinSol Incompatibility for Debian Package
Temporary hack:
Add to /etc/apt/sources.list:
deb http://ftp.us.debian.org/debian/ wheezy main contrib non-free
Install newer versions of sundials packages:
sudo apt-get install -t wheezy libsundials-serial-dev
Comment out wheezy packages in your sources.list to keep other packages stable after install:
#deb http://ftp.us.debian.org/debian/ wheezy main contrib non-free
Re: Debian Squeeze KinSol Incompatibility for Debian Package
Wow, it seems you are right. Squeezy does not have KINInit... I added a check for linkage of this function in the configure-script so the next version of omc should be built without sundials.
- sjoelund.se
- 1700 Posts
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Debian Squeeze KinSol Incompatibility...