[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

`PTHREAD_DESTRUCTOR_ITERATIONS' undeclared



Stephan Wilms wrote:
> 
> Hi,
> 
> Trying to build RTEMS (on Win-NT using CygWin 20.1) seems to become a
> neverending story for me :-) After solving the environment variable
> problem yesterday I arrived at a compiler error today. Here is what
> happens after I type "make all" (I formatted this slightly to improve
> readability):
> 
>   /gcc-i386-rtems/bin/i386-rtems-gcc -Wall -ansi -fasm -g
>      -B/build/rtems/force386/lib/ -specs bsp_specs -qrtems
>      -D__RTEMS_INSIDE__ -O4 -fomit-frame-pointer
>      -c -o o-force386/key.o
>      /source/rtems-4.0.0/c/src/exec/posix/src/key.c
>   /source/rtems-4.0.0/c/src/exec/posix/src/key.c: In function
> `_POSIX_Keys_Run_destructors':
>   /source/rtems-4.0.0/c/src/exec/posix/src/key.c:259:
> `PTHREAD_DESTRUCTOR_ITERATIONS' undeclared (first use in this function)
>   /source/rtems-4.0.0/c/src/exec/posix/src/key.c:259: (Each undeclared
> identifier is reported only once
>   /source/rtems-4.0.0/c/src/exec/posix/src/key.c:259: for each function
> it appears in.)

This one is an oldy but goody.  Did you use bit to install the tools?
This indicates that the header files for RTEMS from newlib where not
(for some reason) found by gcc when it generated its limits.h.

And please pick another BSP.  The force386 is obsolete and does not make
a good example.  Use pc386 instead.  

   make[5]: *** [o-force386/key.o] Error 1
>   make[4]: *** [all] Error 1
>   make[3]: *** [all] Error 1
>   make[2]: *** [all] Error 1
>   make[1]: *** [all] Error 1
>   make[1]: Leaving directory `/build/rtems/c'
>   make: *** [all] Error 1
> 
> All I did (before the "make all") was use this configuration command:
>   rtems-4.0.0/configure --verbose
>                         --target=i386-rtems
>                         --prefix=/gcc-i386-rtems
>                         --disable-hwapi
>                         --disable-cxx
>                         --enable-networking
>                         --enable-posix
> (I tried to do it the way "bit_rtems" does it for Unix)
> 
> You can probably guess my question: What is going wrong ?
> 
> Stephan
> 
> --
> Stephan Wilms (stephan.wilms at cwa.de)
> CWA-GmbH, Aachen, Germany

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel at OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985