- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Openmodelica on ARM devices
Openmodelica on ARM devices
Openmodelica on ARM devices
I am trying to install and run OpenModelica on ARM (Cortex A9 v7) machhine and Ubuntu 14.04.1
Method 1 : Directly Download Linux Debian / Ubuntu Packages
https://openmodelica.org/download/download-linux
But I am getting:-
W: Failed to fetch http://build.openmodelica.org/apt/dist/trusty/Release unable to find expected entry 'release/binary-armhf/Packages' in Release file (Wrong sources.list entry or malfunctioned file)
E: Some index entry failed to download. They have been ignored, or old ones used instead.
^Attached the screenshot
Method 2 : Source Code
https://openmodelica.org/developersresources/source-code
I am unable to find ./configure or any make file
So 'make install' being of no use here
Please help me
Thanks in advance
Re: Openmodelica on ARM devices
Try the readme files for instructions (OpenModelica uses autoconf). Or use the source package (not tested on ARM):
Code:
sudo apt-get install devscripts debhelper
mkdir -p ~/tmp
cd ~/tmp
sudo apt-get build-dep openmodelica
sudo apt-get install libsundials-kinsol1 libqtwebkit-dev # Might be needed depending on platform
apt-get -b source openmodelica
sudo dpkg -i *.deb
- sjoelund.se
- 1700 Posts
Re: Openmodelica on ARM devices
rml-mmc is not required and not part of the latest builds (nightly). Don't try to build the old release version on ARM; it is known to fail.
- sjoelund.se
- 1700 Posts
Re: Openmodelica on ARM devices
apt-get source is unrelated to the svn version you checked out. It is what you put in your apt sources.
- sjoelund.se
- 1700 Posts
Re: Openmodelica on ARM devices
Can you give me some fresh method. Because when I am following the method mentioned in the README.linux.txt , I am getting errors:-
W: Failed to fetch http://build.openmodelica.org/apt/dist/trusty/Release unable to find expected entry 'release/binary-armhf/Packages' in Release file (Wrong sources.list entry or malfunctioned file)
E: Some index entry failed to download. They have been ignored, or old ones used instead.
again, while I am following apt-get update step.
And hence can't proceed. I am a newbie to openmodelica. Please suggest the easiest possible steps. Thanks for the instant replies
Re: Openmodelica on ARM devices
There are no binary packages for ARM in OpenModelica. You will need to do apt-get build-dep paradiseo, etc for that as well.
- sjoelund.se
- 1700 Posts
Re: Openmodelica on ARM devices
sjoelund.se wrote:
There are no binary packages for ARM in OpenModelica. You will need to do apt-get build-dep paradiseo, etc for that as well.
Code:
student@netbook:~$ sudo apt-get build-dep paradiseo
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 228 not upgraded.
student@netbook:~$ sudo apt-get build-dep openmodelica
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Build-Depends dependency for openmodelica cannot be satisfied because the package paradiseo cannot be found
Re: Openmodelica on ARM devices
The etc steps include source -b, dpkg -i, ... You need to install the paradiseo package before continuing with the openmodelica package.
- sjoelund.se
- 1700 Posts
Re: Openmodelica on ARM devices
Hello,
The problem is still unsolved! It is really important for this to work.
I am trying to integrate OpenModelica and DWSIM (to make thermodynamic modules work on OM)
Also, I want it to work on ARM architectures, where I don't see many useful resources/support for that yet.
Let me explain you in the detail, what I have done:
I used the following to get the source code from openmodelica Subversion repository [latest]
Code:
svn co https://openmodelica.org/svn/OpenModelica/trunk/ openmodelica
(as mentioned in Openmodelica Source Code)
It fetches lots of files and after taking quite some time, it gives message:-
Code:
svn: ra_serf: The server sent a truncated HTTP response body.
Please help me and provide some detailed solution (for a beginner).
Re: Openmodelica on ARM devices
What version of svn client do you have? Do:
Code:
> svn --version
If is 1.8 you could try to downgrade it to 1.7.
- adrpo
- 885 Posts
Re: Openmodelica on ARM devices
Are you running ./configure or did you enter a different working directory? OpenModelica will only works correctly when run using the command sequence in the README.
- sjoelund.se
- 1700 Posts
Re: Openmodelica on ARM devices
The README says to run ./configure; that's the only way the build will work.
- sjoelund.se
- 1700 Posts
Re: Openmodelica on ARM devices
Then choose either --without-paradiseo or install paradiseo.
- sjoelund.se
- 1700 Posts
Re: Openmodelica on ARM devices
https://trac.openmodelica.org/OpenModelica/ticket/3061
Read the libgc documentation:
# Note: "syntax error near unexpected token ATOMIC_OPS" reported by configure
# means Autotools pkg.m4 file was not found during aclocal.m4 generation.
apt-file says:
pkg-config: /usr/share/aclocal/pkg.m4
- sjoelund.se
- 1700 Posts
Re: Openmodelica on ARM devices
Install all of the dependencies
- sjoelund.se
- 1700 Posts
Re: Openmodelica on ARM devices
Hello Martin,
I Have installed all the dependencies that are listed in the README. Also ./configure --without-paradiseo worked fine and configuration was successful but now, when I am trying to make, I am getting error:- "syntax error near unexpected token ATOMIC_OPS" (attachment)
Please tell me the solution. Also from where can I get the pkg.m4 file?
Re: Openmodelica on ARM devices
So you have apt-get build-dep openmodelica, build-essential, pkg-config? Then make clean and try again
- sjoelund.se
- 1700 Posts
Re: Openmodelica on ARM devices
Re: Openmodelica on ARM devices
For "syntax error near unexpected token 'ATOMIC_OPS' " you need to install pkg-config.
As for openblas-clean edit /home/student/openmodelica/Makefile.common in the top directory and remove this part "> /dev/null 2>&1" to see what's going on.
- adrpo
- 885 Posts
Re: Openmodelica on ARM devices
adrpo wrote:
As for openblas-clean edit /home/student/openmodelica/Makefile.common in the top directory and remove this part "> /dev/null 2>&1" to see what's going on.
I removed the part "> /dev/null 2>&1" (as you mentioned), Then I am getting error:-
Code:
make -C 3rdParty/OpenBLAS-0.2.8 clean >
/bin/sh: 1: Syntax error: end of file unexpected
make: ***[openblas-clean] Error 2
PFA the image make_clean_error2.jpg
Also I installed the pkg-config after which 'ATOMIC_OPS' problem is solved and while I run 'make', after lots of processing, I get error:-
Code:
./meta/meta_modelica_bulletin.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Re: Openmodelica on ARM devices
For make clean "make -C 3rdParty/OpenBLAS-0.2.8 clean > " remove also ">" and then try again.
For "./meta/meta_modelica_bulletin.o: error adding symbols: Bad value collect2: error: ld returned 1 exit status" we need to add -fPIC for ARM.
I'll ask Martin how to do that.
- adrpo
- 885 Posts
Re: Openmodelica on ARM devices
Update your OpenModelica source folder via "svn up" and try again. I now added -fPIC flag so compilation should go further.
- adrpo
- 885 Posts
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Openmodelica on ARM devices