<div dir="ltr">From the stack traces, it sounds like clang-cl got blocked writing to stdout because <a href="http://msvc_depends.pl">msvc_depends.pl</a> wasn't reading from the pipe. The first stack trace shows the driver clang-cl process waiting on the child -cc1 invocation, and the second one shows a blocking write syscall. I don't think there's any action for us to take here.<div><br></div><div>If your build system uses configure and make, you might have better luck using the clang driver instead. It can also generate MSVC compatible object files.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 26, 2016 at 9:13 AM, Hill, Jeff via llvm-bugs <span dir="ltr"><<a href="mailto:llvm-bugs@lists.llvm.org" target="_blank">llvm-bugs@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I decided to try clang-cl with our EPICS code base on windows, but wasn't successful due to random hangs in clang-cl showIncludes occurring during the auto-generation of gnu make dependency include files phase in our build system. I have to control C the build leaving various clang zombie detritus processes still running. I tried to grab some stack traces, see below, but unfortunately there are no symbols with them. I also attached some of the log from our build that shows what command line switches were used with clang when it is invoked by our pearl dependencies generation script.<br>
<br>
Thanks for having a look. Unfortunately I don't have time to look into clang further on windows at this time.<br>
<br>
Jeff Hill<br>
<br>
C:\hill\epicsInBazaar\newFieldType-3-merge>clang-cl -v<br>
clang version 3.8.0 (branches/release_38)<br>
Target: i686-pc-windows-msvc<br>
Thread model: posix<br>
InstalledDir: C:\Program Files (x86)\LLVM\bin<br>
<br>
>       ntdll.dll!_NtWaitForSingleObject@12 ()  Unknown<br>
        KernelBase.dll!_WaitForSingleObjectEx@12 ()     Unknown<br>
        kernel32.dll!_WaitForSingleObjectExImplementation@12 () Unknown<br>
        kernel32.dll!_WaitForSingleObject@8 ()  Unknown<br>
        clang-cl.exe!0164509f() Unknown<br>
        [Frames below may be incorrect and/or missing, no symbols loaded for clang-cl.exe]<br>
        clang-cl.exe!01643959() Unknown<br>
        clang-cl.exe!01ba927b() Unknown<br>
        clang-cl.exe!01ad6f87() Unknown<br>
        clang-cl.exe!01ad732d() Unknown<br>
        clang-cl.exe!01acd3a2() Unknown<br>
        clang-cl.exe!00363c93() Unknown<br>
        ntdll.dll!_bsearch ()   Unknown<br>
        gdi32.dll!_NtGdiGetStockObject@4 ()     Unknown<br>
        ntdll.dll!_bsearch ()   Unknown<br>
        ntdll.dll!_bsearch ()   Unknown<br>
<br>
>       ntdll.dll!_NtWriteFile@36 ()    Unknown<br>
        KernelBase.dll!_WriteFile@20 () Unknown<br>
        kernel32.dll!_WriteFileImplementation@20 ()     Unknown<br>
        clang-cl.exe!02fb0abc() Unknown<br>
        [Frames below may be incorrect and/or missing, no symbols loaded for clang-cl.exe]<br>
        ntdll.dll!_NtWriteFile@36 ()    Unknown<br>
        KernelBase.dll!_WriteFile@20 () Unknown<br>
        kernel32.dll!_WriteFileImplementation@20 ()     Unknown<br>
<br>
perl C:/hill/epicsInBazaar/newFieldType-3-merge/bin/win32-x86/<a href="http://msvc_depends.pl" rel="noreferrer" target="_blank">msvc_depends.pl</a>  C:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/timer/timer.cpp clang-cl               -EHsc -GR -nologo -D__STDC__=0 -D_CRT_SECURE_NO_DEPRECATE  -<br>
D_CRT_NONSTDC_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS   -Ox    -W3 -w44355       -MD -DEPICS_BUILD_DLL -DEPICS_CALL_DLL -TP  -I. -I../O.Common -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/O.win32-x86 -IC:/hill/epicsInBazaa<br>
r/newFieldType-3-merge/src/libCom/osi/compiler/clang -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/osi/compiler/default -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/O.win32-x86 -IC:/hill/epicsInBazaar/newFieldTy<br>
pe-3-merge/src/libCom/osi/os/WIN32 -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/osi/os/default -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/bucketLib -IC:<br>
/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/ring -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/calc -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/cvtFast -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/l<br>
ibCom/cppStd -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/cxxTemplates -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/dbmf -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/ellLib -IC:/hill/epicsInBazaar/ne<br>
wFieldType-3-merge/src/libCom/env -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/error -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/fdmgr -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/freeList -IC:/hill<br>
/epicsInBazaar/newFieldType-3-merge/src/libCom/gpHash -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/iocsh -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/iocsh/Lua -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/l<br>
ibCom/log -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/macLib -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/misc -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/osi -IC:/hill/epicsInBazaar/newFieldType-3<br>
-merge/src/libCom/taskwd -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/timer -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/yajl -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/BaseString -IC:/hill/epicsIn<br>
Bazaar/newFieldType-3-merge/src/libCom/pointer -IC:/hill/epicsInBazaar/newFieldType-3-merge/include/epics/compiler/clang -IC:/hill/epicsInBazaar/newFieldType-3-merge/include/epics/os/WIN32 -IC:/hill/epicsInBazaar/newFieldType-3-merg<br>
e/include/epics -IC:/hill/epicsInBazaar/newFieldType-3-merge/include        > timer.d C:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/timer/timer.cpp<br>
perl C:/hill/epicsInBazaar/newFieldType-3-merge/bin/win32-x86/<a href="http://msvc_depends.pl" rel="noreferrer" target="_blank">msvc_depends.pl</a>  C:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/timer/epicsTimer.cpp clang-cl               -EHsc -GR -nologo -D__STDC__=0 -D_CRT_SECURE_NO_DEPRECA<br>
TE  -D_CRT_NONSTDC_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS   -Ox    -W3 -w44355       -MD -DEPICS_BUILD_DLL -DEPICS_CALL_DLL -TP  -I. -I../O.Common -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/O.win32-x86 -IC:/hill/epicsIn<br>
Bazaar/newFieldType-3-merge/src/libCom/osi/compiler/clang -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/osi/compiler/default -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/O.win32-x86 -IC:/hill/epicsInBazaar/newFi<br>
eldType-3-merge/src/libCom/osi/os/WIN32 -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/osi/os/default -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/bucketLib<br>
 -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/ring -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/calc -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/cvtFast -IC:/hill/epicsInBazaar/newFieldType-3-merge/<br>
