OpenAADL / ocarina

AADL model processor: mappings to code (C, Ada); Petri Nets; scheduling tools (MAST, Cheddar); WCET; REAL
http://www.openaadl.org
Other
66 stars 29 forks source link

long file names under cygwin #15

Closed juli1 closed 4 years ago

juli1 commented 10 years ago

When using Ocarina under cygwin, I get an error when trying to use Ocarina when long file names.

See the example below jdelange@RM-BLACKCHERRY /cygdrive/c/Users/jdelange/git/pok/examples/arinc653-blackboard $ ocarina -aadlv2 -f -i model.aadl /cygdrive/c/Users/jdelange/git/pok/misc/aadl-library.aadl Cannot find file /cygdrive/c/Users/jdelange/git/pok/misc/aadl-library.aadl

But if I copy the aadl-library.aadl file into the current directory and avoid the long path, it works.

yoogx commented 10 years ago

Can you tell me how was this variant of Ocarina generated? Did you compile it? or did you use the binary I generate?

juli1 commented 10 years ago

binary from openaadl.org

yoogx commented 10 years ago

Can you try with Windows-style path? or use cygpath -w <unix-path>? I suspect a misconfiguration of the Ada compiler, but cannot test for now.

juli1 commented 10 years ago

This is the result of what I tried :

jdelange@RM-BLACKCHERRY /cygdrive/c/Users/jdelange/git/pok/examples/partitions-threads $ cygpath -w /cygdrive/c/Users/jdelange/git/pok/misc/aadl-library.aadl C:\Users\jdelange\git\pok\misc\aadl-library.aadl

jdelange@RM-BLACKCHERRY /cygdrive/c/Users/jdelange/git/pok/examples/partitions-threads $ ocarina -aadlv2 -f -i model.aadl C:\Users\jdelange\git\pok\misc\aadl-library.aadl Cannot find file C:Usersjdelangegitpokmiscaadl-library.aadl

But when escaping the \ char, it works. See

jdelange@RM-BLACKCHERRY /cygdrive/c/Users/jdelange/git/pok/examples/partitions-threads $ ocarina -aadlv2 -f -i model.aadl C:\Users\jdelange\git\pok\misc\aadl-library.aadl model.aadl:95:04: Warning: source_language is not a list while the corresponding property name at programming_properties.aadl:61:02 is a list. model.aadl:95:04: Warning: The value of source_language has been converted into a list. model.aadl:102:04: Warning: source_language is not a list while the corresponding property name at programming_properties.aadl:61:02 is a list. model.aadl:102:04: Warning: The value of source_language has been converted into a list. model.aadl:109:04: Warning: source_language is not a list while the corresponding property name at programming_properties.aadl:61:02 is a list. model.aadl:109:04: Warning: The value of source_language has been converted into a list. aadl-library.aadl:408:04: Warning: Source_Language is not a list while the corresponding property name at programming_properties.aadl:61:02 is a list. aadl-library.aadl:408:04: Warning: The value of Source_Language has been converted into a list.

jdelange@RM-BLACKCHERRY /cygdrive/c/Users/jdelange/git/pok/examples/partitions-threads

juli1 commented 9 years ago

ping on this one

yoogx commented 4 years ago

Now we build using MSYS, not clear this is still an issue