Build failure for cross-compiled aarch64-none-elf

Matthew Wahab matthew.wahab@foss.arm.com
Fri Aug 26 08:23:00 GMT 2016


On 25/08/16 16:28, Corinna Vinschen wrote:
> On Aug 25 17:23, Corinna Vinschen wrote:
>> On Aug 25 15:32, Matthew Wahab wrote:
>>> On 25/08/16 15:06, Corinna Vinschen wrote:
>>>> On Aug 25 14:38, Matthew Wahab wrote:
>>>>> Hello,
>>>>>
>>>>> Cross-compiling newlib for aarch64-none-elf fails with the error:
>>>>> ----
>>>> I applied a patch.
>>>
>>>
>>> Thanks. That got further but the build now fails in include/locale.h:
>>> ----
>>> newlib-cygwin/newlib/libc/include/locale.h:74:1: error: unknown type name
>>> 'locale_t'; did you mean 'clockid_t'?
>>>   locale_t _newlocale_r (struct _reent *, int, const char *, struct __locale_t *);
>>>   ^~~~~~~~
>>>   clockid_t
>>> -----
>>> and
>>> ----
>>> newlib-cygwin/newlib/libc/include/locale.h:76:1: error: unknown type name
>>> 'locale_t'; did you mean 'clockid_t'?
>>>   locale_t _duplocale_r (struct _reent *, struct __locale_t *);
>>>   ^~~~~~~~
>>>   clockid_t
>>> ----
>>>
>>> Should 'locale_t' be 'struct __locale_t*' ?
>>
>> Yes.  Did you try?  You might want to send patches... ;)
>
> I pushed a patch for this.
>
>
> Corinna
>

Thanks, that worked.
Matthew



More information about the Newlib mailing list