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

David Cole DLRdave at aol.com
Wed Sep 26 12:23:20 EDT 2018


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
>


More information about the vtk-developers mailing list