<div dir="ltr"><div dir="ltr" style="font-family:arial,sans-serif;font-size:13px"><div class="im"><div>> That's roughly 1200 of 2779 files in now. I'll report back on what that does.</div><div><br></div></div><div>
So that setup did produce exes and ran through to completion. There were some linkage warnings throughout the build:</div><div><br></div><div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>c:\python27\include\pymath.h(22) : warning C4273: 'round' : inconsistent dll lin</div>
<div>kage</div></blockquote><br></div><div>But lldb still ran, I could load an image (tried 'image create c:/bin/ninja', and it correctly told me it was an i386 image), and that's about it.</div><div><br></div>
<div>For reference, it took just under 14 minutes to build on a 24 core Xeon running at roughly 3.8 GHz, using an OCZ RevoDrive X3 SSD raid and 48 GB of RAM.</div><div><br></div><div>Trying that non-Python config patch now.</div>
</div><div class="" style="font-family:arial,sans-serif;font-size:13px"><div id=":1z1" class="" tabindex="0"><img class="" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Thu, Jul 3, 2014 at 3:31 PM, Todd Fiala <span dir="ltr"><<a href="mailto:todd.fiala@gmail.com" target="_blank">todd.fiala@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">This is getting me further. Here's what I've changed:<div><br></div><div><ul><li>added swig (from the swigwin exe download), added to my path.</li><li>*added* python to my path. There is a build failure without it due to what looks like usage of the python exe without using the cmake-discovered python (the c:\python27\python.exe is discovered by cmake without it being in the path). We'll want to track that down.</li>
<li>Used the cmake command line that Deepak suggested:</li></ul><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><font face="courier new, monospace">cmake -GNinja -D</font><span style="font-size:13px;font-family:arial,sans-serif">LLDB_DISABLE_PYTHON=0 -DLLDB_ENABLE_PYTHON_SCRIPTS_</span><span style="font-size:13px;font-family:arial,sans-serif">SWIG_API_GENERATION=1 ..\llvm</span></div>
</blockquote><br></div><div>That's roughly 1200 of 2779 files in now. I'll report back on what that does.</div><div><br></div><div>I'll also try out Deepak's patch to see if it works when using the default on Windows of not using Python.</div>
<div><br></div><div>When I'm done with this, I plan to update the web site on a valid lldb Windows build setup.</div><div><br></div><div>-Todd</div></div><div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">
On Thu, Jul 3, 2014 at 3:13 PM, Todd Fiala <span dir="ltr"><<a href="mailto:todd.fiala@gmail.com" target="_blank">todd.fiala@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Deepak,<div><div><br></div><div>> <span style="font-size:13px;font-family:arial,sans-serif">If you define both -DLLDB_DISABLE_PYTHON=0 and -D LLDB_ENABLE_PYTHON_SCRIPTS_</span><span style="font-size:13px;font-family:arial,sans-serif">SWIG_API_GENERATION=1, it should build properly.</span></div>
<div><span style="font-size:13px;font-family:arial,sans-serif"><br></span></div></div><div>Great, I'll try that out.<br></div><div><div><br></div><div>I'll also have a look at your patch and at least verify it works over here without Python.</div>
</div></div><div class="gmail_extra"><div><div><br><br><div class="gmail_quote">On Thu, Jul 3, 2014 at 3:04 PM, Deepak Panickal <span dir="ltr"><<a href="mailto:deepak@codeplay.com" target="_blank">deepak@codeplay.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<div>Hi Todd,<br>
<br>
You can build with Python successfully on Windows.<br>
If you define both -DLLDB_DISABLE_PYTHON=0 and -D
LLDB_ENABLE_PYTHON_SCRIPTS_SWIG_API_GENERATION=1, it should build
properly.<br>
<br>
You're right, it's currently broken for building without Python. <br>
I just checked CMakelists.txt. An ifdef is missing, so you cannot
build on Windows without Python for now.<br>
<br>
I can't commit the fix now, can fix it when I'm back in office
tomorrow or you can commit this to CMakeLists.txt.<br>
<small><tt>--- CMakeLists.txt Thu Jul 3 22:55:07 2014</tt><tt><br>
</tt><tt>+++ CMakeLists.txt Thu Jul 3 22:57:26 2014</tt><tt><br>
</tt><tt>@@ -316,7 +316,9 @@</tt><tt><br>
</tt><tt> </tt><tt><br>
</tt><tt> #add_subdirectory(include)</tt><tt><br>
</tt><tt> add_subdirectory(docs)</tt><tt><br>
</tt><tt>-add_subdirectory(scripts)</tt><tt><br>
</tt><tt>+if (NOT CMAKE_SYSTEM_NAME MATCHES "Windows" OR NOT
LLDB_DISABLE_PYTHON)</tt><tt><br>
</tt><tt>+ add_subdirectory(scripts)</tt><tt><br>
</tt><tt>+endif ()</tt><tt><br>
</tt><tt> add_subdirectory(source)</tt><tt><br>
</tt><tt> add_subdirectory(test)</tt><tt><br>
</tt><tt> add_subdirectory(tools)</tt></small><br>
<br>
Thanks,<br>
Deepak<div><div><br>
<br>
On 03/07/2014 22:30, Todd Fiala wrote:<br>
</div></div></div>
<blockquote type="cite"><div><div>
<div dir="ltr">Hey all,
<div><br>
</div>
<div>Can somebody tell me what I need to install on a fresh
Window 8.1 x86_64 box to get an lldb windows build working?</div>
<div><br>
</div>
<div>Here is what I've tried so far:</div>
<div>
<ul>
<li>VS 2013</li>
<li>ninja - sync from github, build 32-bit version. (The
--x64 build option seems to always bring up an error
dialog box in a VS 2013 64-bit window, so I use the x86
32-bit VS command prompt and build it as 32-bit. This
might be part of my issue).</li>
<li>Initially I installed <a href="http://python.org" target="_blank">python.org</a>'s Python 2.7
64-bit. I later tried the 32-bit after hitting issues in
the build process.</li>
<li>cmake 2.8.12.2. I tried the same with 3.0.0 but backed
off to 2.8.12.2 to normalize with Zachary's setup and
avoid any issues that Reid may have seen with 3.0.0
recently.</li>
<li>Installed gnuwin32.</li>
</ul>
<div><br>
</div>
<div>I sync llvm, llvm/tools/clang, and llvm/tools/lldb to the
llvm, clang and lldb repos.</div>
<div><br>
</div>
<div>I ensure python is not in my path (i.e. 'where python'
does not find anything). I do have gnuwin32/bin, cmake and
ninja in my path.</div>
<div><br>
</div>
<div>I run:</div>
<div>dir</div>
<div>llvm</div>
<div><br>
</div>
<div>mkdir build</div>
<div>cd build</div>
<div>cmake -GNinja ..\llvm</div>
<div>ninja</div>
<div><br>
</div>
<div>I get an error after about 200 files in from trying to
build that says:</div>
<div><font face="courier new, monospace" size="1">Building
lldb python wrapper</font></div>
<div><font face="courier new, monospace" size="1">FAILED:
cmd.exe /c cd /D D:\lldb\git\build\tools\lldb\scripts
&& env PYTHON_EXEC</font></div>
<div><font face="courier new, monospace" size="1">UTABLE=C:/Python27/python.exe
D:/lldb/git/llvm/tools/lldb/scripts/build-swig-wra</font></div>
<div><font face="courier new, monospace" size="1">pper-classes.sh
D:/lldb/git/llvm/tools/lldb
D:/lldb/git/build/tools/lldb/scripts</font></div>
<div><font face="courier new, monospace" size="1"> D:/lldb/git/build/tools/lldb/scripts
D:/lldb/git/build -m && env PYTHON_EXECUTA</font></div>
<div><font face="courier new, monospace" size="1">BLE=C:/Python27/python.exe
D:/lldb/git/llvm/tools/lldb/scripts/finish-swig-wrapp</font></div>
<div><font face="courier new, monospace" size="1">er-classes.sh
D:/lldb/git/llvm/tools/lldb
D:/lldb/git/build/tools/lldb/scripts D</font></div>
<div><font face="courier new, monospace" size="1">:/lldb/git/build/tools/lldb/scripts
D:/lldb/git/build -m</font></div>
<div><font face="courier new, monospace" size="1"><b>env:
D:/lldb/git/llvm/tools/lldb/scripts/build-swig-wrapper-classes.sh:
Exec for</b></font></div>
<div><font face="courier new, monospace" size="1"><b>mat
error </b></font></div>
<div><br>
</div>
<div>That version is with a 32-bit python. I get the same
error with a 64-bit python installed in the same location.</div>
<div><br>
</div>
<div>I have tried disabling python:</div>
<div><br>
</div>
<div>delete the build dir</div>
<div>mkdir build</div>
<div>cd build</div>
<div>cmake -DLLDB_DISABLE_PYTHON=1 -GNinja ..\llvm</div>
<div><br>
</div>
<div>Same error - it still detects the python (not in the
path) and still uses it.</div>
<div><br>
</div>
<div>I've tried -DDISABLE_PYTHON=1 instead, that one just
tells me that variable is not used.</div>
<div><br>
</div>
<div>So - I'm missing something basic here. I do not have
cygwin in my path. I used msysgit to get the source.</div>
<div><br>
</div>
<div>Right now I would just settle for being able to disable
python, even though we need that running at some point.</div>
<div><br>
</div>
<div>Thanks for any help!</div>
<div><br>
</div>
<div>Sincerely,<br>
Todd Fiala</div>
<br>
</div>
</div>
<br>
<fieldset></fieldset>
<br>
</div></div><div><pre>_______________________________________________
lldb-dev mailing list
<a href="mailto:lldb-dev@cs.uiuc.edu" target="_blank">lldb-dev@cs.uiuc.edu</a>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a>
</pre>
</div></blockquote>
<br>
</div>
<br>_______________________________________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@cs.uiuc.edu" target="_blank">lldb-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div></div></div><span><font color="#888888">-- <br><div dir="ltr">-Todd</div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><div dir="ltr">-Todd</div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">-Todd</div>
</div>