[Debian-med-packaging] Bug#871677: insighttoolkit4 ftbfs with GCC 7 (castxml out of date)

Matthias Klose doko at debian.org
Thu Aug 10 15:43:18 UTC 2017


Package: src:insighttoolkit4
Version: 4.12.0-dfsg1-1
Severity: serious
Tags: sid buster

Contrary to the claim in #871282, the package was *not* built using gcc-7.  The
recent binNMU triggered that, and then showed a ftbfs.  Not sure how that was
tested ...

cd /<<PKGBUILDDIR>>/BUILD/Wrapping/Modules/ITKCommon && /usr/bin/castxml -o
/<<PKGBUILDDIR>>/BUILD/Wrapping/itkFixedArray.xml --castxml-gccxml
--castxml-start _wrapping_ --castxml-cc-gnu "(" /usr/bin/c++ -g -O2
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I/usr/include/nifti
-Wall -Wcast-align -Wdisabled-optimization -Wextra -Wformat=2 -Winvalid-pch
-Wno-format-nonliteral -Wpointer-arith -Wshadow -Wunused -Wwrite-strings
-funit-at-a-time -Wno-strict-overflow -Wno-deprecated -Wno-invalid-offsetof
-Woverloaded-virtual -Wstrict-null-sentinel ")" -w -c
@/<<PKGBUILDDIR>>/BUILD/Wrapping/ITKCommon.castxml.inc
/<<PKGBUILDDIR>>/BUILD/Wrapping/itkFixedArray.cxx
In file included from /<<PKGBUILDDIR>>/BUILD/Wrapping/itkFixedArray.cxx:1:
In file included from /<<PKGBUILDDIR>>/Modules/Core/Common/include/itkCommand.h:21:
In file included from /<<PKGBUILDDIR>>/Modules/Core/Common/include/itkObject.h:31:
In file included from
/<<PKGBUILDDIR>>/Modules/Core/Common/include/itkLightObject.h:21:
In file included from /<<PKGBUILDDIR>>/Modules/Core/Common/include/itkMacro.h:47:
In file included from /usr/include/c++/7/string:52:
In file included from /usr/include/c++/7/bits/basic_string.h:6159:
In file included from /usr/include/c++/7/ext/string_conversions.h:41:
In file included from /usr/include/c++/7/cstdlib:77:
/usr/include/c++/7/bits/std_abs.h:103:16: error: invalid operands to binary
expression ('__castxml__float128' (aka '__castxml__float128_s') and 'int')
  { return __x < 0 ? -__x : __x; }
           ~~~ ^ ~
/usr/include/c++/7/bits/stl_pair.h:449:5: note: candidate template ignored:
could not match 'pair<type-parameter-0-0, type-parameter-0-1>' against
'__castxml__float128_s'
    operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
    ^
/usr/include/c++/7/bits/stl_iterator.h:305:5: note: candidate template ignored:
could not match 'reverse_iterator<type-parameter-0-0>' against
'__castxml__float128_s'
    operator<(const reverse_iterator<_Iterator>& __x,
    ^
/usr/include/c++/7/bits/stl_iterator.h:343:5: note: candidate template ignored:
could not match 'reverse_iterator<type-parameter-0-0>' against
'__castxml__float128_s'
    operator<(const reverse_iterator<_IteratorL>& __x,
    ^
/usr/include/c++/7/bits/stl_iterator.h:1142:5: note: candidate template ignored:
could not match 'move_iterator<type-parameter-0-0>' against '__castxml__float128_s'
    operator<(const move_iterator<_IteratorL>& __x,
    ^
/usr/include/c++/7/bits/stl_iterator.h:1148:5: note: candidate template ignored:
could not match 'move_iterator<type-parameter-0-0>' against '__castxml__float128_s'
    operator<(const move_iterator<_Iterator>& __x,
    ^
/usr/include/c++/7/bits/basic_string.h:5892:5: note: candidate template ignored:
could not match 'basic_string<type-parameter-0-0, type-parameter-0-1,
type-parameter-0-2>' against '__castxml__float128_s'
    operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
    ^
/usr/include/c++/7/bits/basic_string.h:5905:5: note: candidate template ignored:
could not match 'basic_string<type-parameter-0-0, type-parameter-0-1,
type-parameter-0-2>' against '__castxml__float128_s'
    operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
    ^
/usr/include/c++/7/bits/basic_string.h:5917:5: note: candidate template ignored:
could not match 'const _CharT *' against '__castxml__float128' (aka
'__castxml__float128_s')
    operator<(const _CharT* __lhs,
    ^
In file included from /<<PKGBUILDDIR>>/BUILD/Wrapping/itkFixedArray.cxx:1:
In file included from /<<PKGBUILDDIR>>/Modules/Core/Common/include/itkCommand.h:21:
In file included from /<<PKGBUILDDIR>>/Modules/Core/Common/include/itkObject.h:31:
In file included from
/<<PKGBUILDDIR>>/Modules/Core/Common/include/itkLightObject.h:21:
In file included from /<<PKGBUILDDIR>>/Modules/Core/Common/include/itkMacro.h:47:
In file included from /usr/include/c++/7/string:52:
In file included from /usr/include/c++/7/bits/basic_string.h:6159:
In file included from /usr/include/c++/7/ext/string_conversions.h:41:
In file included from /usr/include/c++/7/cstdlib:77:
/usr/include/c++/7/bits/std_abs.h:103:22: error: invalid argument type
'__castxml__float128' (aka '__castxml__float128_s') to unary expression
  { return __x < 0 ? -__x : __x; }
                     ^~~~
/usr/include/c++/7/bits/std_abs.h:102:3: error: no return statement in constexpr
function
  abs(__float128 __x)
  ^



More information about the Debian-med-packaging mailing list