<div> when I update the rsb on github ,rebuild my toolchain,use the master of rtems and the master of rtems-libbsd on github, I got a error when I compile libbsd.</div><div><br></div><div>      Setting top to                           : /mnt/hgfs/windows/rtems/rtems-libbsd </div><div>Setting out to                           : /mnt/hgfs/windows/rtems/rtems-libbsd/build </div><div>RTEMS Version                            : 4.12 </div><div>Architectures                            : arm-rtems4.12 </div><div>Board Support Package                    : arm-rtems4.12-xilinx_zynq_zedboard </div><div>Show commands                            : no </div><div>Long commands                            : no </div><div>Checking for program arm-rtems4.12-gcc   : /opt/rtems/4.12/bin/arm-rtems4.12-gcc </div><div>Checking for program arm-rtems4.12-g++   : /opt/rtems/4.12/bin/arm-rtems4.12-g++ </div><div>Checking for program arm-rtems4.12-gcc   : /opt/rtems/4.12/bin/arm-rtems4.12-gcc </div><div>Checking for program arm-rtems4.12-ld    : /opt/rtems/4.12/bin/arm-rtems4.12-ld </div><div>Checking for program arm-rtems4.12-ar    : /opt/rtems/4.12/bin/arm-rtems4.12-ar </div><div>Checking for program arm-rtems4.12-nm    : /opt/rtems/4.12/bin/arm-rtems4.12-nm </div><div>Checking for program arm-rtems4.12-objdump : /opt/rtems/4.12/bin/arm-rtems4.12-objdump </div><div>Checking for program arm-rtems4.12-objcopy : /opt/rtems/4.12/bin/arm-rtems4.12-objcopy </div><div>Checking for program arm-rtems4.12-readelf : /opt/rtems/4.12/bin/arm-rtems4.12-readelf </div><div>Checking for program arm-rtems4.12-strip   : /opt/rtems/4.12/bin/arm-rtems4.12-strip </div><div>Checking for program rtems-ld              : /opt/rtems/4.12/bin/rtems-ld </div><div>Checking for program rtems-tld             : /opt/rtems/4.12/bin/rtems-tld </div><div>Checking for program rtems-bin2c           : /mnt/hgfs/windows/rtems/zynq_bsp/install/bin/rtems-bin2c </div><div>Checking for program tar                   : /usr/bin/tar </div><div>Checking for program gcc,cc                : /opt/rtems/4.12/bin/arm-rtems4.12-gcc </div><div>Checking for program ar                    : /opt/rtems/4.12/bin/arm-rtems4.12-ar </div><div>Checking for program g++,c++               : /opt/rtems/4.12/bin/arm-rtems4.12-g++ </div><div>Checking for program gas,gcc               : /opt/rtems/4.12/bin/arm-rtems4.12-gcc </div><div>Compiler version (arm-rtems4.12-gcc)       : 6.3.0 20161221 (RTEMS 4.12, RSB 4c5eb8969451c4ea0997b3caa98bfe80fe15da69, Newlib 2.5.0.20170228) </div><div>Checking for RTEMS CPU options header      : ok </div><div>Checking for RTEMS_DEBUG                   : no </div><div>Checking for RTEMS_MULTIPROCESSING         : no </div><div>Checking for RTEMS_NEWLIB                  : yes </div><div>Checking for RTEMS_POSIX_API               : yes </div><div>Checking for RTEMS_SMP                     : yes </div><div>Checking for RTEMS_NETWORKING              : no </div><div>Checking for RTEMS header                  : no</div><div><br></div><div><div><br></div><div>  waf break when checking rtems header error, the log is</div><div><br></div><div><div>------------------------------------------</div><div>Checking for RTEMS header</div><div>==></div><div>#include <rtems.h></div><div><br></div><div>int main(int argc, char **argv) {</div><div><span class="Apple-tab-span" style="white-space:pre">     </span>(void)argc; (void)argv;</div><div><span class="Apple-tab-span" style="white-space:pre">      </span>return 0;</div><div>}</div><div><br></div><div><==</div><div>[1/2] cxx: build/.conf_check_be43aff4aa3a268351c8d124fc0fca64/test.cpp -> build/.conf_check_be43aff4aa3a268351c8d124fc0fca64/testbuild/test.cpp.1.o</div><div></div><div>['/opt/rtems/4.12/bin/arm-rtems4.12-g++', '-qrtems', '-B/mnt/hgfs/windows/rtems/zynq_bsp/install/arm-rtems4.12/lib/', '-B/mnt/hgfs/windows/rtems/zynq_bsp/install/arm-rtems4.12/xilinx_zynq_zedboard/lib/', '--specs', 'bsp_specs', '-march=armv7-a', '-march=armv7-a', '-mthumb', '-mthumb', '-mfpu=neon', '-mfpu=neon', '-mfloat-abi=hard', '-mfloat-abi=hard', '-mtune=cortex-a9', '-mtune=cortex-a9', '-ffunction-sections', '-ffunction-sections', '-fdata-sections', '-fdata-sections', '-std=gnu++11', '-DHAVE_RTEMS_SCORE_CPUOPTS_H=1', '../test.cpp', '-c', '-o', 'test.cpp.1.o']</div><div>err: In file included from /opt/rtems/4.12/arm-rtems4.12/include/signal.h:6:0,</div><div>                 from /opt/rtems/4.12/arm-rtems4.12/include/time.h:178,</div><div>                 from /opt/rtems/4.12/arm-rtems4.12/include/sys/time.h:268,</div><div>                 from /mnt/hgfs/windows/rtems/zynq_bsp/install/arm-rtems4.12/xilinx_zynq_zedboard/lib/include/rtems/score/timestamp.h:43,</div><div>                 from /mnt/hgfs/windows/rtems/zynq_bsp/install/arm-rtems4.12/xilinx_zynq_zedboard/lib/include/rtems/score/thread.h:36,</div><div>                 from /mnt/hgfs/windows/rtems/zynq_bsp/install/arm-rtems4.12/xilinx_zynq_zedboard/lib/include/rtems/score/heap.h:22,</div><div>                 from /mnt/hgfs/windows/rtems/zynq_bsp/install/arm-rtems4.12/xilinx_zynq_zedboard/lib/include/rtems/rtems/types.h:26,</div><div>                 from /mnt/hgfs/windows/rtems/zynq_bsp/install/arm-rtems4.12/xilinx_zynq_zedboard/lib/include/rtems.h:31,</div><div>                 from ../test.cpp:1:</div><div>/opt/rtems/4.12/arm-rtems4.12/include/sys/signal.h:53:3: error: 'pthread_attr_t' does not name a type</div><div>   pthread_attr_t  *sigev_notify_attributes;    /* Notification Attributes */</div><div>   ^~~~~~~~~~~~~~</div><div>In file included from /opt/rtems/4.12/arm-rtems4.12/include/string.h:10:0,</div><div>                 from /mnt/hgfs/windows/rtems/zynq_bsp/install/arm-rtems4.12/xilinx_zynq_zedboard/lib/include/rtems/score/basedefs.h:49,</div><div>                 from /mnt/hgfs/windows/rtems/zynq_bsp/install/arm-rtems4.12/xilinx_zynq_zedboard/lib/include/rtems/score/types.h:23,</div><div>                 from /mnt/hgfs/windows/rtems/zynq_bsp/install/arm-rtems4.12/xilinx_zynq_zedboard/lib/include/rtems/score/cpu.h:32,</div><div>                 from /mnt/hgfs/windows/rtems/zynq_bsp/install/arm-rtems4.12/xilinx_zynq_zedboard/lib/include/rtems/system.h:23,</div><div>                 from /mnt/hgfs/windows/rtems/zynq_bsp/install/arm-rtems4.12/xilinx_zynq_zedboard/lib/include/rtems.h:29,</div><div>                 from ../test.cpp:1:</div><div>/opt/rtems/4.12/arm-rtems4.12/include/sys/signal.h:202:5: error: 'pthread_t' was not declared in this scope</div><div> int _EXFUN(pthread_kill, (pthread_t thread, int sig));</div><div>     ^</div><div>/opt/rtems/4.12/arm-rtems4.12/include/sys/signal.h:202:5: error: expected primary-expression before 'int'</div><div> int _EXFUN(pthread_kill, (pthread_t thread, int sig));</div><div>     ^</div><div>/opt/rtems/4.12/arm-rtems4.12/include/sys/signal.h:202:5: error: expression list treated as compound expression in initializer [-fpermissive]</div><div> int _EXFUN(pthread_kill, (pthread_t thread, int sig));</div><div>     ^</div><div><br></div><div>from /mnt/hgfs/windows/rtems/rtems-libbsd: Test does not build: Traceback (most recent call last):</div><div>  File "/usr/share/waf/waflib/Tools/c_config.py", line 458, in run_c_code</div><div>    bld.compile()</div><div>  File "/usr/share/waf/waflib/Build.py", line 187, in compile</div><div>    raise Errors.BuildError(self.producer.error)</div><div>BuildError: Build failed</div><div> -> task in 'testprog' failed (exit status 1): </div><div><span class="Apple-tab-span" style="white-space:pre">       </span>{task 140059148: cxx test.cpp -> test.cpp.1.o}</div><div>['/opt/rtems/4.12/bin/arm-rtems4.12-g++', '-qrtems', '-B/mnt/hgfs/windows/rtems/zynq_bsp/install/arm-rtems4.12/lib/', '-B/mnt/hgfs/windows/rtems/zynq_bsp/install/arm-rtems4.12/xilinx_zynq_zedboard/lib/', '--specs', 'bsp_specs', '-march=armv7-a', '-march=armv7-a', '-mthumb', '-mthumb', '-mfpu=neon', '-mfpu=neon', '-mfloat-abi=hard', '-mfloat-abi=hard', '-mtune=cortex-a9', '-mtune=cortex-a9', '-ffunction-sections', '-ffunction-sections', '-fdata-sections', '-fdata-sections', '-std=gnu++11', '-DHAVE_RTEMS_SCORE_CPUOPTS_H=1', '../test.cpp', '-c', '-o', 'test.cpp.1.o']</div><div><br></div><div>from /mnt/hgfs/windows/rtems/rtems-libbsd: The configuration failed</div></div><div><br></div><div><br></div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>From: </b> "Gedare Bloom";<gedare@rtems.org>;</div><div><b>Date: </b> Thu, Mar 2, 2017 11:17 PM</div><div><b>To: </b> "Chris Johns"<chrisj@rtems.org>; <wbr></div><div><b>Cc: </b> "devel@rtems.org"<devel@rtems.org>; <wbr></div><div><b>Subject: </b> Re: Newlib Update for RTEMS 4.12</div></div><div><br></div>On Thu, Mar 2, 2017 at 2:15 AM, Chris Johns <chrisj@rtems.org> wrote:<br>> On 02/03/2017 17:38, Sebastian Huber wrote:<br>>><br>>> On 01/03/17 23:57, Chris Johns wrote:<br>>>><br>>>> On 01/03/2017 23:37, Sebastian Huber wrote:<br>>>>><br>>>>> I updated the RSB to use the Newlib 2.5.0.20170228 snapshot. All users<br>>>>> of the RTEMS master are encouraged to update their tool chains. This<br>>>>> tool set (Binutils, GCC, Newlib) is the final one for the RTEMS 4.12<br>>>>> release from my point of view. We should get now the RTEMS master ready<br>>>>> for the release.<br>>>><br>>>><br>>>> The 4.12 tools are broken on FreeBSD 11.0:<br>>>><br>>>> https://sourceware.org/bugzilla/show_bug.cgi?id=21206<br>>><br>>><br>>> Who will fix this problem?<br>><br>><br>> No idea. It is complicated and deep in autoconf.<br>><br>>> What happens if this is not fixed in one month or so?<br>><br>><br>> I do not know. I have taken a look and it seems gdb is getting gnulib to<br>> using a C compiler for its configure tests and gnulib generates header files<br>> that are included in GDB however GDB is now a C++ program. I tried setting<br>> CPP outside the top level configure however this breaks the part of binutils<br>> GDB builds and uses.<br>><br><br>If this affects other gdb host or cross builds, then it might get more<br>attention. If this only affects arm-rtems-gdb, then that means<br>something is probably wrong in our toolchain development (seems<br>unlikely to me).<br><br>>>><br>>>> This is a blocker for a release.<br>>><br>>><br>>> Please add a ticket for things that block the release.<br>>><br>><br>> Sure.<br>><br>> Chris<br>><br>> _______________________________________________<br>> devel mailing list<br>> devel@rtems.org<br>> http://lists.rtems.org/mailman/listinfo/devel<br>_______________________________________________<br>devel mailing list<br>devel@rtems.org<br>http://lists.rtems.org/mailman/listinfo/devel</div>