Hi all!
I got several errors while compiling L4RE(r59). It's about real-time scheduling extension headers in L4RE(file 'pkg/l4sys/ARCH-x86/rt_sched.h', 'pkg/l4sys/ARCH-x86/rt_sched-proto.h').
Here's the mesage:
In file included from /home/soap/project/L4-Build/x86/l4re/include/x86/l4/sys/rt_sched.h:29:0, from /home/soap/project/L4/l4/pkg/rtdemo/server/src/rtdemo.c:13:
/home/soap/project/L4-Build/x86/l4re/include/x86/l4/sys/rt_sched-proto.h:30:29: fatal error: l4/sys/syscalls.h: No such file or directory
I can't find any header named "syscalls.h" in pkg/l4sys, so I comment it.
Then I got more errors:
In file included from /home/soap/project/L4-Build/x86/l4re/include/x86/l4/sys/rt_sched.h:29:0, from /home/soap/project/L4/l4/pkg/rtdemo/server/src/rtdemo.c:13: /home/soap/project/L4-Build/x86/l4re/include/x86/l4/sys/rt_sched-proto.h:57:5: error: unknown type name ‘l4_low_high_t’
/home/soap/project/L4-Build/x86/l4re/include/x86/l4/sys/rt_sched-proto.h:79:16: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘slice’
/home/soap/project/L4-Build/x86/l4re/include/x86/l4/sys/rt_sched-proto.h:105:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘slice’
/home/soap/project/L4-Build/x86/l4re/include/x86/l4/sys/rt_sched-proto.h:127:31: error: unknown type name ‘l4_threadid_t’
I can't find the definition of 'l4_low_high_t' and 'l4_threadid_t' in L4RE, but instead I found them in the legacy l4env:
typedef struct { l4_umword_t low; l4_umword_t high; } l4_low_high_t;
tyoedef union { l4_uint32_t raw; l4_threadid_struct_t id; } l4_threadid_t;
Should I define them the same as l4env?
The declairation 'L4_INLINE int l4_rt_add_time slice(l4_threadid_t dest, int prio, int time)", which also appears in the online doc( http://os.inf.tu-dresden.de/L4Re/doc/group__api__calls__rt__sched.html), seems strange. Is it a typo? "l4_rt_add_time_slice" seems reasonable.
I'm not sure whether these are proper ways to fix so I need some help. Any advice would be appreciated.
Soap
Hi,
On Wed Dec 18, 2013 at 16:29:28 +0800, Wei Jin wrote:
I got several errors while compiling L4RE(r59). It's about real-time scheduling extension headers in L4RE(file 'pkg/l4sys/ARCH-x86/rt_sched.h', 'pkg/l4sys/ARCH-x86/rt_sched-proto.h').
Here's the mesage: The declairation 'L4_INLINE int l4_rt_add_time slice(l4_threadid_t dest, int prio, int time)", which also appears in the online doc( http://os.inf.tu-dresden.de/L4Re/doc/group__api__calls__rt__sched.html), seems strange. Is it a typo? "l4_rt_add_time_slice" seems reasonable.
I'm not sure whether these are proper ways to fix so I need some help. Any advice would be appreciated.
There's no way fixing this because those old files are there only for reference and won't work, foremost because the kernel does not support this interface currently. Actually I should have deleted those files or at least mark this properly. Sorry for this.
Adam
l4-hackers@os.inf.tu-dresden.de