簡體   English   中英

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

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

我提取了最新的svn存儲庫,並設法使用Visual Studio構建相同的代碼。 但是我正在嘗試為Vim使用YouCompleteMe插件,該插件需要使用mingw64構建的clang。 Visual Studio版本無法正常工作。 這是錯誤。 不太確定如何繼續。

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

我看到了MSVC工具鏈,盡管它在mingw內部。 您能否再次檢查一下使用Unix Makefiles生成器運行的cmake以及您是否沒有嘗試在為msvc配置的目錄中構建

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM