Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

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.

Re: Debian Squeeze KinSol Incompatibility for Debian Package

Thanks for the quick response! I jumped ship and upgraded our network to ubuntu 12.04 so we are more on the same page with your development.

There are 0 guests and 0 other users also viewing this topic
You are here: