Newlib Update for RTEMS 4.12

yao0718 29171383 at qq.com
Thu Mar 2 16:40:56 UTC 2017


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.


      Setting top to                           : /mnt/hgfs/windows/rtems/rtems-libbsd 
Setting out to                           : /mnt/hgfs/windows/rtems/rtems-libbsd/build 
RTEMS Version                            : 4.12 
Architectures                            : arm-rtems4.12 
Board Support Package                    : arm-rtems4.12-xilinx_zynq_zedboard 
Show commands                            : no 
Long commands                            : no 
Checking for program arm-rtems4.12-gcc   : /opt/rtems/4.12/bin/arm-rtems4.12-gcc 
Checking for program arm-rtems4.12-g++   : /opt/rtems/4.12/bin/arm-rtems4.12-g++ 
Checking for program arm-rtems4.12-gcc   : /opt/rtems/4.12/bin/arm-rtems4.12-gcc 
Checking for program arm-rtems4.12-ld    : /opt/rtems/4.12/bin/arm-rtems4.12-ld 
Checking for program arm-rtems4.12-ar    : /opt/rtems/4.12/bin/arm-rtems4.12-ar 
Checking for program arm-rtems4.12-nm    : /opt/rtems/4.12/bin/arm-rtems4.12-nm 
Checking for program arm-rtems4.12-objdump : /opt/rtems/4.12/bin/arm-rtems4.12-objdump 
Checking for program arm-rtems4.12-objcopy : /opt/rtems/4.12/bin/arm-rtems4.12-objcopy 
Checking for program arm-rtems4.12-readelf : /opt/rtems/4.12/bin/arm-rtems4.12-readelf 
Checking for program arm-rtems4.12-strip   : /opt/rtems/4.12/bin/arm-rtems4.12-strip 
Checking for program rtems-ld              : /opt/rtems/4.12/bin/rtems-ld 
Checking for program rtems-tld             : /opt/rtems/4.12/bin/rtems-tld 
Checking for program rtems-bin2c           : /mnt/hgfs/windows/rtems/zynq_bsp/install/bin/rtems-bin2c 
Checking for program tar                   : /usr/bin/tar 
Checking for program gcc,cc                : /opt/rtems/4.12/bin/arm-rtems4.12-gcc 
Checking for program ar                    : /opt/rtems/4.12/bin/arm-rtems4.12-ar 
Checking for program g++,c++               : /opt/rtems/4.12/bin/arm-rtems4.12-g++ 
Checking for program gas,gcc               : /opt/rtems/4.12/bin/arm-rtems4.12-gcc 
Compiler version (arm-rtems4.12-gcc)       : 6.3.0 20161221 (RTEMS 4.12, RSB 4c5eb8969451c4ea0997b3caa98bfe80fe15da69, Newlib 2.5.0.20170228) 
Checking for RTEMS CPU options header      : ok 
Checking for RTEMS_DEBUG                   : no 
Checking for RTEMS_MULTIPROCESSING         : no 
Checking for RTEMS_NEWLIB                  : yes 
Checking for RTEMS_POSIX_API               : yes 
Checking for RTEMS_SMP                     : yes 
Checking for RTEMS_NETWORKING              : no 
Checking for RTEMS header                  : no




  waf break when checking rtems header error, the log is


------------------------------------------
Checking for RTEMS header
==>
#include <rtems.h>


int main(int argc, char **argv) {
	(void)argc; (void)argv;
	return 0;
}


<==
[1/2] cxx: build/.conf_check_be43aff4aa3a268351c8d124fc0fca64/test.cpp -> build/.conf_check_be43aff4aa3a268351c8d124fc0fca64/testbuild/test.cpp.1.o

['/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']
err: In file included from /opt/rtems/4.12/arm-rtems4.12/include/signal.h:6:0,
                 from /opt/rtems/4.12/arm-rtems4.12/include/time.h:178,
                 from /opt/rtems/4.12/arm-rtems4.12/include/sys/time.h:268,
                 from /mnt/hgfs/windows/rtems/zynq_bsp/install/arm-rtems4.12/xilinx_zynq_zedboard/lib/include/rtems/score/timestamp.h:43,
                 from /mnt/hgfs/windows/rtems/zynq_bsp/install/arm-rtems4.12/xilinx_zynq_zedboard/lib/include/rtems/score/thread.h:36,
                 from /mnt/hgfs/windows/rtems/zynq_bsp/install/arm-rtems4.12/xilinx_zynq_zedboard/lib/include/rtems/score/heap.h:22,
                 from /mnt/hgfs/windows/rtems/zynq_bsp/install/arm-rtems4.12/xilinx_zynq_zedboard/lib/include/rtems/rtems/types.h:26,
                 from /mnt/hgfs/windows/rtems/zynq_bsp/install/arm-rtems4.12/xilinx_zynq_zedboard/lib/include/rtems.h:31,
                 from ../test.cpp:1:
/opt/rtems/4.12/arm-rtems4.12/include/sys/signal.h:53:3: error: 'pthread_attr_t' does not name a type
   pthread_attr_t  *sigev_notify_attributes;    /* Notification Attributes */
   ^~~~~~~~~~~~~~
In file included from /opt/rtems/4.12/arm-rtems4.12/include/string.h:10:0,
                 from /mnt/hgfs/windows/rtems/zynq_bsp/install/arm-rtems4.12/xilinx_zynq_zedboard/lib/include/rtems/score/basedefs.h:49,
                 from /mnt/hgfs/windows/rtems/zynq_bsp/install/arm-rtems4.12/xilinx_zynq_zedboard/lib/include/rtems/score/types.h:23,
                 from /mnt/hgfs/windows/rtems/zynq_bsp/install/arm-rtems4.12/xilinx_zynq_zedboard/lib/include/rtems/score/cpu.h:32,
                 from /mnt/hgfs/windows/rtems/zynq_bsp/install/arm-rtems4.12/xilinx_zynq_zedboard/lib/include/rtems/system.h:23,
                 from /mnt/hgfs/windows/rtems/zynq_bsp/install/arm-rtems4.12/xilinx_zynq_zedboard/lib/include/rtems.h:29,
                 from ../test.cpp:1:
/opt/rtems/4.12/arm-rtems4.12/include/sys/signal.h:202:5: error: 'pthread_t' was not declared in this scope
 int _EXFUN(pthread_kill, (pthread_t thread, int sig));
     ^
/opt/rtems/4.12/arm-rtems4.12/include/sys/signal.h:202:5: error: expected primary-expression before 'int'
 int _EXFUN(pthread_kill, (pthread_t thread, int sig));
     ^
/opt/rtems/4.12/arm-rtems4.12/include/sys/signal.h:202:5: error: expression list treated as compound expression in initializer [-fpermissive]
 int _EXFUN(pthread_kill, (pthread_t thread, int sig));
     ^


from /mnt/hgfs/windows/rtems/rtems-libbsd: Test does not build: Traceback (most recent call last):
  File "/usr/share/waf/waflib/Tools/c_config.py", line 458, in run_c_code
    bld.compile()
  File "/usr/share/waf/waflib/Build.py", line 187, in compile
    raise Errors.BuildError(self.producer.error)
BuildError: Build failed
 -> task in 'testprog' failed (exit status 1): 
	{task 140059148: cxx test.cpp -> test.cpp.1.o}
['/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']


from /mnt/hgfs/windows/rtems/rtems-libbsd: The configuration failed







------------------ Original ------------------
From:  "Gedare Bloom";<gedare at rtems.org>;
Date:  Thu, Mar 2, 2017 11:17 PM
To:  "Chris Johns"<chrisj at rtems.org>; 
Cc:  "devel at rtems.org"<devel at rtems.org>; 
Subject:  Re: Newlib Update for RTEMS 4.12



On Thu, Mar 2, 2017 at 2:15 AM, Chris Johns <chrisj at rtems.org> wrote:
> On 02/03/2017 17:38, Sebastian Huber wrote:
>>
>> On 01/03/17 23:57, Chris Johns wrote:
>>>
>>> On 01/03/2017 23:37, Sebastian Huber wrote:
>>>>
>>>> I updated the RSB to use the Newlib 2.5.0.20170228 snapshot. All users
>>>> of the RTEMS master are encouraged to update their tool chains. This
>>>> tool set (Binutils, GCC, Newlib) is the final one for the RTEMS 4.12
>>>> release from my point of view. We should get now the RTEMS master ready
>>>> for the release.
>>>
>>>
>>> The 4.12 tools are broken on FreeBSD 11.0:
>>>
>>> https://sourceware.org/bugzilla/show_bug.cgi?id=21206
>>
>>
>> Who will fix this problem?
>
>
> No idea. It is complicated and deep in autoconf.
>
>> What happens if this is not fixed in one month or so?
>
>
> I do not know. I have taken a look and it seems gdb is getting gnulib to
> using a C compiler for its configure tests and gnulib generates header files
> that are included in GDB however GDB is now a C++ program. I tried setting
> CPP outside the top level configure however this breaks the part of binutils
> GDB builds and uses.
>

If this affects other gdb host or cross builds, then it might get more
attention. If this only affects arm-rtems-gdb, then that means
something is probably wrong in our toolchain development (seems
unlikely to me).

>>>
>>> This is a blocker for a release.
>>
>>
>> Please add a ticket for things that block the release.
>>
>
> Sure.
>
> Chris
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
_______________________________________________
devel mailing list
devel at rtems.org
http://lists.rtems.org/mailman/listinfo/devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20170303/65b2b361/attachment-0002.html>


More information about the devel mailing list