<div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small">Had one wrapping failure in the Debug build:</div><div class="gmail_default" style="font-size:small">----------</div><div class="gmail_default" style="font-size:small"><div class="gmail_default">[398/4943] Python Wrapping - generating vtkMatrix3x3Python.cxx</div><div class="gmail_default">FAILED: Wrapping/Python/vtkMatrix3x3Python.cxx </div><div class="gmail_default">cmd.exe /C "cd /D D:\Users\amaclean\Development\Kitware\build\VTK-Debug\Wrapping\Python && D:\Users\amaclean\Development\Kitware\build\VTK-Debug\bin\vtkWrapPython-9.0.exe @D:/Users/amaclean/Development/Kitware/build/VTK-Debug/Wrapping/Python/vtkCommonMathPython.Debug.args -o D:/Users/amaclean/Development/Kitware/build/VTK-Debug/Wrapping/Python/vtkMatrix3x3Python.cxx D:/Users/amaclean/Development/Kitware/src/VTK/Common/Math/vtkMatrix3x3.h"</div><div class="gmail_default">Error opening output file D:/Users/amaclean/Development/Kitware/build/VTK-Debug/Wrapping/Python/vtkMatrix3x3Python.cxx</div><div class="gmail_default">----------</div><div class="gmail_default">and one in the  Release build:</div><div class="gmail_default">----------</div><div class="gmail_default"><div class="gmail_default">FAILED: Wrapping/Python/vtkFunctionSetPython.cxx </div><div class="gmail_default">cmd.exe /C "cd /D D:\Users\amaclean\Development\Kitware\build\VTK-Release\Wrapping\Python && D:\Users\amaclean\Development\Kitware\build\VTK-Release\bin\vtkWrapPython-9.0.exe @D:/Users/amaclean/Development/Kitware/build/VTK-Release/Wrapping/Python/vtkCommonMathPython.Release.args -o D:/Users/amaclean/Development/Kitware/build/VTK-Release/Wrapping/Python/vtkFunctionSetPython.cxx D:/Users/amaclean/Development/Kitware/src/VTK/Common/Math/vtkFunctionSet.h"</div><div class="gmail_default">Error opening output file D:/Users/amaclean/Development/Kitware/build/VTK-Release/Wrapping/Python/vtkFunctionSetPython.cxx</div><div class="gmail_default">----------</div><div class="gmail_default"><br></div><div class="gmail_default">A subsequent of ninja fixed these failures.</div><div class="gmail_default"><br></div><div class="gmail_default">Let's see what happens over the next few days.</div><div class="gmail_default"><br></div><div class="gmail_default">Andrew</div><div class="gmail_default"><br></div><div class="gmail_default"><br></div></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Sep 25, 2018 at 8:18 AM Andrew Maclean <<a href="mailto:andrew.amaclean@gmail.com">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 class="gmail_default" style="font-size:small">Awesome, I'll try it out now and over the next few days and let you know how it goes.<br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Andrew</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Sep 25, 2018 at 6:41 AM David Gobbi <<a href="mailto:david.gobbi@gmail.com" target="_blank">david.gobbi@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>Hi Andrew,</div><div dir="ltr"><br></div><div>I've merged a patch that has a minuscule chance of fixing your wrapper issue:</div><div dir="ltr"><a href="https://gitlab.kitware.com/vtk/vtk/merge_requests/4697" target="_blank">https://gitlab.kitware.com/vtk/vtk/merge_requests/4697</a></div><div>This is a patch to vtkWrapPython that closes the output *Python.cxx file prior to exit (of course, the Windows loader should close all open files on exit automatically, which isn't an excuse for the missing "fclose()" in the code, but it does suggest that this patch will have no net effect).  The patch also fixes an instance where an error could occur without an error message being printed.</div><div><br></div><div><br></div><div>With regards to incremental builds, there are deficiencies in the dependency tracking for wrappers, and even though I don't think they are related to the build problems that you are seeing, they are worth mentioning:</div><div><br></div><div>When vtkWrapPython reads a header for wrapping, it must also handle all the #include statements so that it can look for macros and definitions much like a C++ compiler would.  In other words, each file is #included should be a dependency, but most build systems can only handle such dependencies for rules that call the C++ compiler itself, and not for custom commands like vtkWrapPython.  </div><div><br></div><div>There actually are two backend-specific ways to handle such dependencies in cmake:</div><div>(1) For the "Makefile" generator, cmake can generate the dependencies on the first build but the dependency list becomes out-of-date on subsequent builds.</div><div>(2) For the "Ninja" generator, and only for very recent versions of cmake, it would be possible to add a customized dependency-generation rule, but I haven't looked into it in much detail (it would be a lot of work to implement, and wouldn't work on any other backends).</div><div><br></div><div>However, the kinds of incremental build changes that cause wrapper builds to fail are rare, and the build errors that you saw are not indicative of a dependency problem.</div><div><br></div><div> - David</div><div dir="ltr"><br></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_4030626783604728443gmail_signature" data-smartmail="gmail_signature">___________________________________________<br>Andrew J. P. Maclean<br><br>___________________________________________</div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">___________________________________________<br>Andrew J. P. Maclean<br><br>___________________________________________</div>