I used msys2 and prebuilt package from 
https://sourceforge.net/projects/msys2/files/REPOS/MINGW/
My OS is windows 7 home basic.
My step is 
1.install msys2
2.c:/>msys2>update-core   
3.pacman -S mingw-w64-i686-toolchain
4.pacman -S mingw-w64-i686-clang
5.pacman -S mingw-w64-i686-libc++
6.pacman -S mingw-w64-i686-libc++abi


I test  clang with hello world.But I get error
clang++ --stdlib=libc++ -c hello.cpp -v


clang version 3.8.0 (tags/RELEASE_380/final)
Target: i686-w64-windows-gnu
Thread model: posix
InstalledDir: D:\msys32\mingw32\bin
 "D:\\msys32\\mingw32\\bin\\clang++.exe" -cc1 -triple i686-w64-windows-gnu 
-emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name 
hello.cpp -mrelocation-model static -mthread-model posix -mdisable-fp-elim 
-fmath-errno -masm-verbose -mconstructor-aliases -target-cpu pentium4 -v 
-dwarf-column-info -debugger-tuning=gdb -coverage-file 
"D:\\msys32\\home\\h\\hello.cpp" -resource-dir 
"D:\\msys32\\mingw32\\bin\\..\\lib\\clang\\3.8.0" -internal-isystem 
"D:\\msys32\\mingw32\\include\\c++\\v1" -internal-isystem 
"D:\\msys32\\mingw32\\bin\\..\\lib\\clang\\3.8.0\\include" -internal-isystem 
"D:\\msys32\\mingw32\\lib\\gcc\\i686-w64-mingw32\\5.3.0\\include" 
-internal-isystem 
"D:\\msys32\\mingw32\\i686-w64-mingw32/sys-root/mingw/include" 
-internal-isystem 
"D:\\msys32\\mingw32\\lib\\gcc\\i686-w64-mingw32\\5.3.0\\include-fixed" 
-internal-isystem "D:\\msys32\\mingw32\\i686-w64-mingw32\\include" 
-internal-isystem "D:\\msys32\\mingw32\\include" -fdeprecated-macro 
-fdebug-compilation-dir
  "D:\\msys32\\home\\h" -ferror-limit 19 -fmessage-length 0 -fno-use-cxa-atexit 
-fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -o 
hello.o -x c++ hello.cpp
clang -cc1 version 3.8.0 based upon LLVM 3.8.0 default target 
i686-w64-windows-gnu
ignoring nonexistent directory 
"D:\msys32\mingw32\i686-w64-mingw32/sys-root/mingw/include"
#include "..." search starts here:
#include <...> search starts here:
 D:\msys32\mingw32\include\c++\v1
 D:\msys32\mingw32\bin\..\lib\clang\3.8.0\include
 D:\msys32\mingw32\lib\gcc\i686-w64-mingw32\5.3.0\include
 D:\msys32\mingw32\lib\gcc\i686-w64-mingw32\5.3.0\include-fixed
 D:\msys32\mingw32\i686-w64-mingw32\include
 D:\msys32\mingw32\include
End of search list.
In file included from hello.cpp:1:
In file included from D:\msys32\mingw32\include\c++\v1\iostream:38:
In file included from D:\msys32\mingw32\include\c++\v1\ios:216:
In file included from D:\msys32\mingw32\include\c++\v1\__locale:15:
In file included from D:\msys32\mingw32\include\c++\v1\string:439:
In file included from D:\msys32\mingw32\include\c++\v1\algorithm:625:
D:\msys32\mingw32\include\c++\v1\type_traits:1634:1: error: requested alignment 
must be 8192 bytes or smaller
_CREATE_ALIGNED_STORAGE_SPECIALIZATION(0x4000);
^                                      ~~~~~~
D:\msys32\mingw32\include\c++\v1\type_traits:1612:12: note: expanded from macro 
'_CREATE_ALIGNED_STORAGE_SPECIALIZATION'
    struct _ALIGNAS(n) type\
           ^        ~
D:\msys32\mingw32\include\c++\v1\__config:274:38: note: expanded from macro 
'_ALIGNAS'
#  define _ALIGNAS(x) __attribute__((__aligned__(x)))
                                     ^           ~
1 error generated.




I have found someone else had mentioned using clang 
toolchain,clang++,libc++,lld,compiler-rt etc in the mail lists several months 
ago.But there is no result whether it is working.Any successful result.
Thanks
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to