error building latest rtems

Daron Chabot daron.chabot at gmail.com
Sun Jun 27 17:00:39 UTC 2010


This is an RTEMS problem and should be directed at their mailing list:
rtems-users at rtems.org

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:
contrib/crossrpms/patches/newlib-1.18.0-rtems4.10-20100402.diff

<rtems-users at rtems.org>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
http://www.rtems.org/ftp/pub/rtems/SOURCES/4.10/ ??

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.

HTH


-- dc

On Sun, Jun 27, 2010 at 12:27 PM, Silver <marco_hair at 163.com> wrote:

> hi,
>
> 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:
> make[5]: Entering directory
> `/usr/local/rtems/build/i386-rtems/c/pc386/cpukit/posix'
> 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
> ../../../../../../rtems-4.10/c/src/../../cpukit/posix/src/pthread.c: In
> function '_POSIX_Threads_Sporadic_budget_TSR':
> ../../../../../../rtems-4.10/c/src/../../cpukit/posix/src/pthread.c:82:
> error: 'struct sched_param' has no member named 'sched_ss_init_budget'
> ../../../../../../rtems-4.10/c/src/../../cpukit/posix/src/pthread.c:109:
> error: 'struct sched_param' has no member named 'sched_ss_repl_period'
> ../../../../../../rtems-4.10/c/src/../../cpukit/posix/src/pthread.c: In
> function '_POSIX_Threads_Sporadic_budget_callout':
> ../../../../../../rtems-4.10/c/src/../../cpukit/posix/src/pthread.c:132:
> error: 'struct sched_param' has no member named 'sched_ss_low_priority'
> make[5]: *** [src/libposix_a-pthread.o] Error 1
> make[5]: Leaving directory
> `/usr/local/rtems/build/i386-rtems/c/pc386/cpukit/posix'
> make[4]: *** [all-recursive] Error 1
> make[4]: Leaving directory
> `/usr/local/rtems/build/i386-rtems/c/pc386/cpukit'
> make[3]: *** [all] Error 2
> make[3]: Leaving directory
> `/usr/local/rtems/build/i386-rtems/c/pc386/cpukit'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/usr/local/rtems/build/i386-rtems/c/pc386'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/local/rtems/build/i386-rtems/c'
> make: *** [all-recursive] Error 1
> make: Leaving directory `/usr/local/rtems/build'
> Does anyone has similiar problems? thanks a lot for your help.
>
>
> Best regards
> Geyang  2010-06-28
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20100627/099c1e14/attachment.html>


More information about the users mailing list