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

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
https://openmodelica.org/images/agorapro/attachments/4239/mini_Download-Linux-Debian--Ubuntu-Packages.JPG

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

Re: Openmodelica on ARM devices

When I use

Code:

sudo apt-get build-dep openmodelica 

I get
E: Build-Depends dependency for openmodelica cannot be satisfied because the package rml-mmc cannot be found

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.

Re: Openmodelica on ARM devices

I just used

Code:

svn co https://openmodelica.org/svn/OpenModelica/trunk/ openmodelica

as it was mentioned for latest version

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.

Re: Openmodelica on ARM devices

E: Build-Depends dependency for openmodelica cannot be satisfied because the package paradiseo cannot be found

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.

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.

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.

Re: Openmodelica on ARM devices

It worked with -v1.8.8

Now I am facing trouble with antlr
It says:-
configure: error: no antlr.Tool support

while I have already installed antlr -v3.5.2


https://openmodelica.org/images/agorapro/attachments/4239/mini_antlr-bug.jpg

Edited by: akigupta131 - Mar-18-15 17:26:20
Attachments:

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.

Re: Openmodelica on ARM devices

I made a build directory in openmodelica source folder and I am trying to build using
../configure command

Re: Openmodelica on ARM devices

The README says to run ./configure; that's the only way the build will work.

Re: Openmodelica on ARM devices

I that case, It shows error for paradiseo

checking for paradisEO... configure: error: not found (searched /usr /opt //home/student/openmodelica/build)

https://openmodelica.org/images/agorapro/attachments/4239/mini_paradiseo-bug.jpg

Attachments:

Re: Openmodelica on ARM devices

Then choose either --without-paradiseo or install paradiseo.

Re: Openmodelica on ARM devices

I chose --without-paradiseo, and I am getting syntax error:-

./configure: line 16922: syntax error near unexpected token 'ATOMIC_OPS,'

See the attachment
https://openmodelica.org/images/agorapro/attachments/4239/mini_syntax-bug.jpg

Attachments:

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

Re: Openmodelica on ARM devices

Okay. What's the solution. What should I do next?

Re: Openmodelica on ARM devices

Install all of the dependencies

Re: Openmodelica on ARM devices

I have installed all the dependencies shown in the README. Can you please elaborate?
From where I can get the pkg.m4 file


PS: Thanks for all the help

Edited by: akigupta131 - Mar-18-15 19:03:42

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?
https://openmodelica.org/images/agorapro/attachments/4239/mini_syntax-bug.jpg

Attachments:

Re: Openmodelica on ARM devices

So you have apt-get build-dep openmodelica, build-essential, pkg-config? Then make clean and try again

Re: Openmodelica on ARM devices

I tried 'make clean' and in that I am getting error
make: *** [openblas-clean] Error 2
(find attached the error image)
https://openmodelica.org/images/agorapro/attachments/4239/mini_make-clean-error.jpg


Even after getting this error, when I try to 'make', I get "syntax error near unexpected token 'ATOMIC_OPS' " error
Being unable to lead somewhere current/sad
Please help

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.

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

https://openmodelica.org/images/agorapro/attachments/4239/mini_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

PFA the image make_error.jpg


https://openmodelica.org/images/agorapro/attachments/4239/mini_make-error.jpg

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.

Edited by: adrpo - Apr-04-15 14:59:17

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.

There are 0 guests and 0 other users also viewing this topic