<p dir="ltr">Any ideas / updates / suggestions on this? </p>
<p dir="ltr">Thanking You, <br>
Darshit Shah <br>
Sent from mobile device. Please excuse my brevity </p>
<div class="gmail_quote">On 01-Apr-2016 4:13 pm, "Darshit Shah" <<a href="mailto:darnir@gmail.com">darnir@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 03/30, Joel Sherrill wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Wed, Mar 30, 2016 at 9:03 AM, Darshit Shah <<a href="mailto:darnir@gmail.com" target="_blank">darnir@gmail.com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I've started trying to bring the scheduling simulator in synch with the<br>
current RTEMS master. Joel has created Trac Ticket #2679 (<br>
<a href="https://devel.rtems.org/ticket/2679" rel="noreferrer" target="_blank">https://devel.rtems.org/ticket/2679</a>) for this task.<br>
<br>
While trying to get the simulator to compile, GCC spits out the following<br>
error:<br>
<br>
In file included from<br>
/home/thedoctor/Programming/rtems/rtems/cpukit/score/include/rtems/score/threadq.h:25:0,<br>
                 from<br>
/home/thedoctor/Programming/rtems/rtems/cpukit/score/include/rtems/score/thread.h:35,<br>
                 from<br>
/home/thedoctor/Programming/rtems/rtems/cpukit/score/include/rtems/score/heap.h:22,<br>
                 from<br>
/home/thedoctor/Programming/rtems/rtems/cpukit/rtems/include/rtems/rtems/types.h:26,<br>
                 from<br>
/home/thedoctor/Programming/rtems/rtems/cpukit/rtems/include/rtems/rtems/config.h:24,<br>
                 from<br>
/home/thedoctor/Programming/rtems/rtems/cpukit/sapi/include/rtems/config.h:57,<br>
                 from<br>
../../../rtems-schedsim/schedsim/rtems/rtems_init.c:25:<br>
/home/thedoctor/Programming/rtems/rtems/cpukit/score/include/rtems/score/rbtree.h:21:22:<br>
fatal error: sys/tree.h: No such file or directory<br>
<br>
Some scouting around reveals that the sys/tree.h header file is available<br>
in Newlib. However, I am unable to find a way to point the compiler in that<br>
direction for the scheduling simulator. Can someone please point me to the<br>
right set of Automake directives I'd require for this?<br>
<br>
<br>
</blockquote>
There are two alternatives for missing libc files like this.<br>
<br>
1) hope they really aren't needed and ifdef out the include. I suspect this<br>
won't work here.<br>
<br>
</blockquote>
That could work for a few cases, but in this case I doubt that'll help.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2) put a copy in schedsim/rtems/sched_cpu/sys. Looks like I hit other<br>
issues like a missing<br>
cpuset.h method and had to add a stub sys/lock.h.<br>
<br>
</blockquote>
Is this the only solution we have? Because, I see a few new issues where newlib now has a newer version of the BSD time.h file and the schedsim fails to build without it. Currently, the only way is to copy all those header files into schedsim/rtems/sched_cpu/sys. Would it possible to extend schedsim to directly use newlib just like the RTEMS build does?  Then we won't need to copy all these files around and keep duplicate copies.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Add a section to the instructions in the ticket. I forgot about this case.<br>
<br>
Hopefully this isn't a bad thing to fix. Since you are layering BSD<br>
capabilities on top of<br>
glibc, it can be tricky to avoid naming conflicts.<br>
<br>
--joel<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
--<br>
Thanking You,<br>
Darshit Shah<br>
<br>
<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">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>
<br>
</blockquote></blockquote>
<br>
-- <br>
Thanking You,<br>
Darshit Shah<br>
</blockquote></div>