[vtk-developers] Python Wrapping fails in master build.

Isaiah Norton isaiah.norton at gmail.com
Fri Sep 28 16:28:19 EDT 2018


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.

[1] https://docs.microsoft.com/en-us/sysinternals/downloads/process-explorer

-

On Fri, Sep 28, 2018 at 12:14 AM Andrew Maclean <andrew.amaclean at gmail.com>
wrote:

> Just did a build and I have one failure:
> [381/4832] Python Wrapping - generating vtkRungeKutta2Python.cxx
> FAILED: Wrapping/Python/vtkRungeKutta2Python.cxx
> 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"
> Error 13 opening output file
> C:/Users/amaclean/Development/Kitware/build/VTK-Release/Wrapping/Python/vtkRungeKutta2Python.cxx:
> Permission denied
>
>
>
>
> On Thu, Sep 27, 2018 at 2:23 AM David Cole <DLRdave at aol.com> wrote:
>
>> Is it possible that there might be two custom commands trying to write
>> to the same output file, and it only shows up in ninja because it's
>> better at parallel builds...?
>>
>> Or is it absolutely certain that there's a one-rule/one-output-file
>> correspondence?
>>
>>
>> David C.
>> On Wed, Sep 26, 2018 at 10:58 AM Andras Lasso <lasso at queensu.ca> wrote:
>> >
>> > > 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?
>> >
>> >
>> >
>> > I haven’t seen such an issue in the last couple of years.
>> >
>> >
>> >
>> > 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.
>> >
>> >
>> >
>> > Andras
>> >
>> >
>> >
>> > From: David Gobbi <david.gobbi at gmail.com>
>> > Sent: Wednesday, September 26, 2018 10:48 AM
>> > To: Brad King <brad.king at kitware.com>
>> > Cc: Andras Lasso <lasso at queensu.ca>; Andrew Maclean <
>> andrew.amaclean at gmail.com>; VTK Developers <vtk-developers at vtk.org>
>> > Subject: Re: [vtk-developers] Python Wrapping fails in master build.
>> >
>> >
>> >
>> > On Wed, Sep 26, 2018 at 8:03 AM Brad King <brad.king at kitware.com>
>> wrote:
>> >
>> > One could instead write to a temporary/random file name and then
>> > rename when finished.  CMake generates most of its files that way.
>> >
>> >
>> >
>> > Thanks for the advice (and for taking the time to read this thread.)
>> This may
>> >
>> > be the ultimate solution, though I still want to do some digging to see
>> what
>> >
>> > what magic cl.exe itself uses to avoid this AV interference.
>> >
>> >
>> >
>> > For now, though, I'll put together a patch that prints the value of
>> errno when
>> >
>> > fopen() fails.  I'll probably print the result of GetLastError() too,
>> since this is
>> >
>> > a Windows issue.  Hopefully Andrew will be able to see those and report
>> on
>> >
>> > them.
>> >
>> >
>> >
>> > 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?
>> I'm still
>> >
>> > trying to get a feel for how widespread this issue is.
>> >
>> >
>> >
>> >  - David
>> >
>> > _______________________________________________
>> > Powered by www.kitware.com
>> >
>> > Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>> >
>> > Search the list archives at:
>> http://markmail.org/search/?q=vtk-developers
>> >
>> > Follow this link to subscribe/unsubscribe:
>> > https://public.kitware.com/mailman/listinfo/vtk-developers
>> >
>>
>
>
> --
> ___________________________________________
> Andrew J. P. Maclean
>
> ___________________________________________
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Search the list archives at: http://markmail.org/search/?q=vtk-developers
>
> Follow this link to subscribe/unsubscribe:
> https://public.kitware.com/mailman/listinfo/vtk-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtk-developers/attachments/20180928/d745cefb/attachment.html>


More information about the vtk-developers mailing list