Fail to build LLVM release_36 in MSVC 2013

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Fail to build LLVM release_36 in MSVC 2013

Amy White
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

_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: Fail to build LLVM release_36 in MSVC 2013

Russell Wallace
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 <[hidden email]> wrote:
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

_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev



_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: Fail to build LLVM release_36 in MSVC 2013

Reid Kleckner-2
In reply to this post by Amy White
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 <[hidden email]> wrote:
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

_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev



_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: Fail to build LLVM release_36 in MSVC 2013

Amy White
On Sat, Jul 18, 2015 at 12:10 AM, Reid Kleckner <[hidden email]> 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
_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev