Hi, All, I follow the menu http://llvm.org/docs/GettingStartedVS.html , but still failed to build LLVM debug version. Here's error message: 7>C:\study\llvm\projects\compiler-rt\lib\asan\asan_win.cc(69): fatal error C1189: #error : Please build the runtime with a non-debug CRT: /MD or /MT Any idear? -- Best Regards, Amy -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150717/56c8954f/attachment.html>
Russell Wallace
2015-Jul-17 15:59 UTC
[LLVMdev] Fail to build LLVM release_36 in MSVC 2013
Might be a problem with cmake settings; what cmake command line did you use? The one I found to work is \CMake\bin\cmake.exe -DLLVM_USE_CRT_DEBUG=MTd -DLLVM_USE_CRT_RELEASE=MT -DPYTHON_EXECUTABLE=C:\Python27\python.exe -G "Visual Studio 12 Win64" .. On Fri, Jul 17, 2015 at 9:23 AM, Amy White <red45dragon at gmail.com> wrote:> Hi, All, > > I follow the menu http://llvm.org/docs/GettingStartedVS.html > <https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_docs_GettingStartedVS.html&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=Tw1eUQPpvYOtnYfzc0sce7mipLn-u_yqwcUJYV_Ku1k&s=hps3Z8xOCBTYSAI49gYiCh-243IBgIcauc01_ve0Mts&e=> > , but still failed to build LLVM debug version. > > Here's error message: > 7>C:\study\llvm\projects\compiler-rt\lib\asan\asan_win.cc(69): fatal error > C1189: #error : Please build the runtime with a non-debug CRT: /MD or /MT > > Any idear? > > -- > Best Regards, > Amy > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150717/a9db457d/attachment.html>
ASan does not support the debug CRTs yet. If you don't need the ASan runtime or the rest of compiler-rt, you can probably remove compiler-rt from your checkout. On Fri, Jul 17, 2015 at 1:23 AM, Amy White <red45dragon at gmail.com> wrote:> Hi, All, > > I follow the menu http://llvm.org/docs/GettingStartedVS.html > <https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_docs_GettingStartedVS.html&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=Tw1eUQPpvYOtnYfzc0sce7mipLn-u_yqwcUJYV_Ku1k&s=hps3Z8xOCBTYSAI49gYiCh-243IBgIcauc01_ve0Mts&e=> > , but still failed to build LLVM debug version. > > Here's error message: > 7>C:\study\llvm\projects\compiler-rt\lib\asan\asan_win.cc(69): fatal error > C1189: #error : Please build the runtime with a non-debug CRT: /MD or /MT > > Any idear? > > -- > Best Regards, > Amy > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150717/06ae9190/attachment.html>
On Sat, Jul 18, 2015 at 12:10 AM, Reid Kleckner <rnk at google.com> wrote:> ASan does not support the debug CRTs yet. If you don't need the ASan runtime > or the rest of compiler-rt, you can probably remove compiler-rt from your > checkout.Thanks for that info! After remove compiler-rt, build succeed! -- Best Regards, Amy