This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Error Building Newlib for arm-none-eabi


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]