lingua-franca icon indicating copy to clipboard operation
lingua-franca copied to clipboard

Epoch does not support Raspberry Pi (ARM-based processors)

Open ali95123 opened this issue 2 years ago • 11 comments

I would like to have LF on Raspberry Pi 4B, however, it seems currently LF does not support ARM-based processors.

ali95123 avatar Jun 10 '22 22:06 ali95123

Do you wish to develop LF code on ARM, or would you like to deploy LF programs on ARM? If the latter, what target did you want to use?

For developing LF on ARM, my guess is that our CLI tools and VS Code extension should work just fine... It's true that our Epoch IDE currently does not support ARM...

lhstrh avatar Jun 10 '22 22:06 lhstrh

Tagging @a-sr in case he as any insights regarding building Epoch for ARM. I also found this: https://resheim.net/2013/05/running-eclipse-rcp-applications-on.html, but that's rather old documentation.

lhstrh avatar Jun 10 '22 22:06 lhstrh

Do you wish to develop LF code on ARM, or would you like to deploy LF programs on ARM? If the latter, what target did you want to use?

For developing LF on ARM, my guess is that our CLI tools and VS Code extension should work just fine... It's true that our Epoch IDE currently does not support ARM...

I want to both develop and deploy LF code on Raspberry Pi. In the worst case, I would be able to deploy LF code on Raspberry Pi. My target language is Python.

ali95123 avatar Jun 11 '22 07:06 ali95123

Do you wish to develop LF code on ARM, or would you like to deploy LF programs on ARM? If the latter, what target did you want to use?

For developing LF on ARM, my guess is that our CLI tools and VS Code extension should work just fine... It's true that our Epoch IDE currently does not support ARM...

I tried to install Epoch (got error: Cannot execute binary file: Exec format error) and run it on Raspberry Pi. I have not tried to deploy an LF code so far.

ali95123 avatar Jun 11 '22 07:06 ali95123

Have you tried the Eclipse developer setup?

Soroosh129 avatar Jun 11 '22 16:06 Soroosh129

Not yet. Will it work?

ali95123 avatar Jun 11 '22 17:06 ali95123

The easiest option would be to use our VS Code extension, which has a one-click install: https://marketplace.visualstudio.com/items?itemName=lf-lang.vscode-lingua-franca

Please let us know if this works for you.

lhstrh avatar Jun 11 '22 17:06 lhstrh

I tried VS code on Rasbian OS on Raspberry Pi. I deployed my three assignments (software design for CPS) which were in C target and they worked. However, I am having some struggles with python targets which might be related to some packages or ... to work.

ali95123 avatar Jun 12 '22 11:06 ali95123

I’m glad the VSCode extension worked. I’ve renamed the issue to more accurately reflect the problem.

However, I am having some struggles with python targets which might be related to some packages or ... to work.

Could you please create a new issue with as much detail as you could give us? Thanks!

Soroosh129 avatar Jun 12 '22 11:06 Soroosh129

Tagging @a-sr in case he as any insights regarding building Epoch for ARM. I also found this: https://resheim.net/2013/05/running-eclipse-rcp-applications-on.html, but that's rather old documentation.

No, I don't have any experience with Eclipse on ARM. Eclipse itself seems to support ARM, hence, the developer setup might work.

a-sr avatar Jun 14 '22 13:06 a-sr

An (probably simpler) alternative to the developer setup is to build Epoch via maven. Simply clone LF and run mvn compile && mvn package. On an x86 machine this provides you with an executable in `./org.lflang.rca/target/products/org.lflang.rca/linux/gtk/x86_64/epoch/epoch. On arm the subdirectory for the architecture should change of course. Note that we don't test our runtimes on ARM at the moment. While it should work in general, there might be some bugs lurking in the dark.

cmnrd avatar Jun 20 '22 15:06 cmnrd

Closing this issue noting that the solution appears to build on ARM. If there is a demand for releasing a version of Epoch built for ARM, then feel welcome to comment on this issue and we can re-open it. @ali95123: if you could share an experience report that would be useful! Did you end up getting it to work?

lhstrh avatar Aug 26 '22 06:08 lhstrh

Yes. It worked on Raspberry Pi by means of VScode. Also, I could use compiled files and run them on Raspberry Pi.

ali95123 avatar Aug 26 '22 07:08 ali95123