[LITMUS^RT] CreateAPluginTutorial - Step4 : error when compiling
Björn Brandenburg
bbb at mpi-sws.org
Tue May 7 14:14:40 CEST 2013
On May 7, 2013, at 2:11 PM, Björn Brandenburg <bbb at mpi-sws.org> wrote:
>
> On May 7, 2013, at 9:29 AM, Schorr Stefan <stschorr at eit.uni-kl.de> wrote:
>>
>> I'm trying to follow the Create A Plugin Tutorial from the webpage.
>> The first steps work like a charm, step 4 however doesn't compile :(
>>
>> I copied the code from the website and I created a new local git
>> branch, so I'm absolutely sure that the only file I changed - apart
>> from the Makefile - is sched_demo.c (so I don't understand why
>> the error messages below point to .h files).
>>
>> Please give me some hint what goes wrong here...
>>
>> Best Regards
>> Stefan
>>
>>
>> Here's the error I get, when doing make bzImage
>>
>> In file included from litmus/sched_demo.c:3:
>> include/litmus/litmus.h:74: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘litmus_clock’
>> include/litmus/litmus.h: In function ‘is_kernel_np’:
>> include/litmus/litmus.h:120: error: dereferencing pointer to incomplete type
>
>
> Hi Stefan,
>
> this is a configuration error in LITMUS^RT. Please enable the configuration option CONFIG_NP_SECTION, which should silence the error. Sorry about that...
Actually, litmus/litmus.h already has correct dummy implementations for the !CONFIG_NP_SECTION case, so it's something different. Have you tried a 'make clean'?
- Björn
More information about the litmus-dev
mailing list