- Index
- » Workshops
- » OpenModelica Workshop
- » Installing OpenModelica on Linux
Installing OpenModelica on Linux
Installing OpenModelica on Linux
Good Morning,
I'm trying since a week ago to install openmodelica. The commands I run inside my script are
Code:
MY_FORK=MyGitHubUserName ; git clone https://openmodelica.org/git-readonly/OpenModelica.git --recursive && (cd OpenModelica && git remote set-url --push origin git@github.com:$MY_FORK/OpenModelica.git && git submodule foreach --recursive 'git remote set-url --push origin `git config --get remote.origin.url | sed s,^.*/,git@github.com:'$MY_FORK'/,`')
to download and after that I tried both the general Linux instruction and the Debain version's one, as
Code:
autoconf
./configure --with-cppruntime
make -j8
make install DESTDIR=${pkgdir}
The result is
Code:
[100%] Linking C static library libOMSimulatorLua.a
cd /tmp/prova/src/OpenModelica/OMSimulator/build/linux/src/OMSimulatorLua && /usr/bin/cmake -P CMakeFiles/OMSimulatorLua.dir/cmake_clean_target.cmake
cd /tmp/prova/src/OpenModelica/OMSimulator/build/linux/src/OMSimulatorLua && /usr/bin/cmake -E cmake_link_script CMakeFiles/OMSimulatorLua.dir/link.txt --verbose=1
/usr/bin/ar qc libOMSimulatorLua.a CMakeFiles/OMSimulatorLua.dir/OMSimulatorLua.c.o
/usr/bin/ranlib libOMSimulatorLua.a
make[5]: Leaving directory '/tmp/prova/src/OpenModelica/OMSimulator/build/linux'
[100%] Built target OMSimulatorLua
make[4]: Leaving directory '/tmp/prova/src/OpenModelica/OMSimulator/build/linux'
/usr/bin/cmake -E cmake_progress_start /tmp/prova/src/OpenModelica/OMSimulator/build/linux/CMakeFiles 0
make -f CMakeFiles/Makefile2 preinstall
make[4]: Entering directory '/tmp/prova/src/OpenModelica/OMSimulator/build/linux'
make[4]: Nothing to be done for 'preinstall'.
make[4]: Leaving directory '/tmp/prova/src/OpenModelica/OMSimulator/build/linux'
Install the project...
/usr/bin/cmake -P cmake_install.cmake
-- Install configuration: "Release"
-- Installing: /tmp/prova/src/OpenModelica/build/bin/OMSimulator
-- Set runtime path of "/tmp/prova/src/OpenModelica/build/bin/OMSimulator" to "$ORIGIN/../lib/x86_64-linux-gnu/omc:$ORIGIN/"
-- Installing: /tmp/prova/src/OpenModelica/build/lib/x86_64-linux-gnu/omc/libOMSimulator.so
-- Set runtime path of "/tmp/prova/src/OpenModelica/build/lib/x86_64-linux-gnu/omc/libOMSimulator.so" to "$ORIGIN/../lib/x86_64-linux-gnu/omc:$ORIGIN/"
-- Installing: /tmp/prova/src/OpenModelica/build/lib/x86_64-linux-gnu/omc/libOMSimulator.a
-- Installing: /tmp/prova/src/OpenModelica/build/include/OMSimulator.h
-- Installing: /tmp/prova/src/OpenModelica/build/include/Types.h
-- Installing: /tmp/prova/src/OpenModelica/build/lib/x86_64-linux-gnu/omc/libOMSimulatorLua.a
-- Installing: /tmp/prova/src/OpenModelica/build/lib/OMSimulator.py
-- Installing: /tmp/prova/src/OpenModelica/build/bin/OMSimulatorPython
make[3]: Leaving directory '/tmp/prova/src/OpenModelica/OMSimulator/build/linux'
make[2]: Leaving directory '/tmp/prova/src/OpenModelica/OMSimulator'
test ! -z "" || /tmp/prova/src/OpenModelica/build/bin/OMSimulator --version
OMSimulator v2.1.0-dev-155-gf11a7e4-linux
make[1]: Leaving directory '/tmp/prova/src/OpenModelica/OMSimulator'
error: RPC failed; curl 56 OpenSSL SSL_read: Connection timed out, errno 110
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
fatal: unable to access 'https://github.com/modelica/Modelica.git/': Could not resolve host: github.com
fatal: unable to access 'https://github.com/modelica/Modelica.git/': Could not resolve host: github.com
[git/Modelica] does not exist: cloning [https://github.com/modelica/Modelica.git]
Cloning into 'git/Modelica'...
fatal: unable to access 'https://github.com/modelica/Modelica.git/': Could not resolve host: github.com
Cloning into 'git/Modelica'...
fatal: unable to access 'https://github.com/modelica/Modelica.git/': Could not resolve host: github.com
Cloning into 'git/Modelica'...
remote: Enumerating objects: 791, done.
remote: Counting objects: 100% (791/791), done.
remote: Compressing objects: 100% (355/355), done.
remote: Total 3383 (delta 639), reused 436 (delta 436), pack-reused 2592
Receiving objects: 100% (3383/3383), 28.94 MiB | 2.67 MiB/s, done.
Resolving deltas: 100% (1115/1115), done.
HEAD is now at d442bcd A.Haumer: corrected spelling error in documentation
Note: switching to 'd442bcd461b8db9873e33b6141bdbd37bcff9de8'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
HEAD is now at d442bcd A.Haumer: corrected spelling error in documentation
HEAD is now at d442bcd A.Haumer: corrected spelling error in documentation
test ! -d 'build//Modelica 2.2.2'
cp -a 'git/Modelica/Modelica' "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Modelica 2.2.2"
patch -l -d "/tmp/prova/src/OpenModelica/build/lib/omlibrary/" -f -p1 < 'Modelica 2.2.2.patch'
patching file 'Modelica 2.2.2/Constants.mo'
echo '' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Modelica 2.2.2.uses"
echo 'modelica1.1' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Modelica 2.2.2.license"
echo '2.2.2-20140315-143534~git~maint-2.2.2-om1' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Modelica 2.2.2.last_change"
echo 'omlibrary-msl222' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Modelica 2.2.2.breaks"
# Building git/Modelica
./checkout-git.sh 'git/Modelica' 'https://github.com/modelica/Modelica.git' 'maint/3.1' 'af2a3e1597d648d6826665c89cf9eaf5c2a632bc'
HEAD is now at d442bcd A.Haumer: corrected spelling error in documentation
fatal: reference is not a tree: af2a3e1597d648d6826665c89cf9eaf5c2a632bc
Previous HEAD position was d442bcd46 A.Haumer: corrected spelling error in documentation
HEAD is now at af2a3e159 Fixes #1449
HEAD is now at af2a3e159 Fixes #1449
test ! -d 'build//Modelica 3.1'
cp -a 'git/Modelica/Modelica' "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Modelica 3.1"
patch -l -d "/tmp/prova/src/OpenModelica/build/lib/omlibrary/" -f -p1 < 'Modelica 3.1.patch'
patching file 'Modelica 3.1/Constants.mo'
patching file 'Modelica 3.1/Electrical/Digital.mo'
patching file 'Modelica 3.1/Fluid/Pipes.mo'
patching file 'Modelica 3.1/Media/IdealGases/Common/FluidData.mo'
patching file 'Modelica 3.1/Media/IdealGases/Common/package.mo'
patching file 'Modelica 3.1/Media/package.mo'
patching file 'Modelica 3.1/Media/Water/IF97_Utilities.mo'
patching file 'Modelica 3.1/Media/Water/package.mo'
patching file 'Modelica 3.1/Media/Water/package.order'
echo 'ModelicaServices 1.0' >> "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Modelica 3.1.uses"
echo 'modelica2' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Modelica 3.1.license"
echo '3.1-20140322-174148~git~maint-3.1-om1' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Modelica 3.1.last_change"
echo 'omlibrary-msl31' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Modelica 3.1.breaks"
test ! -d 'build//ModelicaServices 1.0'
cp -a 'git/Modelica/ModelicaServices' "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaServices 1.0"
patch -l -d "/tmp/prova/src/OpenModelica/build/lib/omlibrary/" -f -p1 < 'ModelicaServices 1.0.patch'
patching file 'ModelicaServices 1.0/package.mo'
echo > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaServices 1.0.uses"
echo 'modelica2' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaServices 1.0.license"
echo '1.0-20140322-174148~git~maint-3.1-om1' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaServices 1.0.last_change"
echo 'omlibrary-msl31' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaServices 1.0.breaks"
# Building git/Modelica
./checkout-git.sh 'git/Modelica' 'https://github.com/modelica/Modelica.git' 'maint/3.2.1' '60cb4e48077fa22cc97d02e767baa83ec78aadf9'
HEAD is now at af2a3e159 Fixes #1449
fatal: reference is not a tree: 60cb4e48077fa22cc97d02e767baa83ec78aadf9
Warning: you are leaving 92 commits behind, not connected to
any of your branches:
af2a3e159 Fixes #1449
c0f321ae9 A.Haumer: corrected spelling error in documentation
0e7aafba9 Applied some MSL 3.2 bug fixes to 3.1
65e7dcb74 corrected HeatTransfer.BodyRadiation from G=%G to Gr=%Gr
... and 88 more.
If you want to keep them by creating a new branch, this may be a good time
to do so with:
git branch <new-branch-name> af2a3e159
HEAD is now at 60cb4e480 Added mass flow rate start value for easier convergence
HEAD is now at 60cb4e480 Added mass flow rate start value for easier convergence
test ! -f 'build//Complex 3.2.1.mo'
cp -a 'git/Modelica/Complex.mo' "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Complex 3.2.1.mo"
echo '' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Complex 3.2.1.uses"
echo 'modelica2' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Complex 3.2.1.license"
echo '3.2.1+build.4-18-g60cb4e4-om1' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Complex 3.2.1.last_change"
echo 'omlibrary-msl32,omlibrary-reference' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Complex 3.2.1.breaks"
test ! -d 'build//Modelica 3.2.1'
cp -a 'git/Modelica/Modelica' "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Modelica 3.2.1"
rm -rf "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Modelica 3.2.1/Resources/Library"
patch -l -d "/tmp/prova/src/OpenModelica/build/lib/omlibrary/" -f -p1 < 'Modelica 3.2.1.patch'
patching file 'Modelica 3.2.1/Blocks/Sources.mo'
patching file 'Modelica 3.2.1/Blocks/Tables.mo'
patching file 'Modelica 3.2.1/Math/package.mo'
Hunk #1 succeeded at 12717 (offset -5 lines).
Hunk #2 succeeded at 12837 (offset -5 lines).
patching file 'Modelica 3.2.1/Math/package.order'
patching file 'Modelica 3.2.1/Media/Water/IF97_Utilities.mo'
echo 'Complex 3.2.1' >> "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Modelica 3.2.1.uses"
echo 'ModelicaServices 3.2.1' >> "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Modelica 3.2.1.uses"
echo 'modelica2' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Modelica 3.2.1.license"
echo '3.2.1+build.4-18-g60cb4e4-om1' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Modelica 3.2.1.last_change"
echo 'omlibrary-msl32,omlibrary-reference' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Modelica 3.2.1.breaks"
test ! -d 'build//ModelicaServices 3.2.1'
cp -a 'git/Modelica/ModelicaServices' "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaServices 3.2.1"
patch -l -d "/tmp/prova/src/OpenModelica/build/lib/omlibrary/" -f -p1 < 'ModelicaServices 3.2.1.patch'
patching file 'ModelicaServices 3.2.1/package.mo'
Hunk #2 succeeded at 693 (offset 1 line).
Hunk #3 succeeded at 713 (offset 1 line).
echo > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaServices 3.2.1.uses"
echo 'modelica2' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaServices 3.2.1.license"
echo '3.2.1+build.4-18-g60cb4e4-om1' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaServices 3.2.1.last_change"
echo 'omlibrary-msl32,omlibrary-reference' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaServices 3.2.1.breaks"
test ! -d 'build//ModelicaTest 3.2.1'
cp -a 'git/Modelica/ModelicaTest' "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaTest 3.2.1"
echo 'Modelica 3.2.1' >> "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaTest 3.2.1.uses"
echo 'modelica2' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaTest 3.2.1.license"
echo '3.2.1+build.4-18-g60cb4e4' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaTest 3.2.1.last_change"
echo 'omlibrary-msl32,omlibrary-reference' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaTest 3.2.1.breaks"
# Building git/Modelica
./checkout-git.sh 'git/Modelica' 'https://github.com/modelica/Modelica.git' 'maint/3.2.2' 'd992c34ed978241214b4c079fb8ee6cc9e33d909'
HEAD is now at 60cb4e480 Added mass flow rate start value for easier convergence
fatal: reference is not a tree: d992c34ed978241214b4c079fb8ee6cc9e33d909
Warning: you are leaving 18 commits behind, not connected to
any of your branches:
60cb4e480 Added mass flow rate start value for easier convergence
e903713c2 Fixes #2101 in 3.2.1 maintenance branch
dfed1107f Resolved ticket #2066 Wrong annotation
34f3f0d2f refs #1962: Include lower-case windows.h (as required for cross-compilation on Linux)
... and 14 more.
If you want to keep them by creating a new branch, this may be a good time
to do so with:
git branch <new-branch-name> 60cb4e480
HEAD is now at d992c34ed Port all missing each from MSL master (3.2.3) (#2801)
HEAD is now at d992c34ed Port all missing each from MSL master (3.2.3) (#2801)
test ! -f 'build//Complex 3.2.2.mo'
cp -a 'git/Modelica/Complex.mo' "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Complex 3.2.2.mo"
echo '' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Complex 3.2.2.uses"
echo 'modelica2' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Complex 3.2.2.license"
echo '3.2.2-237-gd992c34-om1' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Complex 3.2.2.last_change"
test ! -d 'build//Modelica 3.2.2'
cp -a 'git/Modelica/Modelica' "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Modelica 3.2.2"
rm -rf "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Modelica 3.2.2/Resources/Library"
patch -l -d "/tmp/prova/src/OpenModelica/build/lib/omlibrary/" -f -p1 < 'Modelica 3.2.2.patch'
patching file 'Modelica 3.2.2/Blocks/Sources.mo'
patching file 'Modelica 3.2.2/Blocks/Tables.mo'
patching file 'Modelica 3.2.2/Magnetic/QuasiStatic/FundamentalWave.mo'
patching file 'Modelica 3.2.2/Math/package.mo'
patching file 'Modelica 3.2.2/Math/package.order'
echo 'Complex 3.2.2' >> "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Modelica 3.2.2.uses"
echo 'ModelicaServices 3.2.2' >> "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Modelica 3.2.2.uses"
echo 'modelica2' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Modelica 3.2.2.license"
echo '3.2.2-237-gd992c34-om3' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Modelica 3.2.2.last_change"
test ! -d 'build//ModelicaServices 3.2.2'
cp -a 'git/Modelica/ModelicaServices' "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaServices 3.2.2"
patch -l -d "/tmp/prova/src/OpenModelica/build/lib/omlibrary/" -f -p1 < 'ModelicaServices 3.2.2.patch'
patching file 'ModelicaServices 3.2.2/package.mo'
echo > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaServices 3.2.2.uses"
echo 'modelica2' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaServices 3.2.2.license"
echo '3.2.2-237-gd992c34-om2' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaServices 3.2.2.last_change"
test ! -d 'build//ModelicaTest 3.2.2'
cp -a 'git/Modelica/ModelicaTest' "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaTest 3.2.2"
echo 'Modelica 3.2.2' >> "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaTest 3.2.2.uses"
echo 'modelica2' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaTest 3.2.2.license"
echo '3.2.2-237-gd992c34' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaTest 3.2.2.last_change"
test ! -f 'build//ModelicaTestOverdetermined 3.2.2.mo'
cp -a 'git/Modelica/ModelicaTestOverdetermined.mo' "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaTestOverdetermined 3.2.2.mo"
echo 'Modelica 3.2.2' >> "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaTestOverdetermined 3.2.2.uses"
echo 'modelica2' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaTestOverdetermined 3.2.2.license"
echo '3.2.2-237-gd992c34' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaTestOverdetermined 3.2.2.last_change"
test ! -f 'build//ObsoleteModelica3.mo'
cp -a 'git/Modelica/ObsoleteModelica3.mo' "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ObsoleteModelica3.mo"
echo 'Modelica 3.2.2' >> "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ObsoleteModelica3.uses"
echo 'modelica2' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ObsoleteModelica3.license"
echo '3.2.2-237-gd992c34' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ObsoleteModelica3.last_change"
# Building git/Modelica
./checkout-git.sh 'git/Modelica' 'https://github.com/modelica/Modelica.git' 'maint/3.2.3' 'fa6757d403e342778459c5d37e4f48b987702718'
HEAD is now at d992c34ed Port all missing each from MSL master (3.2.3) (#2801)
HEAD is now at fa6757d40 Update dateModified to 2020-05-12
HEAD is now at fa6757d40 Update dateModified to 2020-05-12
test ! -f 'build//Complex 3.2.3.mo'
cp -a 'git/Modelica/Complex.mo' "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Complex 3.2.3.mo"
echo '' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Complex 3.2.3.uses"
echo 'bsd3' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Complex 3.2.3.license"
echo '3.2.3+build.4-rc.1' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Complex 3.2.3.last_change"
test ! -d 'build//Modelica 3.2.3'
cp -a 'git/Modelica/Modelica' "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Modelica 3.2.3"
rm -rf "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Modelica 3.2.3/Resources/Library"
patch -l -d "/tmp/prova/src/OpenModelica/build/lib/omlibrary/" -f -p1 < 'Modelica 3.2.3.patch'
patching file 'Modelica 3.2.3/Magnetic/QuasiStatic/FundamentalWave.mo'
patching file 'Modelica 3.2.3/Math/package.mo'
patching file 'Modelica 3.2.3/Math/package.order'
echo 'Complex 3.2.3' >> "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Modelica 3.2.3.uses"
echo 'ModelicaServices 3.2.3' >> "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Modelica 3.2.3.uses"
echo 'bsd3' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Modelica 3.2.3.license"
echo '3.2.3+build.4-rc.1-om2' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Modelica 3.2.3.last_change"
test ! -d 'build//ModelicaReference'
cp -a 'git/Modelica/ModelicaReference' "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaReference"
echo '' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaReference.uses"
echo 'bsd3' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaReference.license"
echo '20200512-220000~git~maint-3.2.3' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaReference.last_change"
test ! -d 'build//ModelicaServices 3.2.3'
cp -a 'git/Modelica/ModelicaServices' "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaServices 3.2.3"
patch -l -d "/tmp/prova/src/OpenModelica/build/lib/omlibrary/" -f -p1 < 'ModelicaServices 3.2.3.patch'
patching file 'ModelicaServices 3.2.3/package.mo'
echo > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaServices 3.2.3.uses"
echo 'bsd3' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaServices 3.2.3.license"
echo '3.2.3+build.4-rc.1-om2' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaServices 3.2.3.last_change"
test ! -d 'build//ModelicaTest 3.2.3'
cp -a 'git/Modelica/ModelicaTest' "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaTest 3.2.3"
echo 'Modelica 3.2.3' >> "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaTest 3.2.3.uses"
echo 'bsd3' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaTest 3.2.3.license"
echo '3.2.3+build.4-rc.1' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaTest 3.2.3.last_change"
# Building git/Modelica
./checkout-git.sh 'git/Modelica' 'https://github.com/modelica/Modelica.git' 'master' '9821b66f09364c62c13fc349b5df5fb875bef148'
HEAD is now at fa6757d40 Update dateModified to 2020-05-12
fatal: reference is not a tree: 9821b66f09364c62c13fc349b5df5fb875bef148
Updating files: 100% (5048/5048), done.
Previous HEAD position was fa6757d40 Update dateModified to 2020-05-12
HEAD is now at 9821b66f0 Utilize start/end on match
HEAD is now at 9821b66f0 Utilize start/end on match
test ! -f 'build//Complex trunk.mo'
cp -a 'git/Modelica/Complex.mo' "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Complex trunk.mo"
patch -l -d "/tmp/prova/src/OpenModelica/build/lib/omlibrary/" -f -p1 < 'Complex trunk.patch'
patching file 'Complex trunk.mo'
echo '' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Complex trunk.uses"
echo 'bsd3' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Complex trunk.license"
echo '20200519-145834~git~master-om1' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Complex trunk.last_change"
echo 'omlibrary-msl32,omlibrary-reference' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Complex trunk.breaks"
test ! -d 'build//Modelica trunk'
cp -a 'git/Modelica/Modelica' "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Modelica trunk"
rm -rf "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Modelica trunk/Resources/Library"
patch -l -d "/tmp/prova/src/OpenModelica/build/lib/omlibrary/" -f -p1 < 'Modelica trunk.patch'
patching file 'Modelica trunk/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_Transformer.mo'
patching file 'Modelica trunk/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_YD.mo'
patching file 'Modelica trunk/package.mo'
echo 'Complex trunk' >> "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Modelica trunk.uses"
echo 'ModelicaServices trunk' >> "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Modelica trunk.uses"
echo 'bsd3' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Modelica trunk.license"
echo '20200519-145834~git~master-om1' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Modelica trunk.last_change"
echo 'omlibrary-msl32,omlibrary-reference' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/Modelica trunk.breaks"
test ! -d 'build//ModelicaReference trunk'
cp -a 'git/Modelica/ModelicaReference' "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaReference trunk"
echo '' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaReference trunk.uses"
echo 'bsd3' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaReference trunk.license"
echo '20200519-145834~git~master' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaReference trunk.last_change"
echo 'omlibrary-msl32,omlibrary-reference' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaReference trunk.breaks"
test ! -d 'build//ModelicaServices trunk'
cp -a 'git/Modelica/ModelicaServices' "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaServices trunk"
patch -l -d "/tmp/prova/src/OpenModelica/build/lib/omlibrary/" -f -p1 < 'ModelicaServices trunk.patch'
patching file 'ModelicaServices trunk/package.mo'
echo > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaServices trunk.uses"
echo 'bsd3' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaServices trunk.license"
echo '20200519-145834~git~master-om1' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaServices trunk.last_change"
echo 'omlibrary-msl32,omlibrary-reference' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaServices trunk.breaks"
test ! -d 'build//ModelicaTest trunk'
cp -a 'git/Modelica/ModelicaTest' "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaTest trunk"
patch -l -d "/tmp/prova/src/OpenModelica/build/lib/omlibrary/" -f -p1 < 'ModelicaTest trunk.patch'
patching file 'ModelicaTest trunk/package.mo'
echo 'Modelica trunk' >> "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaTest trunk.uses"
echo 'bsd3' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaTest trunk.license"
echo '20200519-145834~git~master-om356' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaTest trunk.last_change"
echo 'omlibrary-msl32,omlibrary-reference' > "/tmp/prova/src/OpenModelica/build/lib/omlibrary/ModelicaTest trunk.breaks"
make[2]: Leaving directory '/tmp/prova/src/OpenModelica/libraries'
make[1]: *** [Makefile:17: /tmp/prova/src/OpenModelica/build/lib/omlibrary/20200520_190735.core] Error 2
make[1]: Leaving directory '/tmp/prova/src/OpenModelica/libraries'
make: *** [Makefile:14: omlibrary-core] Error 2
==> ERROR: A failure occurred in build().
Aborting...
At first I thought that I was missing some dependencies, but after that I hunderstood that it wasn't celar what is doing after the Install the project.... Could you please give me some suggestions?
- ElMastro
- 33 Posts
Re: Installing OpenModelica on Linux
Your network seems to go down during the build when trying to fetch Modelica libraries from github, see:
Code:
error: RPC failed; curl 56 OpenSSL SSL_read: Connection timed out, errno 110
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
fatal: unable to access 'https://github.com/modelica/Modelica.git/': Could not resolve host: github.com
fatal: unable to access 'https://github.com/modelica/Modelica.git/': Could not resolve host: github.com
Try with make -j4 or lower. How many cores your computer CPU has?
You will also need to install subversion to have svn as some Modelica libraries are checked out from svn repos.
- adrpo
- 885 Posts
Re: Installing OpenModelica on Linux
Thank you adrpo for the quick answer;
yes I had some problem with my connection, now solved. My laptop has an 8-threads cpu so until now I haven't experienced any issue with make -j8, but I will take it in consideration;
Subversion is installed on my machine;
running again the commands, without connection problems it says:
Code:
[100%] Building C object src/idas/CMakeFiles/sundials_idas_static.dir/__/sundials/sundials_sptfqmr.c.o
cd /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/src/idas && /usr/bin/gcc -DBUILD_SUNDIALS_LIBRARY -I/tmp/prova/src/OpenModelica/build/include/omc/c/suitesparse/Include -I/tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/include -I/tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include -I/tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/src/idas/. -I/tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/src/idas/../sundials -march=znver1 -O2 -mtune=znver1 -pipe -fstack-protector-strong -fno-stack-protector -fPIC -lm -L /tmp/prova/src/OpenModelica/build/lib/x86_64-linux-gnu/omc -o CMakeFiles/sundials_idas_static.dir/__/sundials/sundials_sptfqmr.c.o -c /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/src/sundials/sundials_sptfqmr.c
-- Extracting object files from /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/ExpatEx/./libexpat.a
[ 98%] Generating zlib/libz.a.objlist
-- Extracting object files from /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/zlib/libz.a
[ 99%] Generating fmilib_dummy.c
Scanning dependencies of target fmilib
make[6]: Leaving directory '/tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build'
make[6]: Entering directory '/tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build'
[ 99%] Building C object CMakeFiles/fmilib.dir/fmilib_dummy.c.o
[100%] Linking C static library libfmilib.a
Running: ar ru /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/libfmilib.a @../libfmiimport.a.objlist
ar: `u' modifier ignored since `D' is the default (see `U')
Running: ar ru /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/libfmilib.a @../libjmutils.a.objlist
ar: `u' modifier ignored since `D' is the default (see `U')
Running: ar ru /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/libfmilib.a @../libfmixml.a.objlist
ar: `u' modifier ignored since `D' is the default (see `U')
Running: ar ru /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/libfmilib.a @../libfmizip.a.objlist
ar: `u' modifier ignored since `D' is the default (see `U')
[100%] Linking C static library libsundials_idas.a
cd /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/src/idas && /usr/bin/cmake -P CMakeFiles/sundials_idas_static.dir/cmake_clean_target.cmake
cd /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/src/idas && /usr/bin/cmake -E cmake_link_script CMakeFiles/sundials_idas_static.dir/link.txt --verbose=1
/usr/bin/ar qc libsundials_idas.a CMakeFiles/sundials_idas_static.dir/idas.c.o CMakeFiles/sundials_idas_static.dir/idaa.c.o CMakeFiles/sundials_idas_static.dir/idas_io.c.o CMakeFiles/sundials_idas_static.dir/idas_ic.c.o CMakeFiles/sundials_idas_static.dir/idaa_io.c.o CMakeFiles/sundials_idas_static.dir/idas_direct.c.o CMakeFiles/sundials_idas_static.dir/idas_band.c.o CMakeFiles/sundials_idas_static.dir/idas_dense.c.o CMakeFiles/sundials_idas_static.dir/idas_sparse.c.o CMakeFiles/sundials_idas_static.dir/idas_spils.c.o CMakeFiles/sundials_idas_static.dir/idas_spbcgs.c.o CMakeFiles/sundials_idas_static.dir/idas_spgmr.c.o CMakeFiles/sundials_idas_static.dir/idas_sptfqmr.c.o CMakeFiles/sundials_idas_static.dir/idas_bbdpre.c.o CMakeFiles/sundials_idas_static.dir/idas_klu.c.o CMakeFiles/sundials_idas_static.dir/idas_lapack.c.o CMakeFiles/sundials_idas_static.dir/__/sundials/sundials_nvector.c.o CMakeFiles/sundials_idas_static.dir/__/sundials/sundials_math.c.o CMakeFiles/sundials_idas_static.dir/__/sundials/sundials_direct.c.o CMakeFiles/sundials_idas_static.dir/__/sundials/sundials_band.c.o CMakeFiles/sundials_idas_static.dir/__/sundials/sundials_dense.c.o CMakeFiles/sundials_idas_static.dir/__/sundials/sundials_iterative.c.o CMakeFiles/sundials_idas_static.dir/__/sundials/sundials_sparse.c.o CMakeFiles/sundials_idas_static.dir/__/sundials/sundials_spbcgs.c.o CMakeFiles/sundials_idas_static.dir/__/sundials/sundials_spgmr.c.o CMakeFiles/sundials_idas_static.dir/__/sundials/sundials_sptfqmr.c.o
Running: ar ru /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/libfmilib.a @../libfmicapi.a.objlist
ar: `u' modifier ignored since `D' is the default (see `U')
/usr/bin/ranlib libsundials_idas.a
Running: ar ru /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/libfmilib.a @../libexpat.a.objlist
ar: `u' modifier ignored since `D' is the default (see `U')
make[7]: Leaving directory '/tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build'
[100%] Built target sundials_idas_static
make[6]: Leaving directory '/tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build'
/usr/bin/cmake -E cmake_progress_start /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/CMakeFiles 0
make -f CMakeFiles/Makefile2 preinstall
make[6]: Entering directory '/tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build'
make[6]: Nothing to be done for 'preinstall'.
make[6]: Leaving directory '/tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build'
Running: ar ru /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/libfmilib.a @../libminizip.a.objlist
ar: `u' modifier ignored since `D' is the default (see `U')
Install the project...
/usr/bin/cmake -P cmake_install.cmake
-- Install configuration: ""
Install shared components
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/sundials/sundials_band.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/sundials/sundials_dense.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/sundials/sundials_direct.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/sundials/sundials_iterative.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/sundials/sundials_math.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/sundials/sundials_nvector.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/sundials/sundials_fnvector.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/sundials/sundials_pcg.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/sundials/sundials_sparse.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/sundials/sundials_spbcgs.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/sundials/sundials_spfgmr.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/sundials/sundials_spgmr.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/sundials/sundials_sptfqmr.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/sundials/sundials_types.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/sundials/sundials_lapack.h
Install NVECTOR_SERIAL
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/lib/libsundials_nvecserial.a
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/lib/libsundials_nvecserial.so.0.0.2
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/lib/libsundials_nvecserial.so.0
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/lib/libsundials_nvecserial.so
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/nvector/nvector_serial.h
Install ARKODE
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/lib/libsundials_arkode.a
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/lib/libsundials_arkode.so.1.0.0
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/lib/libsundials_arkode.so.1
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/lib/libsundials_arkode.so
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/arkode/arkode.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/arkode/arkode_band.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/arkode/arkode_bandpre.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/arkode/arkode_bbdpre.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/arkode/arkode_dense.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/arkode/arkode_direct.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/arkode/arkode_pcg.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/arkode/arkode_spbcgs.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/arkode/arkode_spfgmr.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/arkode/arkode_spgmr.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/arkode/arkode_spils.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/arkode/arkode_sptfqmr.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/arkode/arkode_sparse.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/arkode/arkode_klu.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/arkode/arkode_lapack.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/arkode/arkode_impl.h
Install CVODE
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/lib/libsundials_cvode.a
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/lib/libsundials_cvode.so.1.0.0
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/lib/libsundials_cvode.so.1
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/lib/libsundials_cvode.so
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/cvode/cvode_band.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/cvode/cvode_bandpre.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/cvode/cvode_bbdpre.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/cvode/cvode_dense.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/cvode/cvode_diag.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/cvode/cvode_direct.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/cvode/cvode.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/cvode/cvode_sparse.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/cvode/cvode_spbcgs.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/cvode/cvode_spgmr.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/cvode/cvode_spils.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/cvode/cvode_sptfqmr.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/cvode/cvode_klu.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/cvode/cvode_lapack.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/cvode/cvode_impl.h
Install CVODES
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/lib/libsundials_cvodes.a
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/lib/libsundials_cvodes.so.2.0.0
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/lib/libsundials_cvodes.so.2
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/lib/libsundials_cvodes.so
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/cvodes/cvodes_band.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/cvodes/cvodes_bandpre.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/cvodes/cvodes_bbdpre.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/cvodes/cvodes_dense.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/cvodes/cvodes_diag.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/cvodes/cvodes_direct.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/cvodes/cvodes.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/cvodes/cvodes_sparse.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/cvodes/cvodes_spbcgs.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/cvodes/cvodes_spgmr.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/cvodes/cvodes_spils.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/cvodes/cvodes_sptfqmr.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/cvodes/cvodes_klu.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/cvodes/cvodes_lapack.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/cvodes/cvodes_impl.h
Install IDA
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/lib/libsundials_ida.a
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/lib/libsundials_ida.so.2.0.0
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/lib/libsundials_ida.so.2
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/lib/libsundials_ida.so
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/ida/ida_band.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/ida/ida_bbdpre.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/ida/ida_dense.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/ida/ida_direct.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/ida/ida.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/ida/ida_spbcgs.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/ida/ida_spgmr.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/ida/ida_spils.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/ida/ida_sptfqmr.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/ida/ida_klu.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/ida/ida_sparse.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/ida/ida_lapack.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/ida/ida_impl.h
Install IDAS
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/lib/libsundials_idas.a
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/lib/libsundials_idas.so.0.0.0
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/lib/libsundials_idas.so.0
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/lib/libsundials_idas.so
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/idas/idas_band.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/idas/idas_bbdpre.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/idas/idas_dense.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/idas/idas_direct.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/idas/idas.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/idas/idas_sparse.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/idas/idas_spbcgs.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/idas/idas_spgmr.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/idas/idas_spils.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/idas/idas_sptfqmr.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/idas/idas_klu.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/idas/idas_lapack.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/idas/idas_impl.h
Install KINSOL
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/lib/libsundials_kinsol.a
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/lib/libsundials_kinsol.so.1.0.0
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/lib/libsundials_kinsol.so.1
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/lib/libsundials_kinsol.so
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/kinsol/kinsol_band.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/kinsol/kinsol_bbdpre.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/kinsol/kinsol_dense.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/kinsol/kinsol_direct.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/kinsol/kinsol.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/kinsol/kinsol_klu.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/kinsol/kinsol_spbcgs.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/kinsol/kinsol_spfgmr.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/kinsol/kinsol_spgmr.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/kinsol/kinsol_spils.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/kinsol/kinsol_sptfqmr.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/kinsol/kinsol_superlumt.h
-- Up-to-date: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/kinsol/kinsol_klu.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/kinsol/kinsol_sparse.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/kinsol/kinsol_lapack.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build/include/kinsol/kinsol_impl.h
make[5]: Leaving directory '/tmp/prova/src/OpenModelica/OMCompiler/3rdParty/sundials/build'
# adrpo: do not copy the headers as they are not needed!
mkdir -p /tmp/prova/src/OpenModelica/build/include/omc/c/sundials
(cp -pfr 3rdParty/sundials/build/include/* /tmp/prova/src/OpenModelica/build/include/omc/c/sundials)
Running: ar ru /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/libfmilib.a @../libz.a.objlist
# copy the libs to the build/lib/omc directory
(cp -pf 3rdParty/sundials/build/lib/* /tmp/prova/src/OpenModelica/build/lib/x86_64-linux-gnu/omc)
ar: `u' modifier ignored since `D' is the default (see `U')
test ! `uname` = Darwin || install_name_tool -id @rpath/libsundials_arkode.0.dylib "/tmp/prova/src/OpenModelica/build/lib/x86_64-linux-gnu/omc/libsundials_nvecserial.0.dylib"
test ! `uname` = Darwin || install_name_tool -id @rpath/libsundials_cvode.0.dylib "/tmp/prova/src/OpenModelica/build/lib/x86_64-linux-gnu/omc/libsundials_nvecserial.0.dylib"
test ! `uname` = Darwin || install_name_tool -id @rpath/libsundials_cvodes.0.dylib "/tmp/prova/src/OpenModelica/build/lib/x86_64-linux-gnu/omc/libsundials_nvecserial.0.dylib"
Running: ar ru /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/libfmilib.a @../libc99snprintf.a.objlist
test ! `uname` = Darwin || install_name_tool -id @rpath/libsundials_ida.0.dylib "/tmp/prova/src/OpenModelica/build/lib/x86_64-linux-gnu/omc/libsundials_nvecserial.0.dylib"
ar: `u' modifier ignored since `D' is the default (see `U')
test ! `uname` = Darwin || install_name_tool -id @rpath/libsundials_idas.0.dylib "/tmp/prova/src/OpenModelica/build/lib/x86_64-linux-gnu/omc/libsundials_nvecserial.0.dylib"
test ! `uname` = Darwin || install_name_tool -id @rpath/libsundials_kinsol.0.dylib "/tmp/prova/src/OpenModelica/build/lib/x86_64-linux-gnu/omc/libsundials_nvecserial.0.dylib"
test ! `uname` = Darwin || install_name_tool -id @rpath/libsundials_nvecserial.0.dylib "/tmp/prova/src/OpenModelica/build/lib/x86_64-linux-gnu/omc/libsundials_nvecserial.0.dylib"
Running: /usr/bin/ranlib /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/libfmilib.a
# copy the dlls to the build bin directory
test ! ".so" = ".dll" || (cp -pf 3rdParty/sundials/build/lib/*.so /tmp/prova/src/OpenModelica/build/bin)
make[4]: Leaving directory '/tmp/prova/src/OpenModelica/OMCompiler'
make[6]: Leaving directory '/tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build'
[100%] Built target fmilib
make[5]: Leaving directory '/tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build'
make[4]: Leaving directory '/tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build'
test -d 3rdParty/FMIL/install || make -C 3rdParty/FMIL/build install
make[4]: Entering directory '/tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build'
make[5]: Entering directory '/tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build'
make[6]: Entering directory '/tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build'
make[6]: Entering directory '/tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build'
make[6]: Entering directory '/tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build'
make[6]: Leaving directory '/tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build'
make[6]: Leaving directory '/tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build'
make[6]: Leaving directory '/tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build'
[ 8%] Built target c99snprintf
[ 8%] Built target expatex
make[6]: Entering directory '/tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build'
[ 21%] Built target zlib
make[6]: Leaving directory '/tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build'
make[6]: Entering directory '/tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build'
make[6]: Leaving directory '/tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build'
[ 28%] Built target jmutils
make[6]: Entering directory '/tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build'
make[6]: Entering directory '/tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build'
[ 32%] Built target minizip
make[6]: Entering directory '/tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build'
make[6]: Leaving directory '/tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build'
make[6]: Leaving directory '/tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build'
[ 34%] Built target fmizip
[ 50%] Built target fmixml
make[6]: Leaving directory '/tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build'
[ 55%] Built target fmicapi
make[6]: Entering directory '/tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build'
make[6]: Entering directory '/tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build'
make[6]: Leaving directory '/tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build'
make[6]: Leaving directory '/tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build'
[ 81%] Built target fmiimport
[ 91%] Built target fmilib_shared
make[6]: Entering directory '/tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build'
make[6]: Leaving directory '/tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build'
[100%] Built target fmilib
make[5]: Leaving directory '/tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build'
Install the project...
-- Install configuration: "Release"
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/lib/libfmilib.a
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/lib/libfmilib_shared.so
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/doc/FMILIB_Readme.txt
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/doc/FMILIB_License.txt
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/doc/FMILIB_Acknowledgements.txt
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/include/fmilib_config.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/include/fmilib.h
-- Up-to-date: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI2
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI2/fmi2_import_variable_list.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI2/fmi2_import_variable.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI2/fmi2_import_unit.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI2/fmi2_import_type.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI2/fmi2_import_convenience.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI2/fmi2_import_capi.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI2/fmi2_import.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI1
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI1/fmi1_import_vendor_annotations.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI1/fmi1_import_variable_list.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI1/fmi1_import_variable.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI1/fmi1_import_unit.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI1/fmi1_import_type.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI1/fmi1_import_cosim.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI1/fmi1_import_convenience.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI1/fmi1_import_capi.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI1/fmi1_import_capabilities.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI1/fmi1_import.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI/fmi_import_util.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI/fmi_import_context.h
-- Up-to-date: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include/JM
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include/JM/jm_vector_template.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include/JM/jm_vector.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include/JM/jm_types.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include/JM/jm_string_set.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include/JM/jm_stack.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include/JM/jm_portability.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include/JM/jm_named_ptr.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include/JM/jm_callbacks.h
-- Up-to-date: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI2
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI2/fmi2_xml_callbacks.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI2/fmi2_types.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI2/fmi2_functions.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI2/fmi2_enums.h
-- Up-to-date: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI1
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI1/fmi1_types.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI1/fmi1_functions.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI1/fmi1_enums.h
-- Up-to-date: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI/fmi_version.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/./include/FMI/fmi_util.h
-- Up-to-date: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/include/FMI1
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/include/FMI1/fmiPlatformTypes.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/include/FMI1/fmiModelTypes.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/include/FMI1/fmiModelFunctions.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/include/FMI1/fmiFunctions.h
-- Up-to-date: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/include/FMI2
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/include/FMI2/fmi2TypesPlatform.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/include/FMI2/fmi2Functions.h
-- Installing: /tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build/../install/include/FMI2/fmi2FunctionTypes.h
make[4]: Leaving directory '/tmp/prova/src/OpenModelica/OMCompiler/3rdParty/FMIL/build'
test "(" ! `uname` = Darwin ")" -o "(" ! -f 3rdParty/FMIL/install/lib/libfmilib_shared.so ")" || install_name_tool -id @rpath/libfmilib_shared.so 3rdParty/FMIL/install/lib/libfmilib_shared.so
cp -pPR 3rdParty/FMIL/install/lib/libfmilib_shared.so /tmp/prova/src/OpenModelica/build/lib/x86_64-linux-gnu/omc
'3rdParty/FMIL/install/lib/libfmilib_shared.so' -> '/tmp/prova/src/OpenModelica/build/lib/x86_64-linux-gnu/omc/libfmilib_shared.so'
test ! -f /tmp/prova/src/OpenModelica/build/lib/x86_64-linux-gnu/omc/libfmilib_shared.so || ln -sf libfmilib_shared.so /tmp/prova/src/OpenModelica/build/lib/x86_64-linux-gnu/omc/libfmilib.so
#TODO: Only copy required headers, add them in omc/fmi subfolder, and do not copy c/txt-files
mkdir -p /tmp/prova/src/OpenModelica/build/include/omc/fmil/
cp -pPR 3rdParty/FMIL/install/include/* /tmp/prova/src/OpenModelica/build/include/omc/fmil/
make[3]: Leaving directory '/tmp/prova/src/OpenModelica/OMCompiler'
make[2]: *** [Makefile:98: omc-bootstrapped] Error 2
make[2]: Leaving directory '/tmp/prova/src/OpenModelica/OMCompiler'
make[1]: *** [Makefile.common:230: omc-and-runtimeCPPinstall] Error 2
make[1]: Leaving directory '/tmp/prova/src/OpenModelica/OMCompiler'
make: *** [Makefile:12: omc.skip] Error 2
==> ERROR: A failure occurred in build().
Aborting...
- ElMastro
- 33 Posts
Re: Installing OpenModelica on Linux
I need more of the output. Run with:
make -j8 > trace.txt 2>&1 and then upload trace.txt.
- adrpo
- 885 Posts
- ElMastro
- 33 Posts
Re: Installing OpenModelica on Linux
Seems you did the make command in some other directory where there is no Makefile, or you did git clean and did not autoconf / configure again.
- adrpo
- 885 Posts
Re: Installing OpenModelica on Linux
The commands have been embedded in an installation script that ceased of working. Probably it is some path mismatch inside of it. I'm controlling it right now.
- ElMastro
- 33 Posts
Re: Installing OpenModelica on Linux
adrpo, I finished checking, the paths seem correct. I'm attaching the script (just in case)
PKGBUILD.
I see that until the commands
Code:
mkdir -p /tmp/src/OpenModelica/build/include/omc/fmil/
cp -pPR 3rdParty/FMIL/install/include/* /tmp/src/OpenModelica/build/include/omc/fmil/
the script does what it seems supposed to do, but after appears:
Code:
make[3]: uscita dalla directory «/tmp/src/OpenModelica/OMCompiler»
make[2]: *** [Makefile:98: omc-bootstrapped] Errore 2
make[2]: uscita dalla directory «/tmp/src/OpenModelica/OMCompiler»
make[1]: *** [Makefile.common:230: omc-and-runtimeCPPinstall] Errore 2
make[1]: uscita dalla directory «/tmp/src/OpenModelica/OMCompiler»
make: *** [Makefile:12: omc.skip] Errore 2
.
In makefile, row 97 and following are
Code:
gitclean:
git submodule foreach --recursive 'git clean -fdx -e /git -e /svn'
git clean -fdx -e OpenModelicaSetup -e OMSetup -e OMEncryption -e .project -e *.launch
for d in $(LIBGITDIRS); do git clean -fdx libraries/git/$$d; done
It is supposed to behave like this?
- ElMastro
- 33 Posts
Re: Installing OpenModelica on Linux
I need to see the *entire* build log. Because you are compiling with "make -j8" the build error can be anywhere in the log and seeing only the last commands where make tells it fails it doesn't help.
Edit PKGBUILD and change "make -j8" to "make -j8 > trace.txt 2>&1" run it again and upload the trace file.
It might be the new dependency to libcurl that is the problem (apt-get install libcurl4-gnutls-dev to install it on ubuntu or add it to the PKGBUILD dependencies section) but i have no way of knowing if I don't see the full build log, not just parts of it.
- adrpo
- 885 Posts
Re: Installing OpenModelica on Linux
I can confirm that this dependency is broken. On archlinux is called libcurl-gnutls ( I'm fixing it). As soon as it finish I will post the files if it keeps failing
- ElMastro
- 33 Posts
Re: Installing OpenModelica on Linux
I installed the libcurl-gnutls. Something changed;
I'm attaching the file
1590264022_trace.txt
- ElMastro
- 33 Posts
Re: Installing OpenModelica on Linux
If you search for *** in the trace you will see that it dies trying to compile Mumps for Ipopt. Basically it seems that the fortran compiler has issues:
Code:
Error: Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1)
MUMPS/src/dmumps_comm_buffer.F:2670:23:
what version of gfortran do you have?
Run the command above to find out.
Code:
> gfortran --version
- adrpo
- 885 Posts
Re: Installing OpenModelica on Linux
Yes, this one is the same error it outputs when I try to compile it with the instruction for base linux.
gfortan is
Code:
GNU Fortran (GCC) 10.1.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
provided by gcc-fortran 10.1.0-2
- ElMastro
- 33 Posts
Re: Installing OpenModelica on Linux
We are not testing so high version of gfortran / gcc. The highest version we test is gfortran / gcc 9.3.0 on Ubuntu 20.04.
It seem that there are some issues with it.
You could maybe try to configure with an older gfortran via:
Code:
./configure FC=gfortran-9.3.0 --with-cppruntime
if you have an older gfortran available until they fix this in mumps.
- adrpo
- 885 Posts
Re: Installing OpenModelica on Linux
According to the gcc 10.1 page:
https://gcc.gnu.org/gcc-10/porting_to.html
it might work if you configure with:
Code:
/configure FC="gfortran --std=legacy" --with-cppruntime
to force gfortran 10 to work as previous versions.
- adrpo
- 885 Posts
Re: Installing OpenModelica on Linux
I tried both configure configuration, but none of them works. So the problem as far as I understand is in coin-or-coinmumps.
I'm attaching the trace file.
trace2.txt
- ElMastro
- 33 Posts
Re: Installing OpenModelica on Linux
First of all adrpo, thank you for your assistance, it has been precious;
however it seems that this is a issue we can't solve ourselves. Maybe I should fill a bug on MUMPS?
- ElMastro
- 33 Posts
Re: Installing OpenModelica on Linux
It might already be fixed in the new MUMPS, what we include in OpenModelica is an older version. You can check if the new one works to build and if it doesn't, then report a bug.
- adrpo
- 885 Posts
Re: Installing OpenModelica on Linux
I don't know how to do it. I tried to install MUMP as a package but doesn't work either.
- ElMastro
- 33 Posts
Re: Installing OpenModelica on Linux
I installed MUMPS (5.3.1-3), but it seems the same: make runs till the end, but make install doesn't work....
trace3.txt
- ElMastro
- 33 Posts
- Index
- » Workshops
- » OpenModelica Workshop
- » Installing OpenModelica on Linux