Error Building Newlib for arm-none-eabi
Jim Wilson
jimw@sifive.com
Thu Feb 22 18:13:00 GMT 2018
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.
Check the .i file for accidental uses of /usr/include. There might be a
problem with your arm cross compiler using /usr/include when it
shouldn't. You can also see the header file search dirs by adding -v to
the compiler command.
You might try using someone else's build scripts that are known to work,
for instance crosstools-NG.
Jim
More information about the Newlib
mailing list