Build Windows: FAILED 5/rtems-nios2.bset on x86_64-w64-mingw32 (nios2-rtems5-gcc-7.2.0-newlib-2.5.0.20170922-x86_64-w64-mingw32-1)

Sebastian Huber sebastian.huber at embedded-brains.de
Fri Nov 10 11:56:18 UTC 2017


On 10/11/17 12:44, Chris Johns wrote:
> /D/opt/rtems/rsb.git/rtems/build/nrg7n2xwm1/build/./gcc/xgcc -B/D/opt/rtems/rsb.git/rtems/build/nrg7n2xwm1/build/./gcc/  -nostdinc -B/D/opt/rtems/rsb.git/rtems/build/nrg7n2xwm1/build/nios2-rtems5/newlib/ -isystem/D/opt/rtems/rsb.git/rtems/build/nrg7n2xwm1/build/nios2-rtems5/newlib/targ-include 
> -isystem 
> /D/opt/rtems/rsb.git/rtems/build/nrg7n2xwm1/gcc-7.2.0/newlib/libc/include 
> -B/D/opt/rtems/5/nios2-rtems5/bin/ -B/D/opt/rtems/5/nios2-rtems5/lib/  -isystem/D/opt/rtems/5/nios2-rtems5/include -isystem 
> /D/opt/rtems/5/nios2-rtems5/sys-include -g -O2 -mhw-mul -mhw-mulx 
> -mhw-div -mcustom-fadds=253 -mcustom-fdivs=255 -mcustom-fmuls=252 
> -mcustom-fsubs=254 -O2 -I../../../../../../../../../../gcc-7.2.0/libgcc/../newlib/libc/sys/rtems/include -g -O2 -DIN_GCC  -DCROSS_DIRECTORY_STRUCTURE  -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include   -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -Dinhibi!
>   t_libc  -I. -I. -I../../../../../../../../.././gcc -I../../../../../../../../../../gcc-7.2.0/libgcc 
> -I../../../../../../../../../../gcc-7.2.0/libgcc/. 
> -I../../../../../../../../../../gcc-7.2.0/libgcc/../gcc 
> -I../../../../../../../../../../gcc-7.2.0/libgcc/../include  -DHAVE_CC_TLS  -o _gcov_merge_ior.o -MT _gcov_merge_ior.o -MD -MP -MF _gcov_merge_ior.dep -DL_gcov_merge_ior -c ../../../../../../../../../../gcc-7.2.0/libgcc/libgcov-merge.c
> make[4]: *** [../../../../../../../../../../gcc-7.2.0/libgcc/static-object.mk:17: unwind-dw2-fde.o] Error 1
> make[4]: *** Waiting for unfinished jobs....
> In file included from D:/opt/rtems/rsb.git/rtems/build/nrg7n2xwm1/gcc-7.2.0/newlib/libc/include/sys/unistd.h:8:0,
>                   from D:/opt/rtems/rsb.git/rtems/build/nrg7n2xwm1/gcc-7.2.0/newlib/libc/include/unistd.h:4,
>                   from D:/opt/rtems/rsb.git/rtems/build/nrg7n2xwm1/gcc-7.2.0/newlib/libc/include/pthread.h:25,
>                   from ./gthr-default.h:31,
>                   from ../../../../../../../../../../gcc-7.2.0/libgcc/gthr.h:148,
>                   from ../../../../../../../../../../gcc-7.2.0/libgcc/unwind-sjlj.c:31:
> D:/opt/rtems/rsb.git/rtems/build/nrg7n2xwm1/gcc-7.2.0/newlib/libc/include/pthread.h:236:5: error: unknown type name 'cpu_set_t'

I think this is a known problem of the Newlib/GCC build. During the 
libgcc build the default header files are picked up, e.g.

newlib/libc/include/sys/_pthreadtypes.h

later during Newlib build, some header files are copied into the build 
tree. Then a copy of

newlib/libc/sys/rtems/include/sys/_pthreadtypes.h

is used (nios2-rtems5/newlib/targ-include/sys/_pthreadtypes.h).

I made several attempts to fix this, but its quite convoluted. You 
change one thing, and it breaks another thing.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the devel mailing list