pok icon indicating copy to clipboard operation
pok copied to clipboard

install ocarina failed with ./misc/get_ocarina.sh

Open leonhxx opened this issue 4 years ago • 6 comments

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

leonhxx avatar Apr 16 '21 03:04 leonhxx

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

yoogx avatar Apr 16 '21 18:04 yoogx

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

leonhxx avatar Apr 19 '21 03:04 leonhxx

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

yoogx avatar Apr 19 '21 11:04 yoogx

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.

leonhxx avatar Apr 20 '21 12:04 leonhxx

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.

yoogx avatar Apr 20 '21 12:04 yoogx

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 !

leonhxx avatar Apr 21 '21 08:04 leonhxx