This is an RTEMS problem and should be directed at their mailing list:<div><a href="mailto:rtems-users@rtems.org" target="_blank">rtems-users@rtems.org</a></div><div><br></div><div>You can configure rtems with --disable-posix (this may break things when trying to build EPICS though...), or apply the proper patch to newlib-1.18.0. You can find this patch in the latest rtems source:</div>
<div>contrib/crossrpms/patches/newlib-1.18.0-rtems4.10-20100402.diff</div><div><br></div><div><a href="mailto:rtems-users@rtems.org" target="_blank"></a>The problem is that you're using an incompatible patch for newlib-1.18.0. Maybe newlib-1.18.0-rtems4.10-20091218.diff from <a href="http://www.rtems.org/ftp/pub/rtems/SOURCES/4.10/">http://www.rtems.org/ftp/pub/rtems/SOURCES/4.10/</a> ??</div>
<div><br></div><div>The latest rtems patch for newlib (not sure of the version) includes changes to the "sched_param" structure in libc/include/sys/sched.h, which the latest code in score/posix/src now expects.</div>
<div><br></div><div>HTH</div><div><br></div><div><br></div><div>-- dc<br><br><div class="gmail_quote">On Sun, Jun 27, 2010 at 12:27 PM, Silver <span dir="ltr"><<a href="mailto:marco_hair@163.com" target="_blank">marco_hair@163.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hi,<br>
<br>
I tried to build rtems cross-compile environment. When I tried to compile the latest rtems (from CVS) with i386-rtems-gcc-4.4.2, I got the following errors:<br>
make[5]: Entering directory `/usr/local/rtems/build/i386-rtems/c/pc386/cpukit/posix'<br>
i386-rtems-gcc --pipe -DHAVE_CONFIG_H -I.. -I../../cpukit/../../../pc386/lib/include -D__RTEMS_INSIDE__ -Werror=overflow -Werror=pointer-to-int-cast -Werror=int-to-pointer-cast -mtune=i386 -O2 -g -Wall -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -MT src/libposix_a-pthread.o -MD -MP -MF src/.deps/libposix_a-pthread.Tpo -c -o src/libposix_a-pthread.o `test -f 'src/pthread.c' || echo '../../../../../../rtems-4.10/c/src/../../cpukit/posix/'`src/pthread.c<br>
../../../../../../rtems-4.10/c/src/../../cpukit/posix/src/pthread.c: In function '_POSIX_Threads_Sporadic_budget_TSR':<br>
../../../../../../rtems-4.10/c/src/../../cpukit/posix/src/pthread.c:82: error: 'struct sched_param' has no member named 'sched_ss_init_budget'<br>
../../../../../../rtems-4.10/c/src/../../cpukit/posix/src/pthread.c:109: error: 'struct sched_param' has no member named 'sched_ss_repl_period'<br>
../../../../../../rtems-4.10/c/src/../../cpukit/posix/src/pthread.c: In function '_POSIX_Threads_Sporadic_budget_callout':<br>
../../../../../../rtems-4.10/c/src/../../cpukit/posix/src/pthread.c:132: error: 'struct sched_param' has no member named 'sched_ss_low_priority'<br>
make[5]: *** [src/libposix_a-pthread.o] Error 1<br>
make[5]: Leaving directory `/usr/local/rtems/build/i386-rtems/c/pc386/cpukit/posix'<br>
make[4]: *** [all-recursive] Error 1<br>
make[4]: Leaving directory `/usr/local/rtems/build/i386-rtems/c/pc386/cpukit'<br>
make[3]: *** [all] Error 2<br>
make[3]: Leaving directory `/usr/local/rtems/build/i386-rtems/c/pc386/cpukit'<br>
make[2]: *** [all-recursive] Error 1<br>
make[2]: Leaving directory `/usr/local/rtems/build/i386-rtems/c/pc386'<br>
make[1]: *** [all-recursive] Error 1<br>
make[1]: Leaving directory `/usr/local/rtems/build/i386-rtems/c'<br>
make: *** [all-recursive] Error 1<br>
make: Leaving directory `/usr/local/rtems/build'<br>
Does anyone has similiar problems? thanks a lot for your help.<br>
<br>
<br>
Best regards<br>
Geyang 2010-06-28<br>
<br>
<br>
</blockquote></div><br></div>