[LLVMdev] lit test suite on Windows always hangs.

Aaron Ballman aaron at aaronballman.com
Fri May 30 10:20:58 PDT 2014


On Fri, May 30, 2014 at 1:13 PM, Zachary Turner <zturner at google.com> wrote:
> I'm using Windows 8.1, and every time I run check-clang, I eventually end up
> with a bunch of hung processes.  Generally this is an instance of clang.exe,
> a bunch of instances of FileCheck.exe, and occasionally an llc.exe and an
> opt.exe.
>
> Inside, the processes are all hung inside of calls to WriteFile() attempting
> to write to stdout.
>
> I notice some of the tests fail with output indicating that it expects a
> unix-like environment.  For example:
>
> 207>  ********************
> 207>  FAIL: Clang :: CodeGen/2004-06-17-UnorderedCompares.c (1109 of 7263)
> 207>  ******************** TEST 'Clang ::
> CodeGen/2004-06-17-UnorderedCompares.c' FAILED ********************
> 207>  Script:
> 207>  --
> 207>  D:/src/llvm/build/vs2013/Debug/bin/clang.EXE -cc1 -internal-isystem
> D:\src\llvm\build\vs2013\Debug\bin\..\lib\clang\3.5.0\include  -std=c99
> D:\src\llvm\tools\clang\test\CodeGen\2004-06-17-UnorderedCompares.c
> -emit-llvm -o - | grep -v llvm.isunordered |
> D:/src/llvm/build/vs2013/Debug/bin\not.EXE grep call
> 207>  --
> 207>  Exit Code: 127
> 207>
> 207>  Command Output (stdout):
> 207>  --
> 207>  Command 0: "grep" "-v" "llvm.isunordered"
> 207>  Command 0 Result: 127
> 207>  Command 0 Output:
> 207>
> 207>
> 207>  Command 0 Stderr:
> 207>  'grep': command not found
> 207>
> 207>
> 207>  --
> 207>
> 207>  ********************
>
> Any suggestions?

Do you have GnuWin32 installed, and on your path? You may want to look
at http://clang.llvm.org/get_started.html under the Visual Studio
section (the information applies to llvm as well).

~Aaron



More information about the llvm-dev mailing list