<p dir="ltr"><br>
On Apr 23, 2016 9:43 AM, "printk" <<a href="mailto:opentkernel@163.com">opentkernel@163.com</a>> wrote:<br>
><br>
> On Sat, Apr 23, 2016 at 08:04:35AM -0500, Joel Sherrill wrote:<br>
> > The tools have been updating pretty regularly. This means your tools are<br>
> > old. Update the RSB and build me tools.<br>
> sorry, i forgot to attach my gcc version, it was built some days ago:<br>
><br>
> - - - - - - - - - -<br>
> rtems@book64:~$ arm-rtems4.12-gcc --version<br>
> arm-rtems4.12-gcc (GCC) 6.0.0 20160124 (RTEMS 4.12, RSB 662c2e73028a8a8ac293d295a04629312f4f6e5a-modified, Newlib 2.3.0.20160104)<br>
> Copyright (C) 2016 Free Software Foundation, Inc.<br>
> This is free software; see the source for copying conditions. There is NO<br>
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.</p>
<p dir="ltr">Yes. I add this change in February and bumped the tools then. I didn't add code which used it until late March or April.<br></p>
<p dir="ltr">> rtems@book64:~$ arm-rtems4.12-gcc -v<br>
> Using built-in specs.<br>
> COLLECT_GCC=arm-rtems4.12-gcc<br>
> COLLECT_LTO_WRAPPER=/home/du/dev/rtems/4.12/libexec/gcc/arm-rtems4.12/6.0.0/lto-wrapper<br>
> Target: arm-rtems4.12<br>
> 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++<br>
> Thread model: rtems<br>
> gcc version 6.0.0 20160124 (RTEMS 4.12, RSB 662c2e73028a8a8ac293d295a04629312f4f6e5a-modified, Newlib 2.3.0.20160104) (GCC)<br>
> rtems@book64:~$<br>
> - - - - - - - - - -<br>
> it is this toolchain too old?<br>
><br>
> ><br>
> > Between gcc and newlib activity, we have been bumping them every few weeks.<br>
> > One at the first of March added new POSIX methods and condition variable<br>
> > attributes.<br>
> I will build a new one and try again. :D, it will take anther day to built it again.<br>
> ><br>
> > --joel<br>
> thanks very much!<br>
><br>
><br>
> > On Apr 23, 2016 6:50 AM, "printk" <<a href="mailto:opentkernel@163.com">opentkernel@163.com</a>> wrote:<br>
> ><br>
> > Hi, I followed this to build the bsp, arm920<br>
> > - - -<br>
> > be built to target the BOARD_SUPPORT_PACKAGE board.<br>
> > mkdir build-rtems<br>
> > cd build-rtems<br>
> > ../rtems-4.10.0/configure --target=<TARGET_CONFIGURATION> \<br>
> > --disable-posix --disable-networking --disable-cxx \<br>
> > --enable-rtemsbsp=<BOARD_SUPPORT_PACKAGE>\<br>
> > --prefix=<INSTALL_POINT><br>
> > make all<br>
> > make install<br>
> > - - -<br>
> > $ cd rtems<br>
> > $ mkdir arm920<br>
> > $ cd arm920<br>
> > $ ../configure --target=arm-rtems4.12<br>
> > $ make RTEMS_BSP="arm920"<br>
> ><br>
> > it fails here:<br>
> > - - -<br>
> > arm-rtems4.12-gcc --pipe -DHAVE_CONFIG_H -I..<br>
> > -I../../cpukit/../../../arm920/lib/include -mcpu=arm920 -O2 -g<br>
> > -ffunction-sections -fdata-sections -Wall -Wmissing-prototypes<br>
> > -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -MT<br>
> > src/libposix_a-conddefaultattributes.o -MD -MP -MF<br>
> > src/.deps/libposix_a-conddefaultattributes.Tpo -c -o<br>
> > src/libposix_a-conddefaultattributes.o `test -f<br>
> > 'src/conddefaultattributes.c' || echo<br>
> > '../../../../../../c/src/../../cpukit/posix/'`src/conddefaultattributes.c<br>
> > ../../../../../../c/src/../../cpukit/posix/src/conddefaultattributes.c:31:3:<br>
> > error: unknown field 'clock' specified in initializer<br>
> > .clock = CLOCK_REALTIME,<br>
> > ^<br>
> > - - -<br>
> > I find this breaks many other bsps too, I comment this line out, then I can<br>
> > compile all other arm bsps.(about 20hours, 20G :D)<br>
> > did I do something wrong?<br>
> ><br>
> > btw, there are many sources include this file<br>
> > #include <sys/tree.h><br>
> > but i can not find this file by:<br>
> > find -name tree.h<br>
> > where is this file?<br>
> ><br>
> > - - -<br>
> > duhuanpeng<br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > devel mailing list<br>
> > <a href="mailto:devel@rtems.org">devel@rtems.org</a><br>
> > <a href="http://lists.rtems.org/mailman/listinfo/devel">http://lists.rtems.org/mailman/listinfo/devel</a><br>
><br>
> ...<br>
> duhuanpeng.<br>
><br>
</p>