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? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140530/87b92737/attachment.html>
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
Thanks, I wasn't aware of that requirement! I wonder if this should be mentioned on the llvm getting started page as well, as I had never seen this page. On Fri, May 30, 2014 at 10:20 AM, Aaron Ballman <aaron at aaronballman.com> wrote:> 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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140530/dc42c84f/attachment.html>
Saleem Abdulrasool
2014-May-30 17:42 UTC
[LLVMdev] lit test suite on Windows always hangs.
On May 30, 2014, at 10:13 AM, 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?I think that for tests that are dependent on grep, it might be nice to convert them to FileCheck in the longer run. This might help make it possible to avoid the dependency on GNUWin32.> _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu https://urldefense.proofpoint.com/v1/url?u=http://llvm.cs.uiuc.edu/&k=ZVNjlDMF0FElm4dQtryO4A%3D%3D%0A&r=CchYc4lrV44%2BZqxZADw0BQ%3D%3D%0A&m=w3oTPsFs763NF8ZxBN5qR66swKSiYcb%2BLwRme4XiqOU%3D%0A&s=28efa947f843d9eb605772bbe50db31b9b9e6d12c6a413c6e8940c30a323561d > https://urldefense.proofpoint.com/v1/url?u=http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev&k=ZVNjlDMF0FElm4dQtryO4A%3D%3D%0A&r=CchYc4lrV44%2BZqxZADw0BQ%3D%3D%0A&m=w3oTPsFs763NF8ZxBN5qR66swKSiYcb%2BLwRme4XiqOU%3D%0A&s=b9d11365bef6ede20767c126f8ca097685af474c3864aa14c0a21ef02e63743a-- Saleem Abdulrasool abdulras (at) fb (dot) com