<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 30, 2016 at 9:03 AM, Darshit Shah <span dir="ltr"><<a href="mailto:darnir@gmail.com" target="_blank">darnir@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>I've started trying to bring the scheduling simulator in synch with the current RTEMS master. Joel has created Trac Ticket #2679 (<a href="https://devel.rtems.org/ticket/2679" target="_blank">https://devel.rtems.org/ticket/2679</a>) for this task.<br><br></div>While trying to get the simulator to compile, GCC spits out the following error:<br><br>In file included from /home/thedoctor/Programming/rtems/rtems/cpukit/score/include/rtems/score/threadq.h:25:0,<br> from /home/thedoctor/Programming/rtems/rtems/cpukit/score/include/rtems/score/thread.h:35,<br> from /home/thedoctor/Programming/rtems/rtems/cpukit/score/include/rtems/score/heap.h:22,<br> from /home/thedoctor/Programming/rtems/rtems/cpukit/rtems/include/rtems/rtems/types.h:26,<br> from /home/thedoctor/Programming/rtems/rtems/cpukit/rtems/include/rtems/rtems/config.h:24,<br> from /home/thedoctor/Programming/rtems/rtems/cpukit/sapi/include/rtems/config.h:57,<br> from ../../../rtems-schedsim/schedsim/rtems/rtems_init.c:25:<br>/home/thedoctor/Programming/rtems/rtems/cpukit/score/include/rtems/score/rbtree.h:21:22: fatal error: sys/tree.h: No such file or directory<br><br></div>Some scouting around reveals that the sys/tree.h header file is available in Newlib. However, I am unable to find a way to point the compiler in that direction for the scheduling simulator. Can someone please point me to the right set of Automake directives I'd require for this? <br><span class="HOEnZb"><font color="#888888"><div><div><div><br clear="all"></div></div></div></font></span></div></blockquote><div><br></div><div>There are two alternatives for missing libc files like this. </div><div><br></div><div>1) hope they really aren't needed and ifdef out the include. I suspect this won't work here.</div><div><br></div><div>2) put a copy in schedsim/rtems/sched_cpu/sys. Looks like I hit other issues like a missing</div><div>cpuset.h method and had to add a stub sys/lock.h.</div><div><br></div><div>Add a section to the instructions in the ticket. I forgot about this case.</div><div><br></div><div>Hopefully this isn't a bad thing to fix. Since you are layering BSD capabilities on top of</div><div>glibc, it can be tricky to avoid naming conflicts. </div><div><br></div><div>--joel</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span class="HOEnZb"><font color="#888888"><div><div><div><div><div><div><br>-- <br><div>Thanking You,<br>Darshit Shah<br><br></div>
</div></div></div></div></div></div></font></span></div>
<br>_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br></blockquote></div><br></div></div>