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

Unable to get IResource for Resource when running #261

Closed
nuaaysh opened this issue Jun 28, 2020 · 9 comments
Closed

Unable to get IResource for Resource when running #261

nuaaysh opened this issue Jun 28, 2020 · 9 comments
Assignees
Labels

Comments

@nuaaysh
Copy link

nuaaysh commented Jun 28, 2020

Dear Authors of Ocarina,
I have two questions about the Ocarina:
Firstly, Where can I find the details about how your tool generates PolyORB-HI/Ada code from AADL models? I only find the PolyORB-HI/C part in the User’s Guide.
Secondly, as the title said I get an error message when I try to use Ocarina to generate Ada code.

ocarinaquestion.png
The test example is from your example https://github.com/OpenAADL/polyorb-hi-ada/tree/master/examples/aadlv2/prime_numbers

some information is listed as follows:
OS Ubuntu20, x64
OSATE2: 2.7.1.vfinal
OSATE2-Ocarina plugin 0.0.1.201302151532
Ocarina 2017.x (Working Copy from ree7273d)
Copyright (c) 2003-2009 Telecom ParisTech, 2010-2020 ESA & ISAE
Build date: Jun 27 2020 18:59:47

Many Thanks!

@yoogx
Copy link
Contributor

yoogx commented Jun 28, 2020

PolyORB-HI/Ada has its own doc that you can build separately.
The second part should have been addressed, the plugin version you use does not make sense. OSATE has a specific mechanism, to install extension; check Install Additional OSATE Components from Help menu. From there; you can install a more recent version of the plugin

@yoogx yoogx closed this as completed Jun 28, 2020
@nuaaysh
Copy link
Author

nuaaysh commented Jun 28, 2020

Dear Prof. Jerome Hugues,
Many thanks for your reply, now I get the latest version and the source doc of PolyORB-HI/Ada. But I test the example, it still reports an error:ADA.IO_EXCEPTIONS.USE_ERROR.(below)
I try to google it or check the User's guide, But I can't find a solution.

  Could you please give me some suggestions?

Best wishes,

+========================== OCARINA BUG DETECTED =========================+
| Detected exception: ADA.IO_EXCEPTIONS.USE_ERROR |
| Error: copy of ".../ocarina_install/include/ocarina/runtime/polyorb-hi-ada/polyorb_hi-port_type_marshallers.ads" failed |
| Please refer to the User's Guide for more details. |
+=========================================================================+

raised ADA.IO_EXCEPTIONS.USE_ERROR : copy of ".../ocarina-build/ocarina_install/include/ocarina/runtime/polyorb-hi-ada/polyorb_hi-port_type_marshallers.ads" failed

Symbolic Traceback:

@yoogx
Copy link
Contributor

yoogx commented Jun 28, 2020

Which example are you testing? All PolyORB-HI/Ada examples shipped with the source code release are tested, see https://travis-ci.org/github/OpenAADL/ocarina

Check the file actually exists

@yoogx yoogx self-assigned this Jun 28, 2020
@yoogx yoogx added the question label Jun 28, 2020
@nuaaysh
Copy link
Author

nuaaysh commented Jun 28, 2020

Hello, Prof. Jerome Hugues,

The example is from https://github.com/OpenAADL/polyorb-hi-ada/tree/master/examples/aadlv2/prime_numbers

@yoogx
Copy link
Contributor

yoogx commented Jun 28, 2020

Do not try randomly ... this example is meant to be compiled for Native platform,

You may want to change this from LEON_ORK to Native
'''
processor the_processor
properties

  • Deployment::Execution_Platform => LEON_ORK;
  • Deployment::Execution_Platform => Native;
    end the_processor;
    '''

then you need to update Ocarina to have patches for this issue #262
note they are independent of the bug you mentioned.

@nuaaysh
Copy link
Author

nuaaysh commented Jun 28, 2020

Many Thanks! I have modified the AADL model.

But now the error still exists: "Detected exception: ADA.IO_EXCEPTIONS.USE_ERROR", so I can't use the ocarina-osate plugin on my Ubuntu.

Could you please give me some suggestions?

@yoogx
Copy link
Contributor

yoogx commented Jun 28, 2020

You did not tell me whether the file exists or not; I would recommend you try with GNAT Community Edition 2019 if you use GNAT from Ubuntu

@nuaaysh
Copy link
Author

nuaaysh commented Jun 28, 2020

Sorry, my mistake!
ocarina.png
So please check the picture: The .abs exists and the ocarina terminal says there is an error: can't copy the abs.file! But I also get the target Ada code including the .abs file!!!

@yoogx
Copy link
Contributor

yoogx commented Jul 10, 2020

Issue #264 addressed a bug with GNAT CE 2020. This should now be corrected

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

No branches or pull requests

2 participants