Comments (6)
Fixed the issue by adapting my code generator to define pok_ports_names_max_len variable.
from pok.
Hi Etienne,
Julien is right, there is a fix in my patch for #9 with an AWK one-liner to generate pok_port_names_max_len during compilation phase. Then this variable is extern in syscall.c and should be conditionally included only if we NEED_PORT.
I didn't touch your perl script and i think it might be the correct way to generate this variable, but if you do so, don't forget to remove my one-liner in the Makefile.
from pok.
Did you commit anything ? i don't see your changes.
from pok.
The fix was in my AADL to pok code generator (on another repository).
I saw the AWK part but it seems the problem was in my tool and did not appear in previous versions for a reason I do not understand. I also had a problem in conflicting definitions of strlen but I fixed it in my latest commit: it appeared yesterday and did not show up before.
Note/question: if the variable is defined in deployment.c, wouldn't the awk part lead to a redefinition of the variable after it is copied in sizes.c?
from pok.
I generated it in "sizes.c" as it is related to size questions :) If you also generate it in “deployment.c" obviously there will be a conflict.
Whatever your AADL generated does, this should not impact the compilation phase of the "generated" code, as the one-liner is called during final compilation phase.
I think you should take the decision on your own, whether or not doing it in the Makefile or in the perl configuration script (which i think is the best option as it is responsible for port names generation too).
By the way i didn't see the "#ifdef" around the "extern" definition of the "pok_port_names_max_len" in "syscall.c". Did you commit it ? It is mandatory, because if we do not make uses of POK ports in an example, there will be no definition of the variable outside "syscall.c".
from pok.
I just did the push
from pok.
Related Issues (20)
- Failed running multiple instances of qemu with pok (with qemu 3.0.0) HOT 9
- Access to physical memory HOT 1
- Failed running the example arinc653-buffer
- ARM supported HOT 1
- Build is failing HOT 5
- build fails: code-inspector installation fails HOT 3
- The mutexes example runs fail
- Can't run examples HOT 7
- install ocarina failed with ./misc/get_ocarina.sh HOT 6
- AADL POK::Major_Frame;Slots;Slots_Allocation
- Ada headers in the arinc653 directory
- Problem when makes the pok-main example arinc653-queueing HOT 3
- Userguide Documentation fails to compile. HOT 2
- Impossible to use this repository on Windows machines
- Does pok support ARM?
- Driver support
- can not run example
- Dependency Dashboard
- Action Required: Fix Renovate Configuration
- code generator have some problem?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pok.