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

`PTHREAD_DESTRUCTOR_ITERATIONS' undeclared



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.)
  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