clang patches 205197 or 205198 possibly causing/exposing problems in libcxx with mingw64

G M gmisocpp at gmail.com
Wed Apr 2 18:24:47 PDT 2014


Hi Everyone

If I build libcxx on Windows/mingw64 I see errors. I am guessing these
patches may be the reason.

205197 - Sema: Check dll attributes on redeclaration
A redeclaration may not add dllimport or dllexport attributes. dllexport is
sticky and can be omitted on redeclarations while dllimport cannot.
205198 - Sema: Require external linkage for dll attributes

I believe the code might be using an inline function to hide another
dllimported function of the same name. It previously compiled and now it
doesn't. I don't know what the legality of that code is standards wise but
that might be the intention. So I don't know if the "fix" for this should
go in the libcxx/mingw code or the clang code.

I hope the error report and info is helpful to someone in fixing it
wherever that is.
The clang is the very latest from svn.

Thanks.

[11/29] Building CXX object lib\CMakeFiles\cxx.dir\__\src\exception.cpp.obj
FAILED: \mingw\bin\clang++.exe    -pipe -march=corei7 -O3 -fno-exceptions
-nostdinc++ -std=c++0x -Werror=return-type -Wall
 -W -Wno-unused-parameter -Wwrite-strings -Wno-long-long -Wno-error
-pedantic -D_DEBUG -UNDEBUG -D_LIBCPP_BUILD_STATIC -O3
 -DNDEBUG -Ic:\libcxx\include    -fPIC -MMD -MT
lib\CMakeFiles\cxx.dir\__\src\exception.cpp.obj -MF "lib/CMakeFiles/cxx.di
r/__/src/exception.cpp.obj.d" -o
lib\CMakeFiles\cxx.dir\__\src\exception.cpp.obj -c
c:\libcxx\src\exception.cpp
In file included from c:\libcxx\src\exception.cpp:10:
In file included from
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:24:23:
error: redeclaration of '_sca
nf_l' cannot add 'dllimport' attribute
  _CRTIMP int __cdecl _scanf_l(const char *_Format,_locale_t _Locale,...);
                      ^
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:518:15:
note: previous declaration is here
  int __cdecl _scanf_l(const char * __restrict__ format,_locale_t
locale,... ) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
              ^
In file included from c:\libcxx\src\exception.cpp:10:
In file included from
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:32:23:
error: redeclaration of '_fsc
anf_l' cannot add 'dllimport' attribute
  _CRTIMP int __cdecl _fscanf_l(FILE *_File,const char *_Format,_locale_t
_Locale,...);
                      ^
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:456:15:
note: previous declaration is here
  int __cdecl _fscanf_l(FILE * __restrict__ _File,const char * __restrict__
_Format,_locale_t locale,...) __MINGW_ATTRIB_D
EPRECATED_SEC_WARN;
              ^
In file included from c:\libcxx\src\exception.cpp:10:
In file included from
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:33:23:
error: redeclaration of '_ssc
anf_l' cannot add 'dllimport' attribute
  _CRTIMP int __cdecl _sscanf_l(const char *_Src,const char
*_Format,_locale_t _Locale,...);
                      ^
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:525:15:
note: previous declaration is here
  int __cdecl _sscanf_l(const char * __restrict__ buffer,const char *
__restrict__ format,_locale_t locale,...) __MINGW_AT
TRIB_DEPRECATED_SEC_WARN;
              ^
In file included from c:\libcxx\src\exception.cpp:10:
In file included from
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:69:23:
error: redeclaration of '_spr
intf_l' cannot add 'dllimport' attribute
  _CRTIMP int __cdecl _sprintf_l(char *_DstBuf,const char
*_Format,_locale_t _Locale,...);
                      ^
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:536:15:
note: previous declaration is here
  int __cdecl _sprintf_l(char * __restrict__ buffer,const char *
__restrict__ format,_locale_t locale,...) __MINGW_ATTRIB_
DEPRECATED_SEC_WARN;
              ^
c:\libcxx\src\exception.cpp:118:9: warning: #warning is a language
extension [-Wpedantic]
#       warning uncaught_exception not yet implemented
        ^
c:\libcxx\src\exception.cpp:118:9: warning: uncaught_exception not yet
implemented [-W#warnings]
c:\libcxx\src\exception.cpp:191:9: warning: #warning is a language
extension [-Wpedantic]
#       warning exception_ptr not yet implemented
        ^
c:\libcxx\src\exception.cpp:191:9: warning: exception_ptr not yet
implemented [-W#warnings]
c:\libcxx\src\exception.cpp:210:9: warning: #warning is a language
extension [-Wpedantic]
#       warning exception_ptr not yet implemented
        ^
c:\libcxx\src\exception.cpp:210:9: warning: exception_ptr not yet
implemented [-W#warnings]
c:\libcxx\src\exception.cpp:235:9: warning: #warning is a language
extension [-Wpedantic]
#       warning exception_ptr not yet implemented
        ^
c:\libcxx\src\exception.cpp:235:9: warning: exception_ptr not yet
implemented [-W#warnings]
c:\libcxx\src\exception.cpp:279:9: warning: #warning is a language
extension [-Wpedantic]
#       warning exception_ptr not yet implemented
        ^
c:\libcxx\src\exception.cpp:279:9: warning: exception_ptr not yet
implemented [-W#warnings]
c:\libcxx\src\exception.cpp:301:9: warning: #warning is a language
extension [-Wpedantic]
#       warning exception_ptr not yet implemented
        ^
c:\libcxx\src\exception.cpp:301:9: warning: exception_ptr not yet
implemented [-W#warnings]
12 warnings and 4 errors generated.
[11/29] Building CXX object lib\CMakeFiles\cxx.dir\__\src\debug.cpp.obj
FAILED: \mingw\bin\clang++.exe    -pipe -march=corei7 -O3 -fno-exceptions
-nostdinc++ -std=c++0x -Werror=return-type -Wall
 -W -Wno-unused-parameter -Wwrite-strings -Wno-long-long -Wno-error
-pedantic -D_DEBUG -UNDEBUG -D_LIBCPP_BUILD_STATIC -O3
 -DNDEBUG -Ic:\libcxx\include    -fPIC -MMD -MT
lib\CMakeFiles\cxx.dir\__\src\debug.cpp.obj -MF "lib/CMakeFiles/cxx.dir/__
/src/debug.cpp.obj.d" -o lib\CMakeFiles\cxx.dir\__\src\debug.cpp.obj -c
c:\libcxx\src\debug.cpp
In file included from c:\libcxx\src\debug.cpp:12:
In file included from c:\libcxx\include\__debug:21:
In file included from c:\libcxx\include\cstdio:100:
In file included from
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:24:23:
error: redeclaration of '_sca
nf_l' cannot add 'dllimport' attribute
  _CRTIMP int __cdecl _scanf_l(const char *_Format,_locale_t _Locale,...);
                      ^
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:518:15:
note: previous declaration is here
  int __cdecl _scanf_l(const char * __restrict__ format,_locale_t
locale,... ) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
              ^
In file included from c:\libcxx\src\debug.cpp:12:
In file included from c:\libcxx\include\__debug:21:
In file included from c:\libcxx\include\cstdio:100:
In file included from
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:32:23:
error: redeclaration of '_fsc
anf_l' cannot add 'dllimport' attribute
  _CRTIMP int __cdecl _fscanf_l(FILE *_File,const char *_Format,_locale_t
_Locale,...);
                      ^
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:456:15:
note: previous declaration is here
  int __cdecl _fscanf_l(FILE * __restrict__ _File,const char * __restrict__
_Format,_locale_t locale,...) __MINGW_ATTRIB_D
EPRECATED_SEC_WARN;
              ^
In file included from c:\libcxx\src\debug.cpp:12:
In file included from c:\libcxx\include\__debug:21:
In file included from c:\libcxx\include\cstdio:100:
In file included from
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:33:23:
error: redeclaration of '_ssc
anf_l' cannot add 'dllimport' attribute
  _CRTIMP int __cdecl _sscanf_l(const char *_Src,const char
*_Format,_locale_t _Locale,...);
                      ^
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:525:15:
note: previous declaration is here
  int __cdecl _sscanf_l(const char * __restrict__ buffer,const char *
__restrict__ format,_locale_t locale,...) __MINGW_AT
TRIB_DEPRECATED_SEC_WARN;
              ^
In file included from c:\libcxx\src\debug.cpp:12:
In file included from c:\libcxx\include\__debug:21:
In file included from c:\libcxx\include\cstdio:100:
In file included from
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:69:23:
error: redeclaration of '_spr
intf_l' cannot add 'dllimport' attribute
  _CRTIMP int __cdecl _sprintf_l(char *_DstBuf,const char
*_Format,_locale_t _Locale,...);
                      ^
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:536:15:
note: previous declaration is here
  int __cdecl _sprintf_l(char * __restrict__ buffer,const char *
__restrict__ format,_locale_t locale,...) __MINGW_ATTRIB_
DEPRECATED_SEC_WARN;
              ^
4 errors generated.
[11/29] Building CXX object lib\CMakeFiles\cxx.dir\__\src\future.cpp.obj
FAILED: \mingw\bin\clang++.exe    -pipe -march=corei7 -O3 -fno-exceptions
-nostdinc++ -std=c++0x -Werror=return-type -Wall
 -W -Wno-unused-parameter -Wwrite-strings -Wno-long-long -Wno-error
-pedantic -D_DEBUG -UNDEBUG -D_LIBCPP_BUILD_STATIC -O3
 -DNDEBUG -Ic:\libcxx\include    -fPIC -MMD -MT
lib\CMakeFiles\cxx.dir\__\src\future.cpp.obj -MF "lib/CMakeFiles/cxx.dir/_
_/src/future.cpp.obj.d" -o lib\CMakeFiles\cxx.dir\__\src\future.cpp.obj -c
c:\libcxx\src\future.cpp
In file included from c:\libcxx\src\future.cpp:11:
In file included from c:\libcxx\include\string:437:
In file included from c:\libcxx\include\cstdio:100:
In file included from
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:24:23:
error: redeclaration of '_sca
nf_l' cannot add 'dllimport' attribute
  _CRTIMP int __cdecl _scanf_l(const char *_Format,_locale_t _Locale,...);
                      ^
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:518:15:
note: previous declaration is here
  int __cdecl _scanf_l(const char * __restrict__ format,_locale_t
locale,... ) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
              ^
In file included from c:\libcxx\src\future.cpp:11:
In file included from c:\libcxx\include\string:437:
In file included from c:\libcxx\include\cstdio:100:
In file included from
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:32:23:
error: redeclaration of '_fsc
anf_l' cannot add 'dllimport' attribute
  _CRTIMP int __cdecl _fscanf_l(FILE *_File,const char *_Format,_locale_t
_Locale,...);
                      ^
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:456:15:
note: previous declaration is here
  int __cdecl _fscanf_l(FILE * __restrict__ _File,const char * __restrict__
_Format,_locale_t locale,...) __MINGW_ATTRIB_D
EPRECATED_SEC_WARN;
              ^
In file included from c:\libcxx\src\future.cpp:11:
In file included from c:\libcxx\include\string:437:
In file included from c:\libcxx\include\cstdio:100:
In file included from
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:33:23:
error: redeclaration of '_ssc
anf_l' cannot add 'dllimport' attribute
  _CRTIMP int __cdecl _sscanf_l(const char *_Src,const char
*_Format,_locale_t _Locale,...);
                      ^
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:525:15:
note: previous declaration is here
  int __cdecl _sscanf_l(const char * __restrict__ buffer,const char *
__restrict__ format,_locale_t locale,...) __MINGW_AT
TRIB_DEPRECATED_SEC_WARN;
              ^
In file included from c:\libcxx\src\future.cpp:11:
In file included from c:\libcxx\include\string:437:
In file included from c:\libcxx\include\cstdio:100:
In file included from
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:69:23:
error: redeclaration of '_spr
intf_l' cannot add 'dllimport' attribute
  _CRTIMP int __cdecl _sprintf_l(char *_DstBuf,const char
*_Format,_locale_t _Locale,...);
                      ^
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:536:15:
note: previous declaration is here
  int __cdecl _sprintf_l(char * __restrict__ buffer,const char *
__restrict__ format,_locale_t locale,...) __MINGW_ATTRIB_
DEPRECATED_SEC_WARN;
              ^
4 errors generated.
[11/29] Building CXX object lib\CMakeFiles\cxx.dir\__\src\iostream.cpp.obj
FAILED: \mingw\bin\clang++.exe    -pipe -march=corei7 -O3 -fno-exceptions
-nostdinc++ -std=c++0x -Werror=return-type -Wall
 -W -Wno-unused-parameter -Wwrite-strings -Wno-long-long -Wno-error
-pedantic -D_DEBUG -UNDEBUG -D_LIBCPP_BUILD_STATIC -O3
 -DNDEBUG -Ic:\libcxx\include    -fPIC -MMD -MT
lib\CMakeFiles\cxx.dir\__\src\iostream.cpp.obj -MF "lib/CMakeFiles/cxx.dir
/__/src/iostream.cpp.obj.d" -o
lib\CMakeFiles\cxx.dir\__\src\iostream.cpp.obj -c c:\libcxx\src\iostream.cpp
In file included from c:\libcxx\src\iostream.cpp:10:
In file included from c:\libcxx\include\__std_stream:15:
In file included from c:\libcxx\include\ostream:131:
In file included from c:\libcxx\include\ios:216:
In file included from c:\libcxx\include\__locale:15:
In file included from c:\libcxx\include\string:437:
In file included from c:\libcxx\include\cstdio:100:
In file included from
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:24:23:
error: redeclaration of '_sca
nf_l' cannot add 'dllimport' attribute
  _CRTIMP int __cdecl _scanf_l(const char *_Format,_locale_t _Locale,...);
                      ^
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:518:15:
note: previous declaration is here
  int __cdecl _scanf_l(const char * __restrict__ format,_locale_t
locale,... ) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
              ^
In file included from c:\libcxx\src\iostream.cpp:10:
In file included from c:\libcxx\include\__std_stream:15:
In file included from c:\libcxx\include\ostream:131:
In file included from c:\libcxx\include\ios:216:
In file included from c:\libcxx\include\__locale:15:
In file included from c:\libcxx\include\string:437:
In file included from c:\libcxx\include\cstdio:100:
In file included from
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:32:23:
error: redeclaration of '_fsc
anf_l' cannot add 'dllimport' attribute
  _CRTIMP int __cdecl _fscanf_l(FILE *_File,const char *_Format,_locale_t
_Locale,...);
                      ^
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:456:15:
note: previous declaration is here
  int __cdecl _fscanf_l(FILE * __restrict__ _File,const char * __restrict__
_Format,_locale_t locale,...) __MINGW_ATTRIB_D
EPRECATED_SEC_WARN;
              ^
In file included from c:\libcxx\src\iostream.cpp:10:
In file included from c:\libcxx\include\__std_stream:15:
In file included from c:\libcxx\include\ostream:131:
In file included from c:\libcxx\include\ios:216:
In file included from c:\libcxx\include\__locale:15:
In file included from c:\libcxx\include\string:437:
In file included from c:\libcxx\include\cstdio:100:
In file included from
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:33:23:
error: redeclaration of '_ssc
anf_l' cannot add 'dllimport' attribute
  _CRTIMP int __cdecl _sscanf_l(const char *_Src,const char
*_Format,_locale_t _Locale,...);
                      ^
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:525:15:
note: previous declaration is here
  int __cdecl _sscanf_l(const char * __restrict__ buffer,const char *
__restrict__ format,_locale_t locale,...) __MINGW_AT
TRIB_DEPRECATED_SEC_WARN;
              ^
In file included from c:\libcxx\src\iostream.cpp:10:
In file included from c:\libcxx\include\__std_stream:15:
In file included from c:\libcxx\include\ostream:131:
In file included from c:\libcxx\include\ios:216:
In file included from c:\libcxx\include\__locale:15:
In file included from c:\libcxx\include\string:437:
In file included from c:\libcxx\include\cstdio:100:
In file included from
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:69:23:
error: redeclaration of '_spr
intf_l' cannot add 'dllimport' attribute
  _CRTIMP int __cdecl _sprintf_l(char *_DstBuf,const char
*_Format,_locale_t _Locale,...);
                      ^
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:536:15:
note: previous declaration is here
  int __cdecl _sprintf_l(char * __restrict__ buffer,const char *
__restrict__ format,_locale_t locale,...) __MINGW_ATTRIB_
DEPRECATED_SEC_WARN;
              ^
4 errors generated.
[11/29] Building CXX object lib\CMakeFiles\cxx.dir\__\src\ios.cpp.obj
FAILED: \mingw\bin\clang++.exe    -pipe -march=corei7 -O3 -fno-exceptions
-nostdinc++ -std=c++0x -Werror=return-type -Wall
 -W -Wno-unused-parameter -Wwrite-strings -Wno-long-long -Wno-error
-pedantic -D_DEBUG -UNDEBUG -D_LIBCPP_BUILD_STATIC -O3
 -DNDEBUG -Ic:\libcxx\include    -fPIC -MMD -MT
lib\CMakeFiles\cxx.dir\__\src\ios.cpp.obj -MF "lib/CMakeFiles/cxx.dir/__/s
rc/ios.cpp.obj.d" -o lib\CMakeFiles\cxx.dir\__\src\ios.cpp.obj -c
c:\libcxx\src\ios.cpp
In file included from c:\libcxx\src\ios.cpp:12:
In file included from c:\libcxx\include\ios:216:
In file included from c:\libcxx\include\__locale:15:
In file included from c:\libcxx\include\string:437:
In file included from c:\libcxx\include\cstdio:100:
In file included from
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:24:23:
error: redeclaration of '_sca
nf_l' cannot add 'dllimport' attribute
  _CRTIMP int __cdecl _scanf_l(const char *_Format,_locale_t _Locale,...);
                      ^
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:518:15:
note: previous declaration is here
  int __cdecl _scanf_l(const char * __restrict__ format,_locale_t
locale,... ) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
              ^
In file included from c:\libcxx\src\ios.cpp:12:
In file included from c:\libcxx\include\ios:216:
In file included from c:\libcxx\include\__locale:15:
In file included from c:\libcxx\include\string:437:
In file included from c:\libcxx\include\cstdio:100:
In file included from
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:32:23:
error: redeclaration of '_fsc
anf_l' cannot add 'dllimport' attribute
  _CRTIMP int __cdecl _fscanf_l(FILE *_File,const char *_Format,_locale_t
_Locale,...);
                      ^
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:456:15:
note: previous declaration is here
  int __cdecl _fscanf_l(FILE * __restrict__ _File,const char * __restrict__
_Format,_locale_t locale,...) __MINGW_ATTRIB_D
EPRECATED_SEC_WARN;
              ^
In file included from c:\libcxx\src\ios.cpp:12:
In file included from c:\libcxx\include\ios:216:
In file included from c:\libcxx\include\__locale:15:
In file included from c:\libcxx\include\string:437:
In file included from c:\libcxx\include\cstdio:100:
In file included from
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:33:23:
error: redeclaration of '_ssc
anf_l' cannot add 'dllimport' attribute
  _CRTIMP int __cdecl _sscanf_l(const char *_Src,const char
*_Format,_locale_t _Locale,...);
                      ^
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:525:15:
note: previous declaration is here
  int __cdecl _sscanf_l(const char * __restrict__ buffer,const char *
__restrict__ format,_locale_t locale,...) __MINGW_AT
TRIB_DEPRECATED_SEC_WARN;
              ^
In file included from c:\libcxx\src\ios.cpp:12:
In file included from c:\libcxx\include\ios:216:
In file included from c:\libcxx\include\__locale:15:
In file included from c:\libcxx\include\string:437:
In file included from c:\libcxx\include\cstdio:100:
In file included from
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:69:23:
error: redeclaration of '_spr
intf_l' cannot add 'dllimport' attribute
  _CRTIMP int __cdecl _sprintf_l(char *_DstBuf,const char
*_Format,_locale_t _Locale,...);
                      ^
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:536:15:
note: previous declaration is here
  int __cdecl _sprintf_l(char * __restrict__ buffer,const char *
__restrict__ format,_locale_t locale,...) __MINGW_ATTRIB_
DEPRECATED_SEC_WARN;
              ^
4 errors generated.
[11/29] Building CXX object lib\CMakeFiles\cxx.dir\__\src\algorithm.cpp.obj
FAILED: \mingw\bin\clang++.exe    -pipe -march=corei7 -O3 -fno-exceptions
-nostdinc++ -std=c++0x -Werror=return-type -Wall
 -W -Wno-unused-parameter -Wwrite-strings -Wno-long-long -Wno-error
-pedantic -D_DEBUG -UNDEBUG -D_LIBCPP_BUILD_STATIC -O3
 -DNDEBUG -Ic:\libcxx\include    -fPIC -MMD -MT
lib\CMakeFiles\cxx.dir\__\src\algorithm.cpp.obj -MF "lib/CMakeFiles/cxx.di
r/__/src/algorithm.cpp.obj.d" -o
lib\CMakeFiles\cxx.dir\__\src\algorithm.cpp.obj -c
c:\libcxx\src\algorithm.cpp
In file included from c:\libcxx\src\algorithm.cpp:12:
In file included from c:\libcxx\include\random:1644:
In file included from c:\libcxx\include\string:437:
In file included from c:\libcxx\include\cstdio:100:
In file included from
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:24:23:
error: redeclaration of '_sca
nf_l' cannot add 'dllimport' attribute
  _CRTIMP int __cdecl _scanf_l(const char *_Format,_locale_t _Locale,...);
                      ^
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:518:15:
note: previous declaration is here
  int __cdecl _scanf_l(const char * __restrict__ format,_locale_t
locale,... ) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
              ^
In file included from c:\libcxx\src\algorithm.cpp:12:
In file included from c:\libcxx\include\random:1644:
In file included from c:\libcxx\include\string:437:
In file included from c:\libcxx\include\cstdio:100:
In file included from
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:32:23:
error: redeclaration of '_fsc
anf_l' cannot add 'dllimport' attribute
  _CRTIMP int __cdecl _fscanf_l(FILE *_File,const char *_Format,_locale_t
_Locale,...);
                      ^
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:456:15:
note: previous declaration is here
  int __cdecl _fscanf_l(FILE * __restrict__ _File,const char * __restrict__
_Format,_locale_t locale,...) __MINGW_ATTRIB_D
EPRECATED_SEC_WARN;
              ^
In file included from c:\libcxx\src\algorithm.cpp:12:
In file included from c:\libcxx\include\random:1644:
In file included from c:\libcxx\include\string:437:
In file included from c:\libcxx\include\cstdio:100:
In file included from
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:33:23:
error: redeclaration of '_ssc
anf_l' cannot add 'dllimport' attribute
  _CRTIMP int __cdecl _sscanf_l(const char *_Src,const char
*_Format,_locale_t _Locale,...);
                      ^
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:525:15:
note: previous declaration is here
  int __cdecl _sscanf_l(const char * __restrict__ buffer,const char *
__restrict__ format,_locale_t locale,...) __MINGW_AT
TRIB_DEPRECATED_SEC_WARN;
              ^
In file included from c:\libcxx\src\algorithm.cpp:12:
In file included from c:\libcxx\include\random:1644:
In file included from c:\libcxx\include\string:437:
In file included from c:\libcxx\include\cstdio:100:
In file included from
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:69:23:
error: redeclaration of '_spr
intf_l' cannot add 'dllimport' attribute
  _CRTIMP int __cdecl _sprintf_l(char *_DstBuf,const char
*_Format,_locale_t _Locale,...);
                      ^
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:536:15:
note: previous declaration is here
  int __cdecl _sprintf_l(char * __restrict__ buffer,const char *
__restrict__ format,_locale_t locale,...) __MINGW_ATTRIB_
DEPRECATED_SEC_WARN;
              ^
4 errors generated.
[11/29] Building CXX object lib\CMakeFiles\cxx.dir\__\src\locale.cpp.obj
FAILED: \mingw\bin\clang++.exe    -pipe -march=corei7 -O3 -fno-exceptions
-nostdinc++ -std=c++0x -Werror=return-type -Wall
 -W -Wno-unused-parameter -Wwrite-strings -Wno-long-long -Wno-error
-pedantic -D_DEBUG -UNDEBUG -D_LIBCPP_BUILD_STATIC -O3
 -DNDEBUG -Ic:\libcxx\include    -fPIC -MMD -MT
lib\CMakeFiles\cxx.dir\__\src\locale.cpp.obj -MF "lib/CMakeFiles/cxx.dir/_
_/src/locale.cpp.obj.d" -o lib\CMakeFiles\cxx.dir\__\src\locale.cpp.obj -c
c:\libcxx\src\locale.cpp
In file included from c:\libcxx\src\locale.cpp:18:
In file included from c:\libcxx\include\string:437:
In file included from c:\libcxx\include\cstdio:100:
In file included from
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:24:23:
error: redeclaration of '_sca
nf_l' cannot add 'dllimport' attribute
  _CRTIMP int __cdecl _scanf_l(const char *_Format,_locale_t _Locale,...);
                      ^
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:518:15:
note: previous declaration is here
  int __cdecl _scanf_l(const char * __restrict__ format,_locale_t
locale,... ) __MINGW_ATTRIB_DEPRECATED_SEC_WARN;
              ^
In file included from c:\libcxx\src\locale.cpp:18:
In file included from c:\libcxx\include\string:437:
In file included from c:\libcxx\include\cstdio:100:
In file included from
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:32:23:
error: redeclaration of '_fsc
anf_l' cannot add 'dllimport' attribute
  _CRTIMP int __cdecl _fscanf_l(FILE *_File,const char *_Format,_locale_t
_Locale,...);
                      ^
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:456:15:
note: previous declaration is here
  int __cdecl _fscanf_l(FILE * __restrict__ _File,const char * __restrict__
_Format,_locale_t locale,...) __MINGW_ATTRIB_D
EPRECATED_SEC_WARN;
              ^
In file included from c:\libcxx\src\locale.cpp:18:
In file included from c:\libcxx\include\string:437:
In file included from c:\libcxx\include\cstdio:100:
In file included from
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:33:23:
error: redeclaration of '_ssc
anf_l' cannot add 'dllimport' attribute
  _CRTIMP int __cdecl _sscanf_l(const char *_Src,const char
*_Format,_locale_t _Locale,...);
                      ^
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:525:15:
note: previous declaration is here
  int __cdecl _sscanf_l(const char * __restrict__ buffer,const char *
__restrict__ format,_locale_t locale,...) __MINGW_AT
TRIB_DEPRECATED_SEC_WARN;
              ^
In file included from c:\libcxx\src\locale.cpp:18:
In file included from c:\libcxx\include\string:437:
In file included from c:\libcxx\include\cstdio:100:
In file included from
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:1000:
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\sec_api/stdio_s.h:69:23:
error: redeclaration of '_spr
intf_l' cannot add 'dllimport' attribute
  _CRTIMP int __cdecl _sprintf_l(char *_DstBuf,const char
*_Format,_locale_t _Locale,...);
                      ^
c:\mingw\bin\..\lib\clang\3.5.0\../../../x86_64-w64-mingw32/include\stdio.h:536:15:
note: previous declaration is here
  int __cdecl _sprintf_l(char * __restrict__ buffer,const char *
__restrict__ format,_locale_t locale,...) __MINGW_ATTRIB_
DEPRECATED_SEC_WARN;
              ^
4 errors generated.
end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140403/517eb499/attachment.html>


More information about the cfe-commits mailing list