build failed: cpukit/posix/src/conddefaultattributes.c

Gedare Bloom gedare at rtems.org
Sat Apr 23 16:58:33 UTC 2016


On Sat, Apr 23, 2016 at 7:49 AM, printk <opentkernel at 163.com> wrote:
> Hi, I followed this to build the bsp, arm920
> - - -
>         be built to target the BOARD_SUPPORT_PACKAGE board.
>         mkdir build-rtems
>         cd build-rtems
>         ../rtems-4.10.0/configure --target=<TARGET_CONFIGURATION> \
>         --disable-posix --disable-networking --disable-cxx \
>         --enable-rtemsbsp=<BOARD_SUPPORT_PACKAGE>\
>         --prefix=<INSTALL_POINT>
>         make all
>         make install
> - - -
> $ cd rtems
> $ mkdir arm920
Normally we would recommend you put your build directory outside of
your source tree, hence: $ mkdir ../arm920 ; cd ../arm920 ;
../rtems/configure

> $ cd arm920
> $ ../configure --target=arm-rtems4.12
> $ make RTEMS_BSP="arm920"
>
> it fails here:
> - - -
> arm-rtems4.12-gcc --pipe -DHAVE_CONFIG_H   -I.. -I../../cpukit/../../../arm920/lib/include   -mcpu=arm920 -O2 -g -ffunction-sections -fdata-sections -Wall -Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -MT src/libposix_a-conddefaultattributes.o -MD -MP -MF src/.deps/libposix_a-conddefaultattributes.Tpo -c -o src/libposix_a-conddefaultattributes.o `test -f 'src/conddefaultattributes.c' || echo '../../../../../../c/src/../../cpukit/posix/'`src/conddefaultattributes.c
> ../../../../../../c/src/../../cpukit/posix/src/conddefaultattributes.c:31:3: error: unknown field 'clock' specified in initializer
>    .clock          = CLOCK_REALTIME,
>    ^
> - - -
> I find this breaks many other bsps too, I comment this line out, then I can compile all other arm bsps.(about 20hours, 20G :D)
> did I do something wrong?
>
> btw, there are many sources include this file
>  #include <sys/tree.h>
> but i can not find this file by:
>  find -name tree.h
> where is this file?
>
This file comes in through newlib now, I believe.



More information about the devel mailing list