src/libCom/cppStd -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/cxxTemplates -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/dbmf -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/ellLib -IC:/hill/epicsInBaza<br>
ar/newFieldType-3-merge/src/libCom/env -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/error -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/fdmgr -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/freeList -IC:<br>
/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/gpHash -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/iocsh -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/iocsh/Lua -IC:/hill/epicsInBazaar/newFieldType-3-merge/<br>
src/libCom/log -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/macLib -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/misc -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/osi -IC:/hill/epicsInBazaar/newFieldT<br>
ype-3-merge/src/libCom/taskwd -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/timer -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/yajl -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/BaseString -IC:/hill/ep<br>
icsInBazaar/newFieldType-3-merge/src/libCom/pointer -IC:/hill/epicsInBazaar/newFieldType-3-merge/include/epics/compiler/clang -IC:/hill/epicsInBazaar/newFieldType-3-merge/include/epics/os/WIN32 -IC:/hill/epicsInBazaar/newFieldType-3<br>
-merge/include/epics -IC:/hill/epicsInBazaar/newFieldType-3-merge/include        > epicsTimer.d C:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/timer/epicsTimer.cpp<br>
perl C:/hill/epicsInBazaar/newFieldType-3-merge/bin/win32-x86/<a href="http://msvc_depends.pl" rel="noreferrer" target="_blank">msvc_depends.pl</a>  C:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/taskwd/taskwd.c clang-cl               -EHsc -GR -nologo -D__STDC__=0 -D_CRT_SECURE_NO_DEPRECATE  -<br>
D_CRT_NONSTDC_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS   -Ox    -W3 -w44355       -MD -DEPICS_BUILD_DLL -DEPICS_CALL_DLL   -I. -I../O.Common -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/O.win32-x86 -IC:/hill/epicsInBazaar/n<br>
ewFieldType-3-merge/src/libCom/osi/compiler/clang -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/osi/compiler/default -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/O.win32-x86 -IC:/hill/epicsInBazaar/newFieldType-<br>
3-merge/src/libCom/osi/os/WIN32 -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/osi/os/default -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/bucketLib -IC:/hi<br>
ll/epicsInBazaar/newFieldType-3-merge/src/libCom/ring -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/calc -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/cvtFast -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libC<br>
om/cppStd -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/cxxTemplates -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/dbmf -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/ellLib -IC:/hill/epicsInBazaar/newFi<br>
eldType-3-merge/src/libCom/env -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/error -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/fdmgr -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/freeList -IC:/hill/ep<br>
icsInBazaar/newFieldType-3-merge/src/libCom/gpHash -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/iocsh -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/iocsh/Lua -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libC<br>
om/log -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/macLib -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/misc -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/osi -IC:/hill/epicsInBazaar/newFieldType-3-me<br>
rge/src/libCom/taskwd -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/timer -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/yajl -IC:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/BaseString -IC:/hill/epicsInBaz<br>
aar/newFieldType-3-merge/src/libCom/pointer -IC:/hill/epicsInBazaar/newFieldType-3-merge/include/epics/compiler/clang -IC:/hill/epicsInBazaar/newFieldType-3-merge/include/epics/os/WIN32 -IC:/hill/epicsInBazaar/newFieldType-3-merge/i<br>
nclude/epics -IC:/hill/epicsInBazaar/newFieldType-3-merge/include        > taskwd.d C:/hill/epicsInBazaar/newFieldType-3-merge/src/libCom/taskwd/taskwd.c<br>
Terminating on signal SIGINT(2)<br>
mingw32-make[3]: *** Deleting file 'taskwd.d'<br>
Terminate batch job (Y/N)? mingw32-make[3]: unlink: taskwd.d: Permission denied<br>
<br>
../../configure/RULES_ARCHS:65: recipe for target 'install.win32-x86' failed<br>
mingw32-make[2]: *** [install.win32-x86] Error 130<br>
../configure/RULES_DIRS:72: recipe for target 'libCom.install' failed<br>
mingw32-make[1]: *** [libCom.install] Error 130<br>
configure/RULES_DIRS:72: recipe for target 'src.install' failed<br>
mingw32-make: *** [src.install] Error 130<br>
_______________________________________________<br>
llvm-bugs mailing list<br>
<a href="mailto:llvm-bugs@lists.llvm.org">llvm-bugs@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs</a><br>
</blockquote></div><br></div>