Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install ocarina failed with ./misc/get_ocarina.sh #28

Open
leonhxx opened this issue Apr 16, 2021 · 6 comments
Open

install ocarina failed with ./misc/get_ocarina.sh #28

leonhxx opened this issue Apr 16, 2021 · 6 comments

Comments

@leonhxx
Copy link

leonhxx commented Apr 16, 2021

Hi! I try to run pok on Ubuntu,but using ./misc/get_ocarina.sh can't install ocarina, as the website of 'http://download.tuxfamily.org/taste/snapshots/binaries/ocarina/' doesn't exist

@yoogx
Copy link

yoogx commented Apr 16, 2021

@leonhxx
Copy link
Author

leonhxx commented Apr 19, 2021

Use this: https://github.com/OpenAADL/ocarina-build

thanks, but unfortunately ocarina buid failed with the message:
home/****/ocarina-build/ocarina/src/../projects/restrictions.adc:30:22: invalid restriction identifier "No_Fixed_Io"
/home/****/ocarina-build/ocarina/src/../projects/restrictions.adc:64:22: invalid restriction identifier "No_Implicit_Task_Allocations"
/home/****/ocarina-build/ocarina/src/../projects/restrictions.adc:65:22: invalid restriction identifier "No_Implicit_Protected_Object_Allocations"
/home/****/ocarina-build/ocarina/src/../projects/restrictions.adc:75:22: invalid restriction identifier "No_Task_At_Interrupt_Priority"
/home/****/ocarina-build/ocarina/src/../projects/restrictions.adc:80:22: invalid restriction identifier "Pure_Barriers"
gprbuild: *** compilation phase failed
Makefile:668: recipe for target 'build-mknodes' failed
make[1]: *** [build-mknodes] Error 4
make[1]: Leaving directory '/home/****/ocarina-build/ocarina/projects'
Makefile:422: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

@yoogx
Copy link

yoogx commented Apr 19, 2021

Your GNAT is definitely too old, the tool compiles just fine

@leonhxx
Copy link
Author

leonhxx commented Apr 20, 2021

Your GNAT is definitely too old, the tool compiles just fine

thanks,I update the GNAT to gnat-2020-20200429-x86_64-linux-bin、gnat-community-2019-20190517-x86_64-linux-bin,try for a long time, but still build failed with the following message:
checking that your gnat compiler works with a simple example... conftest.gpr:1:09: no languages defined for this project
gprbuild: "conftest.gpr" processing failed
no
configure: error: /usr/bin/gprbuild test failed at compile time! Check your configuration.

@yoogx
Copy link

yoogx commented Apr 20, 2021

Chances are that you put gnat community at the end of your path. It should be in front so that you use gprbuild from GNAT CE and not the one provided by your distro.

@leonhxx
Copy link
Author

leonhxx commented Apr 21, 2021

Chances are that you put gnat community at the end of your path. It should be in front so that you use gprbuild from GNAT CE and not the one provided by your distro.

Thank you very much, I finally installed ocarina! but It seems current ocarina can't compile pok examples, and I have no idea how to make ocarina and pok example match, can you give me some idea or information? :)

here is the error compile message: AADL models are not syntaxically correct, please fix them !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants