This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: Error Building Newlib for arm-none-eabi
On Tue, Feb 20, 2018 at 10:33 PM, R0b0t1 <r030t1@gmail.com> wrote:
>
> Extant in 2.5.0.20171222:
>
> In file included from
> /home/R0b0t1/devel/toolgen/source/newlib-2.5.0.20171222/newlib/libc/include/ssp/stdio.h:34:0,
> from
> /home/R0b0t1/devel/toolgen/source/newlib-2.5.0.20171222/newlib/libc/include/stdio.h:800,
> from
> ../../../../../../../source/newlib-2.5.0.20171222/newlib/libc/stdio/gets.c:62:
> ../../../../../../../source/newlib-2.5.0.20171222/newlib/libc/stdio/gets.c:97:8:
> error: expected declaration specifiers or '...' before
> '__builtin_object_size'
> _DEFUN(gets, (buf),
> ^
>
> This may be something to do with my environment, but it is hard to
> know what. My system's GCC is 7.3, as is the code I am using to
> compile the arm-none-eabi crosschain. These issues are mirrored in my
> package manager (Portage) where newlib has been broken for some time.
>
> Any help would be extremely helpful. This issue has existed for
> multiple years, and is keeping newlib from compiling on Gentoo.
>
> Thanks in advance,
> R0b0t1
I apologize for the messages, but this is holding up the rest of what
I wanted to do.
Removing the definition in gets.c simply causes failures in sprintf.c
to be shown. This seems fairly serious.
Cheers,
R0b0t1