--- Begin Message ---
Source: ants
Version: 2.1.0-4
Severity: serious
Justification: fails to build from source
Hi,
after fixing the B-D to use libdcmtk-dev, ants FTBFS with mixing up
double and float:
[ 1%] Building CXX object
Examples/CMakeFiles/antsUtilities.dir/antsRegistration2DFloat.cxx.o
cd /build/ants-2.1.0/obj-x86_64-linux-gnu/Examples && /usr/bin/c++
-DITK_IO_FACTORY_REGISTER_MANAGER
-I/build/ants-2.1.0/obj-x86_64-linux-gnu/Examples
-I/build/ants-2.1.0/Examples/. -I/build/ants-2.1.0/Examples/../Temporary
-I/build/ants-2.1.0/Examples/../Tensor
-I/build/ants-2.1.0/Examples/../GraphTheory
-I/build/ants-2.1.0/Examples/../ImageSegmentation
-I/build/ants-2.1.0/Examples/../ImageRegistration
-I/build/ants-2.1.0/Examples/../Utilities
-I/build/ants-2.1.0/obj-x86_64-linux-gnu/ITKIOFactoryRegistration
-I/usr/include/hdf5/serial -I/usr/include/dcmtk/dcmseg
-I/usr/include/dcmtk/dcmfg -I/usr/include/dcmtk/dcmiod
-I/usr/include/dcmtk/dcmrt -I/usr/include/dcmtk/dcmpstat
-I/usr/include/dcmtk/dcmqrdb -I/usr/include/dcmtk/dcmwlm
-I/usr/include/dcmtk/dcmsign -I/usr/include/dcmtk/dcmsr
-I/usr/include/dcmtk/dcmnet -I/usr/include/dcmtk/dcmtls
-I/usr/include/dcmtk/dcmjpls -I/usr/include/dcmtk/dcmjpeg
-I/usr/include/dcmtk/dcmimage -I/usr/include/dcmtk/dcmimgle
-I/usr/include/dcmtk/dcmdat
a -I/usr/include/dcmtk/oflog -I/usr/include/dcmtk/ofstd
-I/usr/include/dcmtk/config -I/usr/include/x86_64-linux-gnu
-I/usr/include/gdcm-2.6 -I/usr/include/double-conversion -I/usr/include/ITK-4.9
-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time
-D_FORTIFY_SOURCE=2 -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 -fPIC -o
CMakeFiles/antsUtilities.dir/antsRegistration2DFloat.cxx.o -c
/build/ants-2.1.0/Examples/antsRegistration2DFloat.cxx
In file included from
/build/ants-2.1.0/Examples/itkantsRegistrationHelper.hxx:8:0,
from
/build/ants-2.1.0/Examples/itkantsRegistrationHelper.h:1120,
from
/build/ants-2.1.0/Examples/antsRegistrationTemplateHeader.h:14,
from /build/ants-2.1.0/Examples/antsRegistration2DFloat.cxx:1:
/build/ants-2.1.0/Examples/antsRegistrationOptimizerCommandIterationUpdate.h:
In instantiation of 'void
ants::antsRegistrationOptimizerCommandIterationUpdate<ParametersValueType,
VImageDimension,
TOptimizer>::UpdateFullScaleMetricValue(itk::WeakPointer<TOptimizer>,
ants::antsRegistrationOptimizerCommandIterationUpdate<ParametersValueType,
VImageDimension, TOptimizer>::MeasureType&) const [with ParametersValueType =
float; unsigned int VImageDimension = 2u; TOptimizer =
itk::GradientDescentOptimizerv4Template<float>;
ants::antsRegistrationOptimizerCommandIterationUpdate<ParametersValueType,
VImageDimension, TOptimizer>::MeasureType = float]':
/build/ants-2.1.0/Examples/antsRegistrationOptimizerCommandIterationUpdate.h:131:9:
required from 'void
ants::antsRegistrationOptimizerCommandIterationUpdate<ParametersValueType,
VImageDimension, TOptimizer>::Execute(const itk::Object*, const
itk::EventObject&) [with ParametersValueType = float; unsigned int
VImageDimension = 2u; TOptimizer =
itk::GradientDescentOptimizerv4Template<float>]'
/build/ants-2.1.0/Examples/antsRegistration2DFloat.cxx:11:1: required from
here
/build/ants-2.1.0/Examples/antsRegistrationOptimizerCommandIterationUpdate.h:261:71:
error: invalid initialization of reference of type 'const ParametersType& {aka
const itk::OptimizerParameters<float>&}' from expression of type 'const
FixedParametersType {aka const itk::OptimizerParameters<double>}'
inputFixedTransform->GetNthTransform(i)->GetFixedParameters();
^
/build/ants-2.1.0/Examples/antsRegistrationOptimizerCommandIterationUpdate.h:263:9:
error: no matching function for call to 'itk::Transform<float, 2u,
2u>::SetFixedParameters(const ParametersType&)'
subTransform->SetFixedParameters( fixedImage_fixed_paras );
^
In file included from /usr/include/ITK-4.9/itkMatrixOffsetTransformBase.h:24:0,
from /usr/include/ITK-4.9/itkAffineTransform.h:21,
from
/build/ants-2.1.0/Examples/../Utilities/ReadWriteData.h:16,
from /build/ants-2.1.0/Examples/itkantsRegistrationHelper.h:21,
from
/build/ants-2.1.0/Examples/antsRegistrationTemplateHeader.h:14,
from /build/ants-2.1.0/Examples/antsRegistration2DFloat.cxx:1:
/usr/include/ITK-4.9/itkTransform.h:381:16: note: candidate: void
itk::Transform<TParametersValueType, NInputDimensions,
NOutputDimensions>::SetFixedParameters(const FixedParametersType&) [with
TParametersValueType = float; unsigned int NInputDimensions = 2u; unsigned int
NOutputDimensions = 2u; itk::Transform<TParametersValueType, NInputDimensions,
NOutputDimensions>::FixedParametersType = itk::OptimizerParameters<double>]
virtual void SetFixedParameters(const FixedParametersType &) ITK_OVERRIDE =
0;
^
/usr/include/ITK-4.9/itkTransform.h:381:16: note: no known conversion for
argument 1 from 'const ParametersType {aka const
itk::OptimizerParameters<float>}' to 'const FixedParametersType& {aka const
itk::OptimizerParameters<double>&}'
In file included from
/build/ants-2.1.0/Examples/itkantsRegistrationHelper.hxx:8:0,
from
/build/ants-2.1.0/Examples/itkantsRegistrationHelper.h:1120,
from
/build/ants-2.1.0/Examples/antsRegistrationTemplateHeader.h:14,
from /build/ants-2.1.0/Examples/antsRegistration2DFloat.cxx:1:
/build/ants-2.1.0/Examples/antsRegistrationOptimizerCommandIterationUpdate.h:293:70:
error: invalid initialization of reference of type 'const ParametersType& {aka
const itk::OptimizerParameters<float>&}' from expression of type 'const
FixedParametersType {aka const itk::OptimizerParameters<double>}'
inputMovingTransform->GetNthTransform(i)->GetFixedParameters();
^
/build/ants-2.1.0/Examples/antsRegistrationOptimizerCommandIterationUpdate.h:295:7:
error: no matching function for call to 'itk::Transform<float, 2u,
2u>::SetFixedParameters(const ParametersType&)'
subTransform->SetFixedParameters( moving_fixed_paras );
^
In file included from /usr/include/ITK-4.9/itkMatrixOffsetTransformBase.h:24:0,
from /usr/include/ITK-4.9/itkAffineTransform.h:21,
from
/build/ants-2.1.0/Examples/../Utilities/ReadWriteData.h:16,
from /build/ants-2.1.0/Examples/itkantsRegistrationHelper.h:21,
from
/build/ants-2.1.0/Examples/antsRegistrationTemplateHeader.h:14,
from /build/ants-2.1.0/Examples/antsRegistration2DFloat.cxx:1:
/usr/include/ITK-4.9/itkTransform.h:381:16: note: candidate: void
itk::Transform<TParametersValueType, NInputDimensions,
NOutputDimensions>::SetFixedParameters(const FixedParametersType&) [with
TParametersValueType = float; unsigned int NInputDimensions = 2u; unsigned int
NOutputDimensions = 2u; itk::Transform<TParametersValueType, NInputDimensions,
NOutputDimensions>::FixedParametersType = itk::OptimizerParameters<double>]
virtual void SetFixedParameters(const FixedParametersType &) ITK_OVERRIDE =
0;
^
/usr/include/ITK-4.9/itkTransform.h:381:16: note: no known conversion for
argument 1 from 'const ParametersType {aka const
itk::OptimizerParameters<float>}' to 'const FixedParametersType& {aka const
itk::OptimizerParameters<double>&}'
In file included from
/build/ants-2.1.0/Examples/itkantsRegistrationHelper.hxx:8:0,
from
/build/ants-2.1.0/Examples/itkantsRegistrationHelper.h:1120,
from
/build/ants-2.1.0/Examples/antsRegistrationTemplateHeader.h:14,
from /build/ants-2.1.0/Examples/antsRegistration2DFloat.cxx:1:
/build/ants-2.1.0/Examples/antsRegistrationOptimizerCommandIterationUpdate.h:
In instantiation of 'void
ants::antsRegistrationOptimizerCommandIterationUpdate<ParametersValueType,
VImageDimension,
TOptimizer>::WriteIntervalVolumes(itk::WeakPointer<TOptimizer>) [with
ParametersValueType = float; unsigned int VImageDimension = 2u; TOptimizer =
itk::GradientDescentOptimizerv4Template<float>]':
/build/ants-2.1.0/Examples/antsRegistrationOptimizerCommandIterationUpdate.h:141:9:
required from 'void
ants::antsRegistrationOptimizerCommandIterationUpdate<ParametersValueType,
VImageDimension, TOptimizer>::Execute(const itk::Object*, const
itk::EventObject&) [with ParametersValueType = float; unsigned int
VImageDimension = 2u; TOptimizer =
itk::GradientDescentOptimizerv4Template<float>]'
/build/ants-2.1.0/Examples/antsRegistration2DFloat.cxx:11:1: required from
here
/build/ants-2.1.0/Examples/antsRegistrationOptimizerCommandIterationUpdate.h:327:70:
error: invalid initialization of reference of type 'const ParametersType& {aka
const itk::OptimizerParameters<float>&}' from expression of type 'const
FixedParametersType {aka const itk::OptimizerParameters<double>}'
inputMovingTransform->GetNthTransform(i)->GetFixedParameters();
^
/build/ants-2.1.0/Examples/antsRegistrationOptimizerCommandIterationUpdate.h:329:7:
error: no matching function for call to 'itk::Transform<float, 2u,
2u>::SetFixedParameters(const ParametersType&)'
subTransform->SetFixedParameters( moving_fixed_paras );
^
In file included from /usr/include/ITK-4.9/itkMatrixOffsetTransformBase.h:24:0,
from /usr/include/ITK-4.9/itkAffineTransform.h:21,
from
/build/ants-2.1.0/Examples/../Utilities/ReadWriteData.h:16,
from /build/ants-2.1.0/Examples/itkantsRegistrationHelper.h:21,
from
/build/ants-2.1.0/Examples/antsRegistrationTemplateHeader.h:14,
from /build/ants-2.1.0/Examples/antsRegistration2DFloat.cxx:1:
/usr/include/ITK-4.9/itkTransform.h:381:16: note: candidate: void
itk::Transform<TParametersValueType, NInputDimensions,
NOutputDimensions>::SetFixedParameters(const FixedParametersType&) [with
TParametersValueType = float; unsigned int NInputDimensions = 2u; unsigned int
NOutputDimensions = 2u; itk::Transform<TParametersValueType, NInputDimensions,
NOutputDimensions>::FixedParametersType = itk::OptimizerParameters<double>]
virtual void SetFixedParameters(const FixedParametersType &) ITK_OVERRIDE =
0;
^
/usr/include/ITK-4.9/itkTransform.h:381:16: note: no known conversion for
argument 1 from 'const ParametersType {aka const
itk::OptimizerParameters<float>}' to 'const FixedParametersType& {aka const
itk::OptimizerParameters<double>&}'
In file included from
/build/ants-2.1.0/Examples/itkantsRegistrationHelper.hxx:8:0,
from
/build/ants-2.1.0/Examples/itkantsRegistrationHelper.h:1120,
from
/build/ants-2.1.0/Examples/antsRegistrationTemplateHeader.h:14,
from /build/ants-2.1.0/Examples/antsRegistration2DFloat.cxx:1:
/build/ants-2.1.0/Examples/antsRegistrationOptimizerCommandIterationUpdate.h:
In instantiation of 'void
ants::antsRegistrationOptimizerCommandIterationUpdate<ParametersValueType,
VImageDimension,
TOptimizer>::UpdateFullScaleMetricValue(itk::WeakPointer<TOptimizer>,
ants::antsRegistrationOptimizerCommandIterationUpdate<ParametersValueType,
VImageDimension, TOptimizer>::MeasureType&) const [with ParametersValueType =
float; unsigned int VImageDimension = 2u; TOptimizer =
itk::ConjugateGradientLineSearchOptimizerv4Template<float>;
ants::antsRegistrationOptimizerCommandIterationUpdate<ParametersValueType,
VImageDimension, TOptimizer>::MeasureType = float]':
/build/ants-2.1.0/Examples/antsRegistrationOptimizerCommandIterationUpdate.h:131:9:
required from 'void
ants::antsRegistrationOptimizerCommandIterationUpdate<ParametersValueType,
VImageDimension, TOptimizer>::Execute(const itk::Object*, const
itk::EventObject&) [with ParametersValueType = float; unsigned int
VImageDimension = 2u; TOptimizer =
itk::ConjugateGradientLineSearchOptimizerv4Template<float>]'
/build/ants-2.1.0/Examples/antsRegistration2DFloat.cxx:11:1: required from
here
/build/ants-2.1.0/Examples/antsRegistrationOptimizerCommandIterationUpdate.h:261:71:
error: invalid initialization of reference of type 'const ParametersType& {aka
const itk::OptimizerParameters<float>&}' from expression of type 'const
FixedParametersType {aka const itk::OptimizerParameters<double>}'
inputFixedTransform->GetNthTransform(i)->GetFixedParameters();
^
/build/ants-2.1.0/Examples/antsRegistrationOptimizerCommandIterationUpdate.h:263:9:
error: no matching function for call to 'itk::Transform<float, 2u,
2u>::SetFixedParameters(const ParametersType&)'
subTransform->SetFixedParameters( fixedImage_fixed_paras );
^
In file included from /usr/include/ITK-4.9/itkMatrixOffsetTransformBase.h:24:0,
from /usr/include/ITK-4.9/itkAffineTransform.h:21,
from
/build/ants-2.1.0/Examples/../Utilities/ReadWriteData.h:16,
from /build/ants-2.1.0/Examples/itkantsRegistrationHelper.h:21,
from
/build/ants-2.1.0/Examples/antsRegistrationTemplateHeader.h:14,
from /build/ants-2.1.0/Examples/antsRegistration2DFloat.cxx:1:
/usr/include/ITK-4.9/itkTransform.h:381:16: note: candidate: void
itk::Transform<TParametersValueType, NInputDimensions,
NOutputDimensions>::SetFixedParameters(const FixedParametersType&) [with
TParametersValueType = float; unsigned int NInputDimensions = 2u; unsigned int
NOutputDimensions = 2u; itk::Transform<TParametersValueType, NInputDimensions,
NOutputDimensions>::FixedParametersType = itk::OptimizerParameters<double>]
virtual void SetFixedParameters(const FixedParametersType &) ITK_OVERRIDE =
0;
^
/usr/include/ITK-4.9/itkTransform.h:381:16: note: no known conversion for
argument 1 from 'const ParametersType {aka const
itk::OptimizerParameters<float>}' to 'const FixedParametersType& {aka const
itk::OptimizerParameters<double>&}'
In file included from
/build/ants-2.1.0/Examples/itkantsRegistrationHelper.hxx:8:0,
from
/build/ants-2.1.0/Examples/itkantsRegistrationHelper.h:1120,
from
/build/ants-2.1.0/Examples/antsRegistrationTemplateHeader.h:14,
from /build/ants-2.1.0/Examples/antsRegistration2DFloat.cxx:1:
/build/ants-2.1.0/Examples/antsRegistrationOptimizerCommandIterationUpdate.h:293:70:
error: invalid initialization of reference of type 'const ParametersType& {aka
const itk::OptimizerParameters<float>&}' from expression of type 'const
FixedParametersType {aka const itk::OptimizerParameters<double>}'
inputMovingTransform->GetNthTransform(i)->GetFixedParameters();
^
/build/ants-2.1.0/Examples/antsRegistrationOptimizerCommandIterationUpdate.h:295:7:
error: no matching function for call to 'itk::Transform<float, 2u,
2u>::SetFixedParameters(const ParametersType&)'
subTransform->SetFixedParameters( moving_fixed_paras );
^
In file included from /usr/include/ITK-4.9/itkMatrixOffsetTransformBase.h:24:0,
from /usr/include/ITK-4.9/itkAffineTransform.h:21,
from
/build/ants-2.1.0/Examples/../Utilities/ReadWriteData.h:16,
from /build/ants-2.1.0/Examples/itkantsRegistrationHelper.h:21,
from
/build/ants-2.1.0/Examples/antsRegistrationTemplateHeader.h:14,
from /build/ants-2.1.0/Examples/antsRegistration2DFloat.cxx:1:
/usr/include/ITK-4.9/itkTransform.h:381:16: note: candidate: void
itk::Transform<TParametersValueType, NInputDimensions,
NOutputDimensions>::SetFixedParameters(const FixedParametersType&) [with
TParametersValueType = float; unsigned int NInputDimensions = 2u; unsigned int
NOutputDimensions = 2u; itk::Transform<TParametersValueType, NInputDimensions,
NOutputDimensions>::FixedParametersType = itk::OptimizerParameters<double>]
virtual void SetFixedParameters(const FixedParametersType &) ITK_OVERRIDE =
0;
^
/usr/include/ITK-4.9/itkTransform.h:381:16: note: no known conversion for
argument 1 from 'const ParametersType {aka const
itk::OptimizerParameters<float>}' to 'const FixedParametersType& {aka const
itk::OptimizerParameters<double>&}'
In file included from
/build/ants-2.1.0/Examples/itkantsRegistrationHelper.hxx:8:0,
from
/build/ants-2.1.0/Examples/itkantsRegistrationHelper.h:1120,
from
/build/ants-2.1.0/Examples/antsRegistrationTemplateHeader.h:14,
from /build/ants-2.1.0/Examples/antsRegistration2DFloat.cxx:1:
/build/ants-2.1.0/Examples/antsRegistrationOptimizerCommandIterationUpdate.h:
In instantiation of 'void
ants::antsRegistrationOptimizerCommandIterationUpdate<ParametersValueType,
VImageDimension,
TOptimizer>::WriteIntervalVolumes(itk::WeakPointer<TOptimizer>) [with
ParametersValueType = float; unsigned int VImageDimension = 2u; TOptimizer =
itk::ConjugateGradientLineSearchOptimizerv4Template<float>]':
/build/ants-2.1.0/Examples/antsRegistrationOptimizerCommandIterationUpdate.h:141:9:
required from 'void
ants::antsRegistrationOptimizerCommandIterationUpdate<ParametersValueType,
VImageDimension, TOptimizer>::Execute(const itk::Object*, const
itk::EventObject&) [with ParametersValueType = float; unsigned int
VImageDimension = 2u; TOptimizer =
itk::ConjugateGradientLineSearchOptimizerv4Template<float>]'
/build/ants-2.1.0/Examples/antsRegistration2DFloat.cxx:11:1: required from
here
/build/ants-2.1.0/Examples/antsRegistrationOptimizerCommandIterationUpdate.h:327:70:
error: invalid initialization of reference of type 'const ParametersType& {aka
const itk::OptimizerParameters<float>&}' from expression of type 'const
FixedParametersType {aka const itk::OptimizerParameters<double>}'
inputMovingTransform->GetNthTransform(i)->GetFixedParameters();
^
/build/ants-2.1.0/Examples/antsRegistrationOptimizerCommandIterationUpdate.h:329:7:
error: no matching function for call to 'itk::Transform<float, 2u,
2u>::SetFixedParameters(const ParametersType&)'
subTransform->SetFixedParameters( moving_fixed_paras );
^
In file included from /usr/include/ITK-4.9/itkMatrixOffsetTransformBase.h:24:0,
from /usr/include/ITK-4.9/itkAffineTransform.h:21,
from
/build/ants-2.1.0/Examples/../Utilities/ReadWriteData.h:16,
from /build/ants-2.1.0/Examples/itkantsRegistrationHelper.h:21,
from
/build/ants-2.1.0/Examples/antsRegistrationTemplateHeader.h:14,
from /build/ants-2.1.0/Examples/antsRegistration2DFloat.cxx:1:
/usr/include/ITK-4.9/itkTransform.h:381:16: note: candidate: void
itk::Transform<TParametersValueType, NInputDimensions,
NOutputDimensions>::SetFixedParameters(const FixedParametersType&) [with
TParametersValueType = float; unsigned int NInputDimensions = 2u; unsigned int
NOutputDimensions = 2u; itk::Transform<TParametersValueType, NInputDimensions,
NOutputDimensions>::FixedParametersType = itk::OptimizerParameters<double>]
virtual void SetFixedParameters(const FixedParametersType &) ITK_OVERRIDE =
0;
^
/usr/include/ITK-4.9/itkTransform.h:381:16: note: no known conversion for
argument 1 from 'const ParametersType {aka const
itk::OptimizerParameters<float>}' to 'const FixedParametersType& {aka const
itk::OptimizerParameters<double>&}'
Examples/CMakeFiles/antsUtilities.dir/build.make:161: recipe for target
'Examples/CMakeFiles/antsUtilities.dir/antsRegistration2DFloat.cxx.o' failed
make[4]: ***
[Examples/CMakeFiles/antsUtilities.dir/antsRegistration2DFloat.cxx.o] Error 1
Andreas
--- End Message ---