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

printk opentkernel at 163.com
Sat Apr 23 14:43:33 UTC 2016


On Sat, Apr 23, 2016 at 08:04:35AM -0500, Joel Sherrill wrote:
> The tools have been updating pretty regularly. This means your tools are
> old. Update the RSB and build me tools.
sorry, i forgot to attach my gcc version, it was built some days ago:

- - - - - - - - - -
rtems at book64:~$ arm-rtems4.12-gcc --version
arm-rtems4.12-gcc (GCC) 6.0.0 20160124 (RTEMS 4.12, RSB 662c2e73028a8a8ac293d295a04629312f4f6e5a-modified, Newlib 2.3.0.20160104)
Copyright (C) 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

rtems at book64:~$ arm-rtems4.12-gcc -v
Using built-in specs.
COLLECT_GCC=arm-rtems4.12-gcc
COLLECT_LTO_WRAPPER=/home/du/dev/rtems/4.12/libexec/gcc/arm-rtems4.12/6.0.0/lto-wrapper
Target: arm-rtems4.12
Configured with: ../gcc-6-20160124/configure --prefix=/home/du/dev/rtems/4.12 --bindir=/home/du/dev/rtems/4.12/bin --exec_prefix=/home/du/dev/rtems/4.12 --includedir=/home/du/dev/rtems/4.12/include --libdir=/home/du/dev/rtems/4.12/lib --libexecdir=/home/du/dev/rtems/4.12/libexec --mandir=/home/du/dev/rtems/4.12/share/man --infodir=/home/du/dev/rtems/4.12/share/info --datadir=/home/du/dev/rtems/4.12/share --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=arm-rtems4.12 --disable-libstdcxx-pch --with-gnu-as --with-gnu-ld --verbose --with-newlib --with-system-zlib --disable-nls --without-included-gettext --disable-win32-registry --enable-version-specific-runtime-libs --disable-lto --enable-newlib-io-c99-formats --enable-newlib-iconv --enable-newlib-iconv-encodings=big5,cp775,cp850,cp852,cp855,cp866,euc_jp,euc_kr,euc_tw,iso_8859_1,iso_8859_10,iso_8859_11,iso_8859_13,iso_8859_14,iso_8859_15,iso_8859_2,iso_8859_3,iso_8859_4,iso_8859_5,iso_8859_6,iso_8859_7,iso_8859_8,iso_8859_9,iso_ir_111,koi8_r,koi8_ru,koi8_u,koi8_uni,ucs_2,ucs_2_internal,ucs_2be,ucs_2le,ucs_4,ucs_4_internal,ucs_4be,ucs_4le,us_ascii,utf_16,utf_16be,utf_16le,utf_8,win_1250,win_1251,win_1252,win_1253,win_1254,win_1255,win_1256,win_1257,win_1258 --enable-threads --disable-plugin --enable-libgomp --enable-languages=c,c++
Thread model: rtems
gcc version 6.0.0 20160124 (RTEMS 4.12, RSB 662c2e73028a8a8ac293d295a04629312f4f6e5a-modified, Newlib 2.3.0.20160104) (GCC) 
rtems at book64:~$ 
- - - - - - - - - -
it is this toolchain too old? 

> 
> Between gcc and newlib activity, we have been bumping them every few weeks.
> One at the first of March added new POSIX methods and condition variable
> attributes.
I will build a new one and try again. :D, it will take anther day to built it again.
> 
> --joel
thanks very much!


> On Apr 23, 2016 6:50 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
> $ 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?
> 
> - - -
> duhuanpeng
> 
> 
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel

...
duhuanpeng.



More information about the devel mailing list