[ITK] [ITK-users] Build errors in python wrapping of 4.10.0

Michka Popoff michkapopoff at gmail.com
Wed Jun 15 17:12:06 EDT 2016


Hi

I think this bug is not known. I had a look and could reproduce it with gcc 6.0.0, Cmake 3.5.2, Python 3.5.1 on OS X.
GCC 6 is using c++14 by default, but even with c++11 you would probably get the problem.
The problem is also there with the latest commit from the master branch.

Please note that we probably never tested Python Wrappings with c++11, even not speaking of c++14.

The problem seems to have appeared with this patch:
https://github.com/InsightSoftwareConsortium/ITK/commit/b6b9a8e8849da1edbf75f88e11adb8d8d15bb395

I removed the ITK_DELETE_FUNCTION macro from the itkTriangleHelper copy constructor, and was able to compile
with gcc 6. But it may just a side effect of that patch which is now only appearing with c++ >= 11.
It is weird that the problem seems to be only for the itkTriangleHelper class.

I will have to look what is the difference in the files generated for swig and what is exactly failing,
though I do not know how long it will take me. I hope I can do this this weekend.

Thanks

Michka


> On 09 Jun 2016, at 16:14, Christopher Mullins <christopherrmullins at gmail.com> wrote:
> 
> Hi all,
> 
> Apparently my subscription to this list has lapsed and my first email was rejected (despite receiving the list in my inbox every day).  Sorry if there's a double post.
> 
> I'm getting the following build errors when building ITK 4.10.0 with the WRAP_PYTHON option ON[1], [3].  Is this a known issue, or is there a configuration setting I've set improperly?  
> 
> Platform is Arch linux, GCC v6.1.1, Python v3.5.1, CMake v3.5.2. There are no warnings. See all output details for this machine here [2], and please let me know if I can provide any others.
> 
> The faster I fix this the faster I'll feel comfortable updating the Arch linux AUR PKGBUILD for ITK, so I appreciate any help you can offer.
> 
> Thanks,
> Chris
> 
> 
> 
> [1] https://open.cdash.org/viewBuildError.php?buildid=4403379
> [2] https://open.cdash.org/buildSummary.php?buildid=4403379
> 
> [3] To save you a click, and for the sake of archiving, the error is:
> /home/chris/projects/MyTests/ITK-build/Wrapping/Modules/ITKCommon/itkTriangleHelperPython.cpp: In function 'PyObject* _wrap_new_itkTriangleHelperPD2(PyObject*, PyObject*)': /home/chris/projects/MyTests/ITK-build/Wrapping/Modules/ITKCommon/itkTriangleHelperPython.cpp:5854:65: error: no matching function for call to 'itk::TriangleHelper<itk::Point<double, 2u> >::TriangleHelper()' result = (itkTriangleHelperPD2 *)new itkTriangleHelperPD2();
> _____________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> 
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
> 
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/insight-users

_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list