Error Building Newlib for arm-none-eabi

Anders Montonen Anders.Montonen@iki.fi
Fri Feb 23 07:04:00 GMT 2018


On 23 Feb 2018, at 3:11, R0b0t1 <r030t1@gmail.com> wrote:
> On Thu, Feb 22, 2018 at 12:13 PM, Jim Wilson <jimw@sifive.com> wrote:
>> On 02/22/2018 05:55 AM, R0b0t1 wrote:
>>> 
>>> The gets definition looks as if it is replaced with the
>>> _FORTIFY_SOURCE expansion. Manually setting _FORTIFY_SOURCE=0 seems to
>>> compile the file.
>> Check for environment variables that you might have set and forgotten about.
>> An environment variable set for native gcc may also be used for cross gcc.
> I think it is an option embedded in the toolchain.

If you’re on Ubuntu, they have patched their compiler to enable it by default. See <https://wiki.ubuntu.com/ToolChain/CompilerFlags>.

-a



More information about the Newlib mailing list