简体   繁体   English

使用mingw64在Windows 7上构建llvm / clang 3.6

[英]building llvm/clang 3.6 on windows 7 with mingw64

I pulled the latest svn repositories and did manage to build the same code with Visual Studio. 我提取了最新的svn存储库,并设法使用Visual Studio构建相同的代码。 But I'm trying to use the YouCompleteMe plugin for vim, which needs clang built with mingw64. 但是我正在尝试为Vim使用YouCompleteMe插件,该插件需要使用mingw64构建的clang。 The Visual Studio build did not work. Visual Studio版本无法正常工作。 Here is the error. 这是错误。 Not really sure how to continue. 不太确定如何继续。

llvm[4]: Compiling Action.cpp for Release+Asserts build
llvm[4]: Compiling Compilation.cpp for Release+Asserts build
llvm[4]: Compiling CrossWindowsToolChain.cpp for Release+Asserts build
llvm[4]: Compiling Driver.cpp for Release+Asserts build
llvm[4]: Compiling DriverOptions.cpp for Release+Asserts build
llvm[4]: Compiling Job.cpp for Release+Asserts build
llvm[4]: Compiling MSVCToolChain.cpp for Release+Asserts build
In file included from c:\mingw64\x86_64-w64-mingw32\include\winnt.h:7681:0,
                 from c:\mingw64\x86_64-w64-mingw32\include\minwindef.h:146,
                 from c:\mingw64\x86_64-w64-mingw32\include\windef.h:8,
                 from c:\mingw64\x86_64-w64-mingw32\include\windows.h:69,
                 from c:/llvm-3.6/tools/clang/lib/Driver/MSVCToolChain.cpp:38:
c:\mingw64\x86_64-w64-mingw32\include\ktmtypes.h:88:9: error: declaration of 'UO
W _TRANSACTION_NOTIFICATION_RECOVERY_ARGUMENT::UOW' [-fpermissive]
     UOW UOW;
         ^
c:\mingw64\x86_64-w64-mingw32\include\ktmtypes.h:13:16: error: changes meaning o
f 'UOW' from 'typedef GUID UOW' [-fpermissive]
   typedef GUID UOW,*PUOW;
                ^
In file included from c:\mingw64\x86_64-w64-mingw32\include\winnt.h:7681:0,
                 from c:\mingw64\x86_64-w64-mingw32\include\minwindef.h:146,
                 from c:\mingw64\x86_64-w64-mingw32\include\windef.h:8,
                 from c:\mingw64\x86_64-w64-mingw32\include\windows.h:69,
                 from c:/llvm-3.6/tools/clang/lib/Driver/MSVCToolChain.cpp:38:
c:\mingw64\x86_64-w64-mingw32\include\ktmtypes.h:132:9: error: declaration of 'U
OW _KCRM_TRANSACTION_BLOB::UOW' [-fpermissive]
     UOW UOW;
         ^
In file included from c:\mingw64\x86_64-w64-mingw32\include\winnt.h:7681:0,
                 from c:\mingw64\x86_64-w64-mingw32\include\minwindef.h:146,
                 from c:\mingw64\x86_64-w64-mingw32\include\windef.h:8,
                 from c:\mingw64\x86_64-w64-mingw32\include\windows.h:69,
                 from c:/llvm-3.6/tools/clang/lib/Driver/MSVCToolChain.cpp:38:
c:\mingw64\x86_64-w64-mingw32\include\ktmtypes.h:13:16: error: changes meaning o
f 'UOW' from 'typedef GUID UOW' [-fpermissive]
   typedef GUID UOW,*PUOW;
                ^
/usr/bin/rm: cannot lstat `/c/llvm/tools/clang/lib/Driver/Release+Asserts/MSVCTo
olChain.d.tmp': No such file or directory
make[4]: *** [/c/llvm/tools/clang/lib/Driver/Release+Asserts/MSVCToolChain.o] Er
ror 1
make[4]: Leaving directory `/c/llvm/tools/clang/lib/Driver'
make[3]: *** [Driver/.makeall] Error 2
make[3]: Leaving directory `/c/llvm/tools/clang/lib'
make[2]: *** [all] Error 1
make[2]: Leaving directory `/c/llvm/tools/clang'
make[1]: *** [clang/.makeall] Error 2
make[1]: Leaving directory `/c/llvm/tools'
make: *** [all] Error 1

I'm seeing MSVC toolchain though this is inside mingw. 我看到了MSVC工具链,尽管它在mingw内部。 Can you double check you ran cmake with the Unix Makefiles generator and that you didn't try to build inside a directory configure for msvc 您能否再次检查一下使用Unix Makefiles生成器运行的cmake以及您是否没有尝试在为msvc配置的目录中构建

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM