<div dir="ltr"><div dir="ltr">FWIW, I've debugged similar issues in the past by using Process Explorer [1]. You can search for the file name with 'Find' menu -> 'Find handle or DLL', enter filename, then see which process(es) are holding it.</div><div dir="ltr"><br></div><div dir="ltr">[1] <a href="https://docs.microsoft.com/en-us/sysinternals/downloads/process-explorer" target="_blank">https://docs.microsoft.com/en-us/sysinternals/downloads/process-explorer</a><div><div><br></div><div>- </div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Sep 28, 2018 at 12:14 AM Andrew Maclean <<a href="mailto:andrew.amaclean@gmail.com" target="_blank">andrew.amaclean@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small">Just did a build and I have one failure:</div><div class="gmail_default" style="font-size:small"><div class="gmail_default">[381/4832] Python Wrapping - generating vtkRungeKutta2Python.cxx</div><div class="gmail_default">FAILED: Wrapping/Python/vtkRungeKutta2Python.cxx </div><div class="gmail_default">cmd.exe /C "cd /D C:\Users\amaclean\Development\Kitware\build\VTK-Release\Wrapping\Python && C:\Users\amaclean\Development\Kitware\build\VTK-Release\bin\vtkWrapPython-9.0.exe @C:/Users/amaclean/Development/Kitware/build/VTK-Release/Wrapping/Python/vtkCommonMathPython.Release.args -o C:/Users/amaclean/Development/Kitware/build/VTK-Release/Wrapping/Python/vtkRungeKutta2Python.cxx C:/Users/amaclean/Development/Kitware/src/VTK/Common/Math/vtkRungeKutta2.h"</div><div class="gmail_default">Error 13 opening output file C:/Users/amaclean/Development/Kitware/build/VTK-Release/Wrapping/Python/vtkRungeKutta2Python.cxx: Permission denied</div><div class="gmail_default"><br></div><div class="gmail_default"><br></div></div><div class="gmail_default" style="font-size:small"><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Sep 27, 2018 at 2:23 AM David Cole <<a href="mailto:DLRdave@aol.com" target="_blank">DLRdave@aol.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Is it possible that there might be two custom commands trying to write<br>
to the same output file, and it only shows up in ninja because it's<br>
better at parallel builds...?<br>
<br>
Or is it absolutely certain that there's a one-rule/one-output-file<br>
correspondence?<br>
<br>
<br>
David C.<br>
On Wed, Sep 26, 2018 at 10:58 AM Andras Lasso <<a href="mailto:lasso@queensu.ca" target="_blank">lasso@queensu.ca</a>> wrote:<br>
><br>
> > Andras, you used to see similar errors with cmake when it was configuring, so I have to ask, have you seen vtkWrapPython itself fail this way?<br>
><br>
><br>
><br>
> I haven’t seen such an issue in the last couple of years.<br>
><br>
><br>
><br>
> We are building 3D Slicer every night on several computers from scratch. It includes full VTK (few-week-old master) and many VTK-based Python-wrapped classes. We use Windows10, VS2015 (or VS2017 with VS2015 toolset). We use Visual Studio generator, don’t use Ninja.<br>
><br>
><br>
><br>
> Andras<br>
><br>
><br>
><br>
> From: David Gobbi <<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@gmail.com</a>><br>
> Sent: Wednesday, September 26, 2018 10:48 AM<br>
> To: Brad King <<a href="mailto:brad.king@kitware.com" target="_blank">brad.king@kitware.com</a>><br>
> Cc: Andras Lasso <<a href="mailto:lasso@queensu.ca" target="_blank">lasso@queensu.ca</a>>; Andrew Maclean <<a href="mailto:andrew.amaclean@gmail.com" target="_blank">andrew.amaclean@gmail.com</a>>; VTK Developers <<a href="mailto:vtk-developers@vtk.org" target="_blank">vtk-developers@vtk.org</a>><br>
> Subject: Re: [vtk-developers] Python Wrapping fails in master build.<br>
><br>
><br>
><br>
> On Wed, Sep 26, 2018 at 8:03 AM Brad King <<a href="mailto:brad.king@kitware.com" target="_blank">brad.king@kitware.com</a>> wrote:<br>
><br>
> One could instead write to a temporary/random file name and then<br>
> rename when finished.  CMake generates most of its files that way.<br>
><br>
><br>
><br>
> Thanks for the advice (and for taking the time to read this thread.)  This may<br>
><br>
> be the ultimate solution, though I still want to do some digging to see what<br>
><br>
> what magic cl.exe itself uses to avoid this AV interference.<br>
><br>
><br>
><br>
> For now, though, I'll put together a patch that prints the value of errno when<br>
><br>
> fopen() fails.  I'll probably print the result of GetLastError() too, since this is<br>
><br>
> a Windows issue.  Hopefully Andrew will be able to see those and report on<br>
><br>
> them.<br>
><br>
><br>
><br>
> Andras, you used to see similar errors with cmake when it was configuring,<br>
><br>
> so I have to ask, have you seen vtkWrapPython itself fail this way?  I'm still<br>
><br>
> trying to get a feel for how widespread this issue is.<br>
><br>
><br>
><br>
>  - David<br>
><br>
> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtk-developers</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="https://public.kitware.com/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">https://public.kitware.com/mailman/listinfo/vtk-developers</a><br>
><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_3150253027257521024m_-4460487859728643858m_7502996848994268324gmail_signature" data-smartmail="gmail_signature">___________________________________________<br>Andrew J. P. Maclean<br><br>___________________________________________</div>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://public.kitware.com/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">https://public.kitware.com/mailman/listinfo/vtk-developers</a><br>
<br>
</blockquote></div>