Hello,
I'm porting Clang 3.9 for MSYS2 ("porting" is a big word for it since most
of the patches are done by Martell), right now it can build not too
complicated software.
When trying to compile 64bit Clang with itself it thrown this error (Clang
32 bit and GCC 6.2 32/64 bit are fine):

In file included from
> D:/projekty/msys2/MINGW-packages/mingw-w64-clang/src/llvm-3.9.0.src/projects/libcxx/src/thread.cpp:35:
> In file included from
> D:\projekty\msys2\clang\msys64\mingw64\x86_64-w64-mingw32\include\windows.h:114:
> D:\projekty\msys2\clang\msys64\mingw64\x86_64-w64-mingw32\include\stralign.h:121:37:
> error: cannot initialize return object of type 'PUWSTR_C' (aka 'wchar_t *')
> with an rvalue of type 'const wchar_t *'
>     if(WSTR_ALIGNED(String)) return wcschr((PCWSTR)String,Character);
>                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> D:\projekty\msys2\clang\msys64\mingw64\x86_64-w64-mingw32\include\stralign.h:125:37:
> error: cannot initialize return object of type 'PUWSTR_C' (aka 'wchar_t *')
> with an rvalue of type 'const wchar_t *'
>     if(WSTR_ALIGNED(String)) return wcsrchr((PCWSTR)String,Character);
>                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
I don't know if it is mingw-w64 or Clang bug so I'm asking here for some
help with it.

Here are our patches:
https://github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-clang
https://github.com/Alexpux/MINGW-packages/pull/1833

Regards,
Mateusz MikuĊ‚a
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to