[lldb-dev] Windows build questions

Zachary Turner via lldb-dev lldb-dev at lists.llvm.org
Tue Sep 8 10:48:25 PDT 2015


Yes, I just mean the debugger can't debug x64 inferiors very well.

On Tue, Sep 8, 2015 at 10:45 AM Ted Woodward <ted.woodward at codeaurora.org>
wrote:

> Zachary, when you say x64 runtime support isn’t there yet, you mean for
> VS2015 and/or Win 10, right? I’ve been building x64 LLDB on Win 7 with VS
> 2013 for 2 years now.
>
>
>
> --
>
> Qualcomm Innovation Center, Inc.
>
> The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a
> Linux Foundation Collaborative Project
>
>
>
> *From:* lldb-dev [mailto:lldb-dev-bounces at lists.llvm.org] *On Behalf Of *Zachary
> Turner via lldb-dev
> *Sent:* Monday, September 07, 2015 3:02 PM
> *To:* Todd Fiala; LLDB; Stephane Sezer
> *Subject:* Re: [lldb-dev] Windows build questions
>
>
>
> +Stephane because he just went through the pain of getting a working build
> on Windows, so he might be able to point out some gotchas.
>
>
>
> *About VS 2015*
>
> VS 2015 does not work because of Python.  Technically, it could
> theoretically work but you won't be able to run the test suite at all.  I
> don't plan to put a significant amount of effort into addressing this.
> Instead, this will be solved automatically if / when we address
> http://llvm.org/pr24461.  You can use VS 2013 community edition though.
> TL;DR of the reason VS 2015 doesn't work is because a) Python and the
> program embedding python must be compiled with the same compiler, and b)
> Python doesn't compile with VS 2015 because it relies on implementation
> details of the CRT, which changed in 2015.
>
>
>
> *About Windows 10*
>
> The build shoudl work fine on Windows 10 x64.  That's what I use every
> day.  But you should still build an x86 LLDB, not an x64 one.  x64 should
> work in theory (insofar as the build should succeed), but the actual
> runtime support isn't there yet so many things will fail.
>
>
>
> A couple of things you might run into:
>
>
>
> 1) Make sure PYTHONHOME and PYTHONPATH are *not* set, otherwise LLDB's
> python and system python can run into conflicts.
>
>
>
> 2) Make sure you check out and build LLD, test executables must be linked
> with LLD or they will not have debug info.  Also, make sure you specify
> LLDB_TEST_COMPILER on the cmake command line to point to a clang.exe (If
> you use a release clang then ninja check-lldb will be faster by an order of
> magnitude)
>
>
>
> 3) Make sure you build Python from source, run the
> install-custom-python.py, and specify -DPYTHON_HOME on the CMake command
> line.
>
>
>
> Most of this is covered on the website build instructions, but I admit
> it's a lot of steps, and it's easy to miss one.  Solving pr24461 should
> greatly simplify everything about building on Windows when I finally get
> around to it, but it's a lot of work.  Still follow the build instructions
> anyway because there's other things as well, but the above 3 are probably
> the most likely to trip you up.
>
>
>
> On Mon, Sep 7, 2015 at 10:33 AM Todd Fiala via lldb-dev <
> lldb-dev at lists.llvm.org> wrote:
>
> Hi all,
>
>
>
> I've read the Windows lldb build instructions.  I have a few questions
> just to verify before I put too much time into that end:
>
>
>
> * Has the build been vetted on Windows 10 64-bit yet?
>
>
>
> * Can Visual Studio 2015 Community Edition work as the compiler toolchain?
>  (VS 2012+ is listed as okay, so I'm hoping yes).
>
>
>
> Thanks!
>
> --
>
> -Todd
>
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20150908/4e5a0e7e/attachment-0001.html>


More information about the lldb-dev mailing list