Getting reacquainted -- Cygwin/powerpc-rtems Build Error

Ralf Corsepius ralf.corsepius at rtems.org
Fri Dec 31 03:39:13 UTC 2004


On Thu, 2004-12-30 at 16:56 -0500, Mills, John M. wrote:
> Hello -
> 
> Returning to RTEMS,

Welcome back!

>  I'm trying to build RTEMS-4.6.2 for the powerpc-rtems
> targets, under Cygwin in a MsWinXPPro environment. I built a fresh set of
> cross-tools based on binutils-2.15, gcc-3.3.5 and newlib-1.11.0 with RTEMS
> patches applied and tried a configure/build with "--target=powerpc-rtems
> --enable-cxx --enable-tests". Configuration appears to run through, but all
> the BSP's builds crash on a 'pthread.h' problem with error reports as
> follows:
> ============================================================================
> ===========
> powerpc-rtems-gcc --pipe -DHAVE_CONFIG_H   -isystem
> ../../../../dmv177/lib/include -D__RTEMS_INSIDE__     -mcpu=603e
> -D_OLD_EXCEPTIONS -Dppc603e  -O4 -fno-keep-inline-functions -g -Wall -ansi
> -fasm  -o o-optimize/posixapi.o -c
> /usr/src/rtems-4.6.2/c/src/../../cpukit/sapi/src/posixapi.c
> In file included from ../../../../dmv177/lib/include/sched.h:21,
>                  from /usr/local/powerpc-rtems/sys-include/pthread.h:15,
>                  from
> ../../../../dmv177/lib/include/rtems/posix/cond.inl:19,
>                  from ../../../../dmv177/lib/include/rtems/posix/cond.h:158,
>                  from /usr/src/rtems-4.6.2/cpukit/sapi/src/posixapi.c:32:
> /usr/local/powerpc-rtems/sys-include/pthread.h:168: error: parse error
> before '*' token
>  [... same error repeated over next 9 lines ...]
> /usr/local/powerpc-rtems/sys-include/pthread.h:179: error: parse error
> before '*' token
> make[4]: *** [o-optimize/posixapi.o] Error 1
> ============================================================================
> ===========
> 
> There appears to be a circular inclusion path here - does it look familiar
> to anyone?

/usr/local/powerpc-rtems/sys-include/pthread.h
is not part of RTEMS or its toolchain.

I'd assume your toolchain has not been built correctly.

Ralf






More information about the users mailing list