Ocarina issueshttps://gitrepos.estec.esa.int/taste/ocarina/-/issues2022-10-09T13:06:50Zhttps://gitrepos.estec.esa.int/taste/ocarina/-/issues/2Missing file building a model with IP bus2022-10-09T13:06:50ZMiguel Muñoz ArancónMissing file building a model with IP busIn a model with an IP bus (ip.i) and POHIC driver (generic_sockets_ip.pohic), the build fails with the following message:
```
[INFO] Invoking Ocarina generated Makefiles
make generate-asn1-deployment target-objects compile-c-files comp...In a model with an IP bus (ip.i) and POHIC driver (generic_sockets_ip.pohic), the build fails with the following message:
```
[INFO] Invoking Ocarina generated Makefiles
make generate-asn1-deployment target-objects compile-c-files compile-ada-files compile-po-hi DeviceConfig-node1-generic-sockets-ip-pohic.o DeviceConfig-node2-generic-sockets-ip-pohic.o activity.o subprograms.o types.o request.o marshallers.o deployment.o naming.o main.o
make[1]: Entering directory '/home/assert/tmp/test-ip/binary.c/GlueAndBuild/deploymentview_final/x86_partition_a'
make[1]: Nothing to be done for 'generate-asn1-deployment'.
make[1]: Nothing to be done for 'target-objects'.
gcc -c -I. -I/home/assert/tool-inst/include/ocarina/runtime/polyorb-hi-c/include/ -I/home/assert/tmp/test-ip/binary.c/GlueAndBuild/ -I/home/assert/tmp/test-ip/binary.c/DriversConfig/x86_partition_a/ -I/home/assert/tmp/test-ip/binary.c/DriversConfig/x86_partition_b/ -DTARGET=native -g -D__PO_HI_USE_VCD=1 -I . -DSTATIC="" -DPOSIX -D_POSIX_SOURCE -D_GNU_SOURCE -D__PO_HI_USE_TRANSPORT -I'/home/assert/tmp/test-ip/binary.c/DriversConfig/x86_partition_a/' '/home/assert/tmp/test-ip/binary.c/DriversConfig/x86_partition_a/DeviceConfig-node1-generic-sockets-ip-pohic.c' -o DeviceConfig-node1-generic-sockets-ip-pohic.o
gcc: error: /home/assert/tmp/test-ip/binary.c/DriversConfig/x86_partition_a/DeviceConfig-node1-generic-sockets-ip-pohic.c: No such file or directory
gcc: fatal error: no input files
compilation terminated.
Makefile:26: recipe for target 'compile-c-files' failed
make[1]: *** [compile-c-files] Error 4
make[1]: Leaving directory '/home/assert/tmp/test-ip/binary.c/GlueAndBuild/deploymentview_final/x86_partition_a'
/home/assert/tool-inst/include/ocarina/runtime/polyorb-hi-c/make/Makefile.common:288: recipe for target 'x86_partition_a' failed
make: *** [x86_partition_a] Error 2
Failed while executing:
cd './deploymentview_final/x86_partition_a' && USER_CFLAGS="${USER_CFLAGS} -g -D__PO_HI_USE_VCD=1 -I . -DSTATIC=\"\" " USER_LDFLAGS="${USER_LDFLAGS} -g -lm -lpthread -lrt -L/home/assert/tool-inst/include/ocarina/runtime/polyorb-hi-c/libs/linux32/ -L/home/assert/tool-inst/include/ocarina/runtime/polyorb-hi-c/libs/linux64/ -llua " EXTERNAL_OBJECTS="-lrt /home/assert/tmp/test-ip/binary.c/auto-src_PLATFORM_NATIVE/*.o /home/assert/tmp/test-ip/binary.c/function1/function1/*.o /home/assert/tmp/test-ip/binary.c/x86_partition_a_taste_api/*.o " make
From this directory:
/home/assert/tmp/test-ip/binary.c/GlueAndBuild
```
This is similar to what was reported here, but it happened while using the old editors: https://gitrepos.estec.esa.int/taste/ellidiss-release/issues/6
Test model: [test-ip.tgz](/uploads/6339f5aaad653755310fd8b4038d9c25/test-ip.tgz)https://gitrepos.estec.esa.int/taste/ocarina/-/issues/3Tcl error in taste-generate-skeletons2022-10-09T13:06:24ZMiguel Muñoz ArancónTcl error in taste-generate-skeletonsA Tcl error occurs when running taste-generate-skeletons, in the case that the DataView.aadl file contains Source_Text values that point to unexisting files.
This happens, for instance, when a model is moved to a different folder.
The ...A Tcl error occurs when running taste-generate-skeletons, in the case that the DataView.aadl file contains Source_Text values that point to unexisting files.
This happens, for instance, when a model is moved to a different folder.
The same error also occurs when running taste-edit-project, and the editor crashes.
Example: [test-move.tgz](/uploads/62b3489db78738b48d2031174af51e8e/test-move.tgz)
```
assert@tastevm:~/tmp/test-move/moved$ taste-generate-skeletons
[INFO] Converting interface view from V2 to V1.3
couldn't open "/home/assert/tmp/test-move/orig/DataView.asn": no such file or directory
while executing
"open "$pFilename" r"
(procedure "displayASNFile2" line 2)
invoked from within
"displayASNFile2 [lindex $asnFiles 0]"
(procedure "DataViewHMI::loadDataViewFile" line 162)
invoked from within
"$loadingCommand $loadingCommandData"
(procedure "loadFile2" line 22)
invoked from within
"loadFile2 $pDataClass [list "fileName" [Parameter::getParameter $pData "fileName"] "context" $context ] "
(procedure "FileManager::loadFile" line 36)
invoked from within
"$function $pClass $pData"
(procedure "ServiceManager::dispatch" line 28)
invoked from within
"ServiceManager::dispatch $eventType $eventClass $eventData "undo""
(procedure "Scheduler::FIFOEventScheduler" line 8)
invoked from within
"Scheduler::FIFOEventScheduler"
(procedure "EventManager::addEvent" line 17)
invoked from within
"EventManager::addEvent "" "0" $service "" $eventData"
(procedure "API::Kernel::loadFile" line 9)
invoked from within
"API::Kernel::loadFile $filename $context"
(procedure "API::HMI::loadUI" line 59)
invoked from within
"API::HMI::loadUI $dataviewPath dataview"
(procedure "::InterfaceViewHMI::loadIV" line 27)
invoked from within
"$loadingCommand $loadingCommandData"
(procedure "loadFile2" line 22)
invoked from within
"loadFile2 $pDataClass [list "fileName" [Parameter::getParameter $pData "fileName"] "context" $context ] "
(procedure "FileManager::loadFile" line 36)
invoked from within
"$function $pClass $pData"
(procedure "ServiceManager::dispatch" line 28)
invoked from within
"ServiceManager::dispatch $eventType $eventClass $eventData "undo""
(procedure "Scheduler::FIFOEventScheduler" line 8)
invoked from within
"Scheduler::FIFOEventScheduler"
(procedure "EventManager::addEvent" line 17)
invoked from within
"EventManager::addEvent "" "0" $service "" $eventData"
(procedure "API::Kernel::loadFile" line 9)
invoked from within
"API::Kernel::loadFile [file normalize $ivfilename ] "interfaceview""
(procedure "TasteHMI::Constructor" line 313)
invoked from within
"# Compiled -- no source code available
error "called a copy of a compiled script""
(procedure "LaunchTaste" line 1)
invoked from within
"# Compiled -- no source code available
error "called a copy of a compiled script""
(procedure "main" line 1)
invoked from within
"# Compiled -- no source code available
error "called a copy of a compiled script""
invoked from within
"tbcload::bceval {
TclPro ByteCode 2 0 1.7 8.4
24 0 204 41 0 0 172 0 7 24 24 -1 -1
204
w0E<!(H&s!2fSs!&-<<!,Ki<!5Apiw2o=6#oGGd8.EW<!,c8=!2iA=!3oJ=!7/Ts..."
(file "/home/assert/tool-src/ellidiss/v2/TASTE-linux/bin/TASTE/lib/application/mainTaste.tcl" line 8)
invoked from within
"source $startup"
(file "/home/assert/tool-src/ellidiss/v2/TASTE-linux/bin/TASTE/main.tcl" line 38)
```Jerome LegrandJerome Legrandhttps://gitrepos.estec.esa.int/taste/ocarina/-/issues/4Context parameters are not generated for new style models2018-05-27T16:37:35ZMiguel Muñoz ArancónContext parameters are not generated for new style modelsWhen creating a model with the new editor and generating the code skeletons for a C function, no code for the context parameters is generated.
For old models, the context parameters generate some C files at `myfunction/Context-myfunctio...When creating a model with the new editor and generating the code skeletons for a C function, no code for the context parameters is generated.
For old models, the context parameters generate some C files at `myfunction/Context-myfunction.*`. For new models, no such files are generated.
Example: [test-context.tgz](/uploads/bba75a924b6b8818999f7e7f5920b20c/test-context.tgz)Maxime PerrotinMaxime Perrotinhttps://gitrepos.estec.esa.int/taste/ocarina/-/issues/1Error with interface used from local and remote partition2018-05-10T04:23:50ZMiguel Muñoz ArancónError with interface used from local and remote partitionWhen building a model with a function that provides an interface used by two other functions, one deployed in the same partition and the other deployed in a different partition, the build process fails with the following message.
```
[I...When building a model with a function that provides an interface used by two other functions, one deployed in the same partition and the other deployed in a different partition, the build process fails with the following message.
```
[INFO] Invoking Ocarina
Rebuilding because of /home/assert/tmp/test-bus/__dv_1_3.aadl
process.aadl:41:07: INPORT_function3_dosomething (entity reference) does not point to anything
process.aadl:66:98: partition1.INPORT_function3_dosomething (entity reference) does not point to anything
Cannot analyze AADL specifications
Failed while executing:
ocarina -x main.aadl
From this directory:
/home/assert/tmp/test-bus/binary.c/GlueAndBuild
```
Example model: [test-bus.tgz](/uploads/21540460c4e83e9f546cc69183df8ca4/test-bus.tgz)https://gitrepos.estec.esa.int/taste/ocarina/-/issues/6Detected exception: SYSTEM.ASSERTIONS.ASSERT_FAILURE2018-04-09T10:48:56ZElena Alana SalazarDetected exception: SYSTEM.ASSERTIONS.ASSERT_FAILUREWhen trying to generate the binary of the example attached (executing ./buildSystem.sh), we get the following error:
+========================== OCARINA BUG DETECTED =========================+
| Detected exception: SYSTEM.ASSERTIONS.ASS...When trying to generate the binary of the example attached (executing ./buildSystem.sh), we get the following error:
+========================== OCARINA BUG DETECTED =========================+
| Detected exception: SYSTEM.ASSERTIONS.ASSERT_FAILURE |
| Error: ocarina-namet.adb:148 |
| Please refer to the User's Guide for more details. |
+=========================================================================+
Example: [cas_example.tar.gz](/uploads/e0a5e875ea407f329115b1de907c11d0/cas_example.tar.gz)
Thankshttps://gitrepos.estec.esa.int/taste/ocarina/-/issues/5Ocarina bug2017-07-26T10:47:28ZJavier Herrero MartínOcarina bugWhile generating the binaries for a model generated from OSRA Editor I'm getting this ocarina error:
```
+========================== OCARINA BUG DETECTED =========================+
| Detected exception: SYSTEM.ASSERTIONS.ASSERT_FAILURE ...While generating the binaries for a model generated from OSRA Editor I'm getting this ocarina error:
```
+========================== OCARINA BUG DETECTED =========================+
| Detected exception: SYSTEM.ASSERTIONS.ASSERT_FAILURE |
| Error: namet.adb:133 |
| Please refer to the User's Guide for more details. |
+=========================================================================+
```
Is there any workaround in order to avoid this bug?
Regards.
Javier