-
Notifications
You must be signed in to change notification settings - Fork 61
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
AADL models are not syntaxically correct, please fix them ! #4
Comments
Having a trace/comment might help :) |
atir@ubuntu: |
looks like a problem with @yoogx and ocarina! |
how can buffer and blackboard can run then ? they both are running but events queueing are not :( |
there is not much help on the internet.You are the last person who can solve this :) |
I appreciate the compliment. Please note that POK and Ocarina are open source and contributions are more than appreciated. |
i have corrected them thanks for your time
…On Thu, Jul 13, 2017 at 7:39 PM, Julien ***@***.***> wrote:
I appreciate the compliment. Please note that POK and Ocarina are open
source and contributions are more than appreciated.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AS1UIokiNNI97lBOdvl83ddMn1_7aJRWks5sNiwGgaJpZM4OWg6A>
.
|
@AtirChaudary, can you please send us a patch with your corrections ? These would also help us providing an updated version of the tool. Thanks |
@AtirChaudary @yoogx, is this issue solved to the end? I also have the same error. It would be nice if there is a patch. |
No, I did not hear back from @AtirChaudary since last August. And I lack resources to update these models. |
see the .aadl file and see which functions you are using in your model.There are some mistakes like where we define language if = C but it should be (C) because thats how functions are accepting it. so i use it for my own and modified it but i am not working on this anymore so i dont have access to those files now.I moved to other project |
Hi, It seems most of the errors were introduced around the time this commit was merged into ocarina. Mainly, it seems Module_Major_Frame, Partition_Slots, Slots_Allocation from ARINC653:: has to be replaced by POK::Major_Frame, POK::Slots, POK::Slots_Allocation. Plus what @AtirChaudary said about source_language => (C). However, after correcting the model i'm getting the error from the script: ARINC653 deployment file is NOT conform to XSD schema These are the format errors: cpu_arinc653-conf.xml:0: Schemas validity error : Element 'System_HM_Table': Missing child element(s). Expected is ( System_State_Entry ). cpu_arinc653-conf.xml:0: Schemas validity error : Element 'Module_HM_Table': Missing child element(s). Expected is ( System_State_Entry ). cpu_arinc653-conf.xml:0: Schemas validity error : Element 'Memory_Requirements': The attribute 'Type' is required but missing. cpu_arinc653-conf.xml:0: Schemas validity error : Element 'Memory_Requirements': The attribute 'Access' is required but missing. cpu_arinc653-conf.xml:0: Schemas validity error : Element 'Partition_HM_Table': The attribute 'PartitionIdentifier' is required but missing. cpu_arinc653-conf.xml:0: Schemas validity error : Element 'Partition_HM_Table': Missing child element(s). Expected is ( System_State_Entry ). cpu_arinc653-conf.xml:0: Schemas validity error : Element 'ARINC_653_Module': Missing child element(s). Expected is one of ( Partition_HM_Table, Connection_Table ). The code still compiles even if the xml is not valid. I'm willing to correct the models, but I'm wondering is using ocarina the common workflow for using POK? Because commits are getting merged, but none of the examples using ocarina are buildable out of the box for me. If I want to fix the models, what is the best way to go about it? Is there any example of currently valid ARINC653 model working for ocarina? I tried ocarina/examples/real/safety/model.aadl, but those don't seem to be valid either. |
Can you please send:
Having a way to reproduce the bug will definitively help us to fix it :-) |
Sorry for the late reply. 1 - Ocarina 2017.1 (Working Copy from rfb77e27) --> Github binaries The build scripts hide the error output from the subcommand, so I've executed |
I will look into this over the week end. |
follow-up on this. The reason is because the property set changed. Obviously, the ocarina compiler would need some love to be fixed and generate the HM policy based on the new property set. It will have to read the literals from the new property set and so on. I managed to generate This is a long change that requires some time, please submit a patch to fix the issue and/or try to get commercial support if this is something you really need. |
Thank you for the answer. If I understand correctly the ocarina compiler is not correctly using its property set defined in ocarina/resources/AADLv2/arinc653.aadl, so the backend for POK defined in ocarina/src/backends/arinc653/ requires some modification? On top of that, the models used by the arinc653-* tests in the pok repository would need to be updated to use the same property set? I am not using POK for anything commercial, so don't worry! :-) |
You are totally correct:
|
Yes, exactly. Any update? Thank you! |
this happens when I run Makefile
there is a syntax error in your code can you help me on this ?
this happens for arnic653-events and arnic653-queueing and i am running others also so maybe its in them also
The text was updated successfully, but these errors were encountered: