<br><br><div class="gmail_quote">On Sun, Jun 27, 2010 at 1:22 PM, Silver <span dir="ltr"><<a href="mailto:marco_hair@163.com">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, Daron Chabot:<br>
<br>
Thanks a lot for your reply.<br>
In fact, I have tried that switch (--disable-posix) before, it works. but I need posix enable.<br>
You are quite right, I just use the newlib-1.18.0-rtems4.10-20091218.diff which coming with newlib-1.18.0, it must be the problem.<br>
But, with the latest version of rtems, in contrib/crossrpms/patches directory, there are only two patchs named as newlib-1.18.0-rtems4.11-xxx, not newlib-1.18.0-rtems4.10-xxx. I tried it, seems doesn't work.<br>
How to get it?<br></blockquote><div><br></div><div>You likely obtained your cvs source from the development HEAD version. Hence, your rtems source is what will become release 4.11 some time in the future.</div><div><br></div>
<div>You need to specify the 4.10 branch when checking out code from the cvs repo:</div><div><br></div><div>cvs -d :pserver:anoncvs@www.rtems.com:/usr1/CVS co -rrtems-4-10-branch rtems</div><div><br></div><div>This version will have the correct newlib patch:</div>
<div>newlib-1.18.0-rtems4.10-20100426.diff</div><div><br></div><div>Note: you will need to re-build your toolchain with the correct patches from contrib/crossrpms/patches, and likely need to download the correct base versions of the tools (i.e. gcc-4.4.4, etc)</div>
<div><br></div><div><br></div><div>-- dc</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
======= At 2010-06-28, 01:01:00 you wrote: =======<br>
<div class="im"><br>
>This is an RTEMS problem and should be directed at their mailing list:<br>
><a href="mailto:rtems-users@rtems.org">rtems-users@rtems.org</a><br>
><br>
>You can configure rtems with --disable-posix (this may break things when<br>
>trying to build EPICS though...), or apply the proper patch to<br>
>newlib-1.18.0. You can find this patch in the latest rtems source:<br>
>contrib/crossrpms/patches/newlib-1.18.0-rtems4.10-20100402.diff<br>
><br>
</div>><<a href="mailto:rtems-users@rtems.org">rtems-users@rtems.org</a>>The problem is that you're using an incompatible<br>
<div class="im">>patch for newlib-1.18.0. Maybe newlib-1.18.0-rtems4.10-20091218.diff from<br>
><a href="http://www.rtems.org/ftp/pub/rtems/SOURCES/4.10/" target="_blank">http://www.rtems.org/ftp/pub/rtems/SOURCES/4.10/</a> ??<br>
><br>
>The latest rtems patch for newlib (not sure of the version) includes changes<br>
>to the "sched_param" structure in libc/include/sys/sched.h, which the latest<br>
>code in score/posix/src now expects.<br>
><br>
>HTH<br>
><br>
><br>
>-- dc<br>
><br>
>On Sun, Jun 27, 2010 at 12:27 PM, Silver <<a href="mailto:marco_hair@163.com">marco_hair@163.com</a>> wrote:<br>
><br>
</div><div><div></div><div class="h5">>> hi,<br>
>><br>
>> I tried to build rtems cross-compile environment. When I tried to compile<br>
>> the latest rtems (from CVS) with i386-rtems-gcc-4.4.2, I got the following<br>
>> errors:<br>
>> make[5]: Entering directory<br>
>> `/usr/local/rtems/build/i386-rtems/c/pc386/cpukit/posix'<br>
>> i386-rtems-gcc --pipe -DHAVE_CONFIG_H -I..<br>
>> -I../../cpukit/../../../pc386/lib/include -D__RTEMS_INSIDE__<br>
>> -Werror=overflow -Werror=pointer-to-int-cast -Werror=int-to-pointer-cast<br>
>> -mtune=i386 -O2 -g -Wall -Wimplicit-function-declaration -Wstrict-prototypes<br>
>> -Wnested-externs -MT src/libposix_a-pthread.o -MD -MP -MF<br>
>> src/.deps/libposix_a-pthread.Tpo -c -o src/libposix_a-pthread.o `test -f<br>
>> 'src/pthread.c' || echo<br>
>> '../../../../../../rtems-4.10/c/src/../../cpukit/posix/'`src/pthread.c<br>
>> ../../../../../../rtems-4.10/c/src/../../cpukit/posix/src/pthread.c: In<br>
>> function '_POSIX_Threads_Sporadic_budget_TSR':<br>
>> ../../../../../../rtems-4.10/c/src/../../cpukit/posix/src/pthread.c:82:<br>
>> error: 'struct sched_param' has no member named 'sched_ss_init_budget'<br>
>> ../../../../../../rtems-4.10/c/src/../../cpukit/posix/src/pthread.c:109:<br>
>> error: 'struct sched_param' has no member named 'sched_ss_repl_period'<br>
>> ../../../../../../rtems-4.10/c/src/../../cpukit/posix/src/pthread.c: In<br>
>> function '_POSIX_Threads_Sporadic_budget_callout':<br>
>> ../../../../../../rtems-4.10/c/src/../../cpukit/posix/src/pthread.c:132:<br>
>> 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<br>
>> `/usr/local/rtems/build/i386-rtems/c/pc386/cpukit/posix'<br>
>> make[4]: *** [all-recursive] Error 1<br>
>> make[4]: Leaving directory<br>
>> `/usr/local/rtems/build/i386-rtems/c/pc386/cpukit'<br>
>> make[3]: *** [all] Error 2<br>
>> make[3]: Leaving directory<br>
>> `/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>
>><br>
><br>
<br>
</div></div>= = = = = = = = = = = = = = = = = = = =<br>
<div><div></div><div class="h5"><br>
<br>
Best regards<br>
Geyang 2010-06-28<br>
<br>
<br>
</div></div></blockquote></div><br>