<div dir="ltr">Are you sure you set PYTHON_EXECUTABLE to python_d.exe?   Because it's using python.exe on your command line.  <br><br><div><span style="font-size:small;line-height:20px">I notice you also don't have a test compiler specified.  I assume you're building with MSVC, which means you've run vcvarsall, which means that the test suite will try to use cl.exe to compile.  This also won't work, you will need to use clang as the compiler.  Since you've already built clang as part of building LLDB, this shouldn't be too difficult, you just need to set a CMake variable to use clang.  I should probably make the CMake a little bit smarter and attempt to find this automatically.  I'll add a note to do that soon.  In the meantime set -DLLDB_TEST_COMPILER=</span><span style="line-height:19.7999992370605px;font-size:13.1999998092651px">C:/Users/chuckr/source/build_</span><span style="line-height:19.7999992370605px;font-size:13.1999998092651px">llvm_debug/bin/clang.exe</span><br></div></div><br><div class="gmail_quote">On Thu, Mar 19, 2015 at 4:54 PM Chuck Ries <<a href="mailto:Chuck.Ries@microsoft.com">Chuck.Ries@microsoft.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">I am doing this on Windows 8.1, running from command prompt. I have specified all three of those python cmake options to the debug versions that I built.
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Zachary Turner [mailto:<a href="mailto:zturner@google.com" target="_blank">zturner@google.com</a>]
<br>
<b>Sent:</b> Thursday, March 19, 2015 4:46 PM<br>
<b>To:</b> Chuck Ries; <a href="mailto:lldb-dev@cs.uiuc.edu" target="_blank">lldb-dev@cs.uiuc.edu</a><br>
<b>Subject:</b> Re: [lldb-dev] Running tests on windows?<u></u><u></u></span></p></div></div><div lang="EN-US" link="blue" vlink="purple"><div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Also, are you using Cygwin?  (It doesn't look like it from your command line, but as cygwin is a completely untested path, I have no idea what will happen if you use it)<u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Thu, Mar 19, 2015 at 4:42 PM Zachary Turner <<a href="mailto:zturner@google.com" target="_blank">zturner@google.com</a>> wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<p class="MsoNormal">I run tests on Windows and if something is wrong then I definitely want to fix it.  <u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">That said, I've never seen these particular failures before.  I will say that the test suite only passes about 50% on Windows, but at the end you will see a lot of failures.  But they won't be these failures, they will be actual test failures
 like couldn't set a watchpoint.<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">One thing that seems suspicious to me from looking at your command line is that, although you appear to have built python from source (which is correct), LLDB is finding a *release* version of Python.  If you are building a Debug version
 of LLDB, this won't work.  LLDB needs to find a debug version of python.  I don't think that's the actual issue you're experiencing here though, but it might be.  To fix this I recommend explicitly specifying both PYTHON_EXECUTABLE, PYTHON_LIBRARY, and PYTHON_INCLUDE_DIR
 on your CMake command line.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">The next thing I would do is add a line to dosep.py that prints out the command line it uses for dotest.py.  dosep.py is a lightweight shim that just spawns many instances of dotest.py in different processes, and it <span style="font-size:10.0pt">seems
 to be forming the command line incorrectly.  So the key is going to see what command line it's using for dotest.py.</span><u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt">What version of Windows are you using if I might ask?  And are you running it from a cmd prompt or a Powershell prompt?</span><u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Thu, Mar 19, 2015 at 4:31 PM Chuck Ries <<a href="mailto:Chuck.Ries@microsoft.com" target="_blank">Chuck.Ries@microsoft.com</a>> wrote:<u></u><u></u></p>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal">Does anybody run tests on Windows? I was able to build lldb on windows using cmake + ninja by following the instructions at
<a href="http://lldb.llvm.org/build.html#BuildingLldbOnWindows" target="_blank">http://lldb.llvm.org/build.html#BuildingLldbOnWindows</a><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">Running nina check-lldb however fails:<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">[1/1] cmd.exe /C "cd /D C:\Users\chuckr\source\build_llvm_debug\tools\lldb\test && C:\Users\chuckr\source\Python-2.7.8\PCbuild\python.exe c:/Users/chuckr/source/llvm/tools/lldb/test/dosep.py
 -o "-q --arch=i686 --executable C:/Users/chuckr/source/build_llvm_debug/bin/lldb.exe -s C:/Users/chuckr/source/build_llvm_debug/lldb-test-traces -u CXXFLAGS -u CFLAGS -C C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/cl.exe""<u></u><u></u></p>
<p class="MsoNormal">FAILED: cmd.exe /C "cd /D C:\Users\chuckr\source\build_llvm_debug\tools\lldb\test && C:\Users\chuckr\source\Python-2.7.8\PCbuild\python.exe c:/Users/chuckr/source/llvm/tools/lldb/test/dosep.py
 -o "-q --arch=i686 --executable C:/Users/chuckr/source/build_llvm_debug/bin/lldb.exe -s C:/Users/chuckr/source/build_llvm_debug/lldb-test-traces -u CXXFLAGS -u CFLAGS -C C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/cl.exe""<u></u><u></u></p>
<p class="MsoNormal">usage: dotest.py [-h] [-A arch] [-C compiler] [-E extra-flags] [-D]<u></u><u></u></p>
<p class="MsoNormal">                 [-N {dwarf,dsym}] [-a] [+a] [+b] [-b blacklist]<u></u><u></u></p>
<p class="MsoNormal">                 [-f filterspec] [-g] [-l] [-m] [+m] [-p pattern]<u></u><u></u></p>
<p class="MsoNormal">                 [-X directory] [-G category] [--skip-category category]<u></u><u></u></p>
<p class="MsoNormal">                 [-c config-file] [--framework framework-path]<u></u><u></u></p>
<p class="MsoNormal">                 [--executable executable-path] [--libcxx directory]<u></u><u></u></p>
<p class="MsoNormal">                 [-e benchmark-exe] [-k command] [-R dir] [-r dir] [-s name]<u></u><u></u></p>
<p class="MsoNormal">                 [-x breakpoint-spec] [-y count] [-# sharp]<u></u><u></u></p>
<p class="MsoNormal">                 [--platform-name platform-name] [--platform-url platform-url]<u></u><u></u></p>
<p class="MsoNormal">                 [--platform-working-dir platform-working-dir] [-d] [-F] [-i]<u></u><u></u></p>
<p class="MsoNormal">                 [-n] [-P] [-q] [-S] [-t] [-u variable] [--env variable] [-v]<u></u><u></u></p>
<p class="MsoNormal">                 [-w] [-T] [--enable-crash-dialog] [--show-inferior-console]<u></u><u></u></p>
<p class="MsoNormal">                 [test-dir [test-dir ...]]<u></u><u></u></p>
<p class="MsoNormal">dotest.py: error: unrecognized arguments: c:\Users\chuckr\source\llvm\tools\lldb\test\api\check_public_api_headers<u></u><u></u></p>
<p class="MsoNormal">usage: dotest.py [-h] [-A arch] [-C compiler] [-E extra-flags] [-D]<u></u><u></u></p>
<p class="MsoNormal">                 [-N {dwarf,dsym}] [-a] [+a] [+b] [-b blacklist]<u></u><u></u></p>
<p class="MsoNormal">                 [-f filterspec] [-g] [-l] [-m] [+m] [-p pattern]<u></u><u></u></p>
<p class="MsoNormal">                 [-X directory] [-G category] [--skip-category category]<u></u><u></u></p>
<p class="MsoNormal">                 [-c config-file] [--framework framework-path]<u></u><u></u></p>
<p class="MsoNormal">                 [--executable executable-path] [--libcxx directory]<u></u><u></u></p>
<p class="MsoNormal">                 [-e benchmark-exe] [-k command] [-R dir] [-r dir] [-s name]<u></u><u></u></p>
<p class="MsoNormal">                 [-x breakpoint-spec] [-y count] [-# sharp]<u></u><u></u></p>
<p class="MsoNormal">                 [--platform-name platform-name] [--platform-url platform-url]<u></u><u></u></p>
<p class="MsoNormal">                 [--platform-working-dir platform-working-dir] [-d] [-F] [-i]<u></u><u></u></p>
<p class="MsoNormal">                 [-n] [-P] [-q] [-S] [-t] [-u variable] [--env variable] [-v]<u></u><u></u></p>
<p class="MsoNormal">                 [-w] [-T] [--enable-crash-dialog] [--show-inferior-console]<u></u><u></u></p>
<p class="MsoNormal">                 [test-dir [test-dir ...]]<u></u><u></u></p>
<p class="MsoNormal">dotest.py: error: unrecognized arguments: c:\Users\chuckr\source\llvm\tools\lldb\test\functionalities\breakpoint\cpp<u></u><u></u></p>
<p class="MsoNormal">usage: dotest.py [-h] [-A arch] [-C compiler] [-E extra-flags] [-D]<u></u><u></u></p>
<p class="MsoNormal">                 [-N {dwarf,dsym}] [-a] [+a] [+b] [-b blacklist]<u></u><u></u></p>
<p class="MsoNormal">                 [-f filterspec] [-g] [-l] [-m] [+m] [-p pattern]<u></u><u></u></p>
<p class="MsoNormal">                 [-X directory] [-G category] [--skip-category category]<u></u><u></u></p>
<p class="MsoNormal">                 [-c config-file] [--framework framework-path]<u></u><u></u></p>
<p class="MsoNormal">                 [--executable executable-path] [--libcxx directory]<u></u><u></u></p>
<p class="MsoNormal">                 [-e benchmark-exe] [-k command] [-R dir] [-r dir] [-s name]<u></u><u></u></p>
<p class="MsoNormal">                 [-x breakpoint-spec] [-y count] [-# sharp]<u></u><u></u></p>
<p class="MsoNormal">                 [--platform-name platform-name] [--platform-url platform-url]<u></u><u></u></p>
<p class="MsoNormal">                 [--platform-working-dir platform-working-dir] [-d] [-F] [-i]<u></u><u></u></p>
<p class="MsoNormal">                 [-n] [-P] [-q] [-S] [-t] [-u variable] [--env variable] [-v]<u></u><u></u></p>
<p class="MsoNormal">                 [-w] [-T] [--enable-crash-dialog] [--show-inferior-console]<u></u><u></u></p>
<p class="MsoNormal">                 [test-dir [test-dir ...]]<u></u><u></u></p>
<p class="MsoNormal">dotest.py: error: unrecognized arguments: c:\Users\chuckr\source\llvm\tools\lldb\test\expression_command\persistent_types<u></u><u></u></p>
<p class="MsoNormal">usage: dotest.py [-h] [-A arch] [-C compiler] [-E extra-flags] [-D]<u></u><u></u></p>
<p class="MsoNormal">                 [-N {dwarf,dsym}] [-a] [+a] [+b] [-b blacklist]<u></u><u></u></p>
<p class="MsoNormal">                 [-f filterspec] [-g] [-l] [-m] [+m] [-p pattern]<u></u><u></u></p>
<p class="MsoNormal">                 [-X directory] [-G category] [--skip-category category]<u></u><u></u></p>
<p class="MsoNormal">                 [-c config-file] [--framework framework-path]<u></u><u></u></p>
<p class="MsoNormal">                 [--executable executable-path] [--libcxx directory]<u></u><u></u></p>
<p class="MsoNormal">                 [-e benchmark-exe] [-k command] [-R dir] [-r dir] [-s name]<u></u><u></u></p>
<p class="MsoNormal">                 [-x breakpoint-spec] [-y count] [-# sharp]<u></u><u></u></p>
<p class="MsoNormal">                 [--platform-name platform-name] [--platform-url platform-url]<u></u><u></u></p>
<p class="MsoNormal">                 [--platform-working-dir platform-working-dir] [-d] [-F] [-i]<u></u><u></u></p>
<p class="MsoNormal">                 [-n] [-P] [-q] [-S] [-t] [-u variable] [--env variable] [-v]<u></u><u></u></p>
<p class="MsoNormal">                 [-w] [-T] [--enable-crash-dialog] [--show-inferior-console]<u></u><u></u></p>
<p class="MsoNormal">                 [test-dir [test-dir ...]]<u></u><u></u></p>
<p class="MsoNormal">dotest.py: error: unrecognized arguments: c:\Users\chuckr\source\llvm\tools\lldb\test\functionalities\data-formatter\data-formatter-enum-format<u></u><u></u></p>
<p class="MsoNormal">usage: dotest.py [-h] [-A arch] [-C compiler] [-E extra-flags] [-D]<u></u><u></u></p>
<p class="MsoNormal">                 [-N {dwarf,dsym}] [-a] [+a] [+b] [-b blacklist]<u></u><u></u></p>
<p class="MsoNormal">                 [-f filterspec] [-g] [-l] [-m] [+m] [-p pattern]<u></u><u></u></p>
<p class="MsoNormal">                 [-X directory] [-G category] [--skip-category category]<u></u><u></u></p>
<p class="MsoNormal">                 [-c config-file] [--framework framework-path]<u></u><u></u></p>
<p class="MsoNormal">                 [--executable executable-path] [--libcxx directory]<u></u><u></u></p>
<p class="MsoNormal">                 [-e benchmark-exe] [-k command] [-R dir] [-r dir] [-s name]<u></u><u></u></p>
<p class="MsoNormal">                 [-x breakpoint-spec] [-y count] [-# sharp]<u></u><u></u></p>
<p class="MsoNormal">                 [--platform-name platform-name] [--platform-url platform-url]<u></u><u></u></p>
<p class="MsoNormal">                 [--platform-working-dir platform-working-dir] [-d] [-F] [-i]<u></u><u></u></p>
<p class="MsoNormal">                 [-n] [-P] [-q] [-S] [-t] [-u variable] [--env variable] [-v]<u></u><u></u></p>
<p class="MsoNormal">                 [-w] [-T] [--enable-crash-dialog] [--show-inferior-console]<u></u><u></u></p>
<p class="MsoNormal">                 [test-dir [test-dir ...]]<u></u><u></u></p>
<p class="MsoNormal">……<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
</div>
<p class="MsoNormal">_______________________________________________<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><u></u><u></u></p>
</blockquote>
</div>
</blockquote>
</div>
</div></div></blockquote></div>