Re : RTEMS 4.10 Autoconf tools

Yann Sionneau yann at minet.net
Fri Sep 10 06:02:33 UTC 2010


Hi, 

I had the same errors, it turned out to be because I compiled gcc with an outdated version of newlib.

A simple fix that worked for me was to compile gcc with the latest newlib source code.
 
I followed this tutorial on rtems wiki page : http://www.rtems.com/wiki/index.php/Building_the_RTEMS_toolset_on_Ubuntu

Hope this will help you !

My 2 cents

Yann.

----- Reply message -----
De : "Ian Caddy" <ianc at goanna.iinet.net.au>
Date : ven., sept. 10, 2010 05:30
Objet : RTEMS 4.10 Autoconf tools
Pour : <rtems-users at rtems.org>



On 10/09/2010 10:30 AM, Ian Caddy wrote:
>
> This seems to have sorted the bootstrap out, now onto the configure and
> make...
>
> I will let you know if I have any more issues.

OK, it turns out the built myself autotools were not the problem, I 
still have a compile fail at cpulit/posix/src/pthread.c

Error below:


arm-rtems4.10-gcc --pipe -DHAVE_CONFIG_H   -I.. 
-I../../cpukit/../../../at91sam9263ek/lib/include -D__RTEMS_INSIDE__ 
-Werror=overflow -Werror=pointer-to-int-cast -Werror=int-to-pointer-cast 
-mstructure-size-boundary=8 -mcpu=arm926ej-s -mfpu=vfp -mfloat-abi=soft 
-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 
'/c/rtems-4.10/c/src/../../cpukit/posix/'`src/pthread.c
c:/rtems-4.10/cpukit/posix/src/pthread.c: In function 
'_POSIX_Threads_Sporadic_budget_TSR':
c:/rtems-4.10/cpukit/posix/src/pthread.c:82: error: 'struct sched_param' 
has no member named 'sched_ss_init_budget'
c:/rtems-4.10/cpukit/posix/src/pthread.c:109: error: 'struct 
sched_param' has no member named 'sched_ss_repl_period'
c:/rtems-4.10/cpukit/posix/src/pthread.c: In function 
'_POSIX_Threads_Sporadic_budget_callout':
c:/rtems-4.10/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


This "struct sched_param" is defined in the compiler rtems includes from:

/opt/rtems-4.10/arm-rtems4.10/include/sys/sched.h as:

> /* Scheduling Parameters, P1003.1b-1993, p. 249
>    NOTE:  Fields whose name begins with "ss_" added by P1003.4b/D8, p. 33.  */
>
> struct sched_param {
>   int sched_priority;           /* Process execution scheduling priority */
>
> #if defined(_POSIX_SPORADIC_SERVER)
>   int ss_low_priority;          /* Low scheduling priority for sporadic */
>                                 /*   server */
>   struct timespec ss_replenish_period;
>                                 /* Replenishment period for sporadic server */
>   struct timespec ss_initial_budget;   /* Initial budget for sporadic server */
> #endif
> };

And it does not have the extra parameters defined.

It looks like the prebuilt mingw tools are out of sync with the 4.10 source.

We can built this bsp using Ubuntu where the tools were built in house 
using all the RTEMS patches.

regards,

Ian C.

-- 
Ian Caddy
Goanna Technologies Pty Ltd
+61 8 9444 2634


_______________________________________________
rtems-users mailing list
rtems-users at rtems.org
http://www.rtems.org/mailman/listinfo/rtems-users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20100910/dfaeb068/attachment.html>


More information about the users mailing list