public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
* Build fails with an error in setlocale.h
@ 2016-08-16 10:37 Matthew Wahab
  2016-08-16 10:48 ` Corinna Vinschen
  0 siblings, 1 reply; 10+ messages in thread
From: Matthew Wahab @ 2016-08-16 10:37 UTC (permalink / raw)
  To: newlib; +Cc: corinna

Hello,

I get a build failure when cross-compiling for aarch64-none-elf, the error 
message is
----
newlib-cygwin/newlib/libc/stdlib/../locale/setlocale.h:206:38: error: unknown 
type name 'locale_t'; did you mean 'clockid_t'?
          size_t, size_t, mbstate_t *, locale_t);
                                       ^~~~~~~~
                                       clockid_t
----

The error points to the declaration

diff --git a/newlib/libc/locale/setlocale.h b/newlib/libc/locale/setlocale.h
+extern size_t _wcsnrtombs_l (struct _reent *, char *, const wchar_t **,
+			     size_t, size_t, mbstate_t *, locale_t);
+

added by
----
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Wed Aug 10 16:30:46 2016 +0200

     Implement strto[dflu]_l/wcsto[dflu]_l
----

Looking at the surrounding code in that file, I think that locale_t should have 
been __locale_t.

Let me know if there's anything else I should check,
Matthew

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-08-16 17:04 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-16 10:37 Build fails with an error in setlocale.h Matthew Wahab
2016-08-16 10:48 ` Corinna Vinschen
2016-08-16 10:58   ` Corinna Vinschen
2016-08-16 11:39   ` Matthew Wahab
2016-08-16 11:57     ` Matthew Wahab
2016-08-16 13:27       ` Corinna Vinschen
2016-08-16 13:59         ` Matthew Wahab
2016-08-16 14:28           ` Corinna Vinschen
2016-08-16 15:14             ` Matthew Wahab
2016-08-16 17:04               ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).