Compiling demo/alchemy/altency.c for Cobalt core

Vitaly Chikunov vt at
Fri Sep 25 22:57:28 CEST 2020


While making Xenomai packages for ALT Linux I try to test various use
cases, but found some troubles:

There is `demo/alchemy/altency.c` source. It compiles OK for Mercury,
but fails for Cobalt.


implies that it's enough to pass xeno-config output as gcc args. So, I try:

  demo/alchemy# gcc altency.c `/usr/lib/xenomai/cobalt/bin/xeno-config --posix --alchemy --cflags --ldflags` -lpthread -lrt -lm
  altency.c:447:10: fatal error: cobalt/uapi/syscall.h: No such file or directory
    447 | #include <cobalt/uapi/syscall.h>
	|          ^~~~~~~~~~~~~~~~~~~~~~~
  compilation terminated.

`cobalt/uapi/syscall.h` looks like it belongs kernel headers. But, I
don't find anywhere that kernel headers should be used for cobalt
applications. (If I add to the gcc:


the demo compiles OK.)

If kernel headers they are required - shouldn't xeno-config pass them?
Or this is documented somewhere I missed?


More information about the Xenomai mailing list