No - it was once fixed but then looks removed. I think the true issue is in glibc, so that is why the fix was uncommitted from clang.<br><br><div class="gmail_quote">On Tue, Jul 27, 2010 at 10:01 PM, John <span dir="ltr"><<a href="mailto:shangbuqixing@163.com">shangbuqixing@163.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">Duncan McQueen <dwmcqueen@...> writes:<br>
<br>
><br>
><br>
> Helo,I built Clang using MinGW. Everything seemed to go well in the build. <br>
However, when I ran a simple test (compilation of the following using 'clang<br>
t.c'):#include <stdio.h><br>
> int main(int argc, char **argv) { printf("hello world\n"); }I get these<br>
</div>messages:C:\Tools\build.llvm\testcomp>clang t.cIn file included from<br>
<div><div></div><div class="h5">t.c:1:c:/mingw/include/stdio.h:571:9: error: unknown type name 'wint_t'<br>
> _CRTIMP wint_t __cdecl __MINGW_NOTHROW fgetwc (FILE*);<br>
^c:/mingw/include/stdio.h:571:16: error: expected identifier or '('_CRTIMP<br>
wint_t __cdecl __MINGW_NOTHROW fgetwc (FILE*); ^<br>
> In file included from t.c:1:In file included from<br>
c:/mingw/include/stdio.h:19:c:/mingw/include/_mingw.h:145:20: note:<br>
instantiated from:# define __cdecl __attribute__<br>
((__cdecl__)) ^<br>
> In file included from t.c:1:c:/mingw/include/stdio.h:572:9: error: unknown<br>
type name 'wint_t'_CRTIMP wint_t __cdecl __MINGW_NOTHROW fputwc (wchar_t,<br>
FILE*); ^c:/mingw/include/stdio.h:572:16: error: expected identifier<br>
or '('<br>
> _CRTIMP wint_t __cdecl __MINGW_NOTHROW fputwc (wchar_t,<br>
FILE*); ^In file included from t.c:1:In file included from<br>
c:/mingw/include/stdio.h:19:c:/mingw/include/_mingw.h:145:20: note:<br>
instantiated from:<br>
> # define __cdecl __attribute__ ((__cdecl__)) ^In file<br>
included from t.c:1:c:/mingw/include/stdio.h:573:9: error: unknown type<br>
name 'wint_t'_CRTIMP wint_t __cdecl __MINGW_NOTHROW ungetwc (wchar_t, FILE*);<br>
> ^c:/mingw/include/stdio.h:573:16: error: expected identifier<br>
or '('_CRTIMP wint_t __cdecl __MINGW_NOTHROW ungetwc (wchar_t,<br>
FILE*); ^In file included from t.c:1:In file included from<br>
c:/mingw/include/stdio.h:19:<br>
> c:/mingw/include/_mingw.h:145:20: note: instantiated from:# define __cdecl<br>
__attribute__ ((__cdecl__)) ^In file included from<br>
t.c:1:c:/mingw/include/stdio.h:584:9: error: unknown type name 'wint_t'<br>
> _CRTIMP wint_t __cdecl __MINGW_NOTHROW getwc (FILE*);<br>
^c:/mingw/include/stdio.h:584:16: error: expected identifier or '('_CRTIMP<br>
wint_t __cdecl __MINGW_NOTHROW getwc (FILE*); ^<br>
> In file included from t.c:1:In file included from<br>
c:/mingw/include/stdio.h:19:c:/mingw/include/_mingw.h:145:20: note:<br>
instantiated from:# define __cdecl __attribute__<br>
((__cdecl__)) ^<br>
> In file included from t.c:1:c:/mingw/include/stdio.h:585:9: error: unknown<br>
type name 'wint_t'_CRTIMP wint_t __cdecl __MINGW_NOTHROW getwchar<br>
(void); ^c:/mingw/include/stdio.h:585:16: error: expected identifier<br>
or '('<br>
> _CRTIMP wint_t __cdecl __MINGW_NOTHROW getwchar (void); ^In<br>
file included from t.c:1:In file included from<br>
c:/mingw/include/stdio.h:19:c:/mingw/include/_mingw.h:145:20: note:<br>
instantiated from:<br>
> # define __cdecl __attribute__ ((__cdecl__)) ^In file<br>
included from t.c:1:c:/mingw/include/stdio.h:587:9: error: unknown type<br>
name 'wint_t'_CRTIMP wint_t __cdecl __MINGW_NOTHROW putwc (wint_t, FILE*);<br>
> ^c:/mingw/include/stdio.h:587:16: error: expected identifier<br>
or '('_CRTIMP wint_t __cdecl __MINGW_NOTHROW putwc (wint_t,<br>
FILE*); ^In file included from t.c:1:In file included from<br>
c:/mingw/include/stdio.h:19:<br>
> c:/mingw/include/_mingw.h:145:20: note: instantiated from:# define __cdecl<br>
__attribute__ ((__cdecl__)) ^In file included from<br>
t.c:1:c:/mingw/include/stdio.h:589:9: error: unknown type name 'wint_t'<br>
> _CRTIMP wint_t __cdecl __MINGW_NOTHROW putwchar (wint_t);<br>
^c:/mingw/include/stdio.h:589:16: error: expected identifier or '('_CRTIMP<br>
wint_t __cdecl __MINGW_NOTHROW putwchar (wint_t); ^<br>
> In file included from t.c:1:In file included from<br>
c:/mingw/include/stdio.h:19:c:/mingw/include/_mingw.h:145:20: note:<br>
instantiated from:# define __cdecl __attribute__<br>
((__cdecl__)) ^<br>
> In file included from t.c:1:c:/mingw/include/stdio.h:630:9: error: unknown<br>
type name 'wint_t'_CRTIMP wint_t __cdecl __MINGW_NOTHROW _fgetwchar<br>
(void); ^c:/mingw/include/stdio.h:630:16: error: expected identifier<br>
or '('<br>
> _CRTIMP wint_t __cdecl __MINGW_NOTHROW _fgetwchar (void); ^In<br>
file included from t.c:1:In file included from<br>
c:/mingw/include/stdio.h:19:c:/mingw/include/_mingw.h:145:20: note:<br>
instantiated from:<br>
> # define __cdecl __attribute__ ((__cdecl__)) ^In file<br>
included from t.c:1:c:/mingw/include/stdio.h:631:9: error: unknown type<br>
name 'wint_t'_CRTIMP wint_t __cdecl __MINGW_NOTHROW _fputwchar (wint_t);<br>
> ^c:/mingw/include/stdio.h:631:16: error: expected identifier<br>
or '('_CRTIMP wint_t __cdecl __MINGW_NOTHROW _fputwchar<br>
(wint_t); ^In file included from t.c:1:In file included from<br>
c:/mingw/include/stdio.h:19:<br>
> c:/mingw/include/_mingw.h:145:20: note: instantiated from:# define __cdecl<br>
__attribute__ ((__cdecl__)) ^In file included from<br>
t.c:1:c:/mingw/include/stdio.h:636:9: error: unknown type name 'wint_t'<br>
> _CRTIMP wint_t __cdecl __MINGW_NOTHROW fgetwchar (void); ^fatal<br>
error: too many errors emitted, stopping now [-ferror-limit=]20 errors<br>
generated.-- Duncan McQueenOpenThinking Systems,<br>
</div></div>LLChttp://<a href="http://www.openthinkingsystems.com" target="_blank">www.openthinkingsystems.com</a><br>
><br>
><br>
> _______________________________________________<br>
> cfe-dev mailing list<br>
> cfe-dev@...<br>
<div class="im">> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
><br>
<br>
<br>
</div>Hi:<br>
I am using cygwin to build llvm and clang.I meet the same question as you<br>
description. Have you soluted the question? If you have soluted, please email<br>
me ! Thanks you<br>
<div><div></div><div class="h5"><br>
<br>
<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Duncan McQueen<br>OpenThinking Systems, LLC<br><a href="http://www.openthinkingsystems.com">http://www.openthinkingsystems.com</a><br>