[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: RFS: Bug#957360: insighttoolkit4: ftbfs with GCC-10



On Saturday, August 8, 2020 4:34:39 P.M. CDT Étienne Mollier wrote:

> > 2. I wonder whether some of the older patches (dating from 2016) should be
> > dropped; in particular:
> > 
> > atomic_load.patch
> 
> I'm missing context, and the issue tracker pointed to by the URL
> in the header does not seem to have migrated to the current
> platform unfortunately.  :/

I managed to find it here: https://insightsoftwareconsortium.atlassian.net/
browse/ITK-3413

But that doesn't shed a lot of light.  The only thing I see relevant is "Make 
the Load operation truly atomic - doesn't change anything on amd64 or i386, 
but it may be of interest for other archs. "   However, the patch removes one 
usage of __sync_synchronize, but leaves another in the Store() function, which 
seems suspect.  I would believe that there may have been a bug in the x86 
codegen in 2016, but we've got 4 years of compiler fixes since then, so I am of 
the opinion to remove this on that basis.  And the basis that upstream ITK has 
not incorporated this change in 4 years.


> > itk4.10.0-python-wrapping.patch
> 
> I have the impression that this second one is needed to avoid
> use of included third party libraries and use the one provided
> by Debian.

You must be looking at a different patch.  This one is:

--- a/Modules/Filtering/ImageGrid/wrapping/itkResampleImageFilter.wrap
+++ b/Modules/Filtering/ImageGrid/wrapping/itkResampleImageFilter.wrap
@@ -8,6 +8,7 @@
   foreach(d ${ITK_WRAP_IMAGE_DIMS})
     foreach(t ${to_types})
       itk_wrap_template("${ITKM_VI${t}${d}}${ITKM_VI${t}${d}}" "${ITKT_VI${t}
${d}},${ITKT_VI${t}${d}}")
+      itk_wrap_template("${ITKM_I${t}${d}}${ITKM_I${t}${d}}" "${ITKT_I${t}$
{d}},${ITKT_I${t}${d}}")
     endforeach()
   endforeach()
 
I don't see any motivation to adding the extra wrapping.  This patch was added 
in 2016, along with itk4.10.0_itkTriangleHelper.h.patch (since removed) to fix 
a build failure on amd64 (see #835761).  The bug traces to ITK issue https://
insightsoftwareconsortium.atlassian.net/browse/ITK-3466 which was said to be 
addressed in 4.10.1 with this commit: https://github.com/
InsightSoftwareConsortium/ITK/commit/be1e9f88ff036048148d4b8b887b8671739307d4
This commit amounts to the content of the former 
itk4.10.0_itkTriangleHelper.h.patch.  

I have run the build with this patch removed to no noticable effect -- only 
test failure remains Test #2625: PythonExtras.

This seems safe to remove.


> > itk4.12.0-resource_cprobe.patch
> 
> This last one seems needed for i386 support, but might require
> to check how behaves the targeted equipment before drop.  Maybe
> I can attempt a build without the patch on my i386 alarm clock.

I ran the build with this patch removed to no noticable effect -- only test 
failure remains Test #2625: PythonExtras.  But this was amd64.  I'll do it 
again on x86 before comitting the removal.

-Steve

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: