<div dir="ltr"><div><div>Hi Bjorn,<br><br></div>Thank you for responding quickly. I did take a look at that link before sending out an email and also greped to find CPU_ALLOC etc which was unsuccessful. I was wondering if I was missing something else. But maybe it is a peculiarity of their headers as you pointed out. Can you please release a patch which resolves this problem? <br>
<br></div>Regards,<br>Shrinivas<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jan 7, 2014 at 2:39 AM, Björn Brandenburg <span dir="ltr"><<a href="mailto:bbb@mpi-sws.org" target="_blank">bbb@mpi-sws.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 06 Jan 2014, at 22:52, Shrinivas Anand Panchamukhi <<a href="mailto:spancha@ncsu.edu">spancha@ncsu.edu</a>> wrote:<br>
<br>
> I was following the wiki to install liblitmus on my machine (I have litmus^ rt configured and running). When I hit make, the build fails due to the following warnings.<br>
><br>
> src/migration.c: In function 'be_migrate_thread_to_cpu':<br>
> src/migration.c:76: warning: implicit declaration of function 'CPU_ALLOC'<br>
> src/migration.c:76: warning: assignment makes pointer from integer without a cast<br>
> src/migration.c:77: warning: implicit declaration of function 'CPU_ALLOC_SIZE'<br>
> src/migration.c:78: warning: implicit declaration of function 'CPU_ZERO_S'<br>
> src/migration.c:79: warning: implicit declaration of function 'CPU_SET_S'<br>
> src/migration.c:87: warning: implicit declaration of function 'CPU_FREE'<br>
> src/migration.c: In function '__be_migrate_thread_to_cluster':<br>
> src/migration.c:122: warning: assignment makes pointer from integer without a cast<br>
><br>
> Can someone please help me out? I have tried compiling this on Litmus^rt and on CentOs (kernel 2.6.32.27) running on x86_64. I have made sure that the .config file has the right path for the litmus ^ rt source.<br>
<br>
</div></div>Hi Shrinivas,<br>
<br>
welcome to the LITMUS^RT ML. This is not a case of missing LITMUS^RT headers. I think your build setup is somehow missing definitions from sched.h.<br>
<br>
Have you googled the problem? This hit seems applicable.<br>
<br>
<a href="http://stackoverflow.com/questions/8518264/where-is-the-declaration-of-cpu-alloc" target="_blank">http://stackoverflow.com/questions/8518264/where-is-the-declaration-of-cpu-alloc</a><br>
<br>
The poster runs RHEL, which uses the same software as CentOS, so maybe it’s a peculiarity of their headers. I haven’t seen this problem in other distros, but I’d be happy to merge a patch that resolves the problem on CentOS.<br>
<br>
Thanks,<br>
Björn<br>
<br>
<br>
_______________________________________________<br>
litmus-dev mailing list<br>
<a href="mailto:litmus-dev@lists.litmus-rt.org">litmus-dev@lists.litmus-rt.org</a><br>
<a href="https://lists.litmus-rt.org/listinfo/litmus-dev" target="_blank">https://lists.litmus-rt.org/listinfo/litmus-dev</a><br>
</blockquote></div><br></div>