I checked out the latest stable release (0.10.0
) and attempted a build on Debian Stretch, which eventually failed. The relevant parts of the build log are pasted below. Same problem happens with the current tip of master
.
cmake .. -DBUILD_SHARED_LIBS=ON -DWRAP_PYTHON=OFF -DBUILD_TESTING=OFF
-- The C compiler identification is GNU 6.2.1
-- The CXX compiler identification is GNU 6.2.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building SimpleITK version "0.10.0-g5c8b3"
-- Performing Test CXX_HAS_stdcxx11
-- Performing Test CXX_HAS_stdcxx11 - Success
-- Checking if c++11 is required...
-- Checking if c++11 is required... NO
-- Performing Test CXX_HAS-Wall
-- Performing Test CXX_HAS-Wall - Success
-- Performing Test CXX_HAS-Wno-long-double
-- Performing Test CXX_HAS-Wno-long-double - Failed
-- Performing Test CXX_HAS-Wno-long-long
-- Performing Test CXX_HAS-Wno-long-long - Success
-- Performing Test CXX_HAS-Wno-unused-local-typedefs
-- Performing Test CXX_HAS-Wno-unused-local-typedefs - Success
-- Performing Test CXX_HAS-Wno-strict-overflow
-- Performing Test CXX_HAS-Wno-strict-overflow - Success
-- Performing Test CXX_HAS-Wextra
-- Performing Test CXX_HAS-Wextra - Success
-- Performing Test CXX_HAS-Wformat_2
-- Performing Test CXX_HAS-Wformat_2 - Success
-- Performing Test CXX_HAS-Wno-format-nonliteral
-- Performing Test CXX_HAS-Wno-format-nonliteral - Success
-- Performing Test CXX_HAS-Wunused
-- Performing Test CXX_HAS-Wunused - Success
-- Performing Test CXX_HAS-Wpointer-arith
-- Performing Test CXX_HAS-Wpointer-arith - Success
-- Performing Test CXX_HAS-Winvalid-pch
-- Performing Test CXX_HAS-Winvalid-pch - Success
-- Performing Test CXX_HAS-Wcast-align
-- Performing Test CXX_HAS-Wcast-align - Success
-- Performing Test CXX_HAS-Wdisabled-optimization
-- Performing Test CXX_HAS-Wdisabled-optimization - Success
-- Performing Test CXX_HAS-Woverloaded-virtual
-- Performing Test CXX_HAS-Woverloaded-virtual - Success
-- Performing Test CXX_HAS-Wshadow
-- Performing Test CXX_HAS-Wshadow - Success
-- Performing Test CXX_HAS-Wwrite-strings
-- Performing Test CXX_HAS-Wwrite-strings - Success
-- Performing Test CXX_HAS-Wstrict-null-sentinel
-- Performing Test CXX_HAS-Wstrict-null-sentinel - Success
-- Performing Test CXX_HAS-Wno-invalid-offsetof
-- Performing Test CXX_HAS-Wno-invalid-offsetof - Success
-- The imported target "vtkgdcm" references the file
"/usr/lib/x86_64-linux-gnu/libvtkgdcm.so.2.6.6"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/lib/x86_64-linux-gnu/gdcm-2.6/GDCMTargets.cmake"
but not all the files it references.
-- The imported target "vtkgdcmsharpglue" references the file
"/usr/lib/x86_64-linux-gnu/libvtkgdcmsharpglue.so"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/lib/x86_64-linux-gnu/gdcm-2.6/GDCMTargets.cmake"
but not all the files it references.
-- The imported target "vtkgdcmJava" references the file
"/usr/lib/x86_64-linux-gnu/jni/libvtkgdcmJava.so"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/lib/x86_64-linux-gnu/gdcm-2.6/GDCMTargets.cmake"
but not all the files it references.
-- The imported target "vtkgdcmPython" references the file
"/usr/lib/python/dist-packages/libvtkgdcmPython.so"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/lib/x86_64-linux-gnu/gdcm-2.6/GDCMTargets.cmake"
but not all the files it references.
-- The imported target "vtkgdcmPythonD" references the file
"/usr/lib/x86_64-linux-gnu/libvtkgdcmPythonD.so.2.6.6"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/lib/x86_64-linux-gnu/gdcm-2.6/GDCMTargets.cmake"
but not all the files it references.
-- The imported target "gdcmdump" references the file
"/usr/bin/gdcmdump"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/lib/x86_64-linux-gnu/gdcm-2.6/GDCMTargets.cmake"
but not all the files it references.
-- The imported target "gdcmdiff" references the file
"/usr/bin/gdcmdiff"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/lib/x86_64-linux-gnu/gdcm-2.6/GDCMTargets.cmake"
but not all the files it references.
-- The imported target "gdcmraw" references the file
"/usr/bin/gdcmraw"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/lib/x86_64-linux-gnu/gdcm-2.6/GDCMTargets.cmake"
but not all the files it references.
-- The imported target "gdcmscanner" references the file
"/usr/bin/gdcmscanner"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/lib/x86_64-linux-gnu/gdcm-2.6/GDCMTargets.cmake"
but not all the files it references.
-- The imported target "gdcmanon" references the file
"/usr/bin/gdcmanon"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/lib/x86_64-linux-gnu/gdcm-2.6/GDCMTargets.cmake"
but not all the files it references.
-- The imported target "gdcmgendir" references the file
"/usr/bin/gdcmgendir"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/lib/x86_64-linux-gnu/gdcm-2.6/GDCMTargets.cmake"
but not all the files it references.
-- The imported target "gdcmimg" references the file
"/usr/bin/gdcmimg"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/lib/x86_64-linux-gnu/gdcm-2.6/GDCMTargets.cmake"
but not all the files it references.
-- The imported target "gdcmconv" references the file
"/usr/bin/gdcmconv"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/lib/x86_64-linux-gnu/gdcm-2.6/GDCMTargets.cmake"
but not all the files it references.
-- The imported target "gdcmtar" references the file
"/usr/bin/gdcmtar"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/lib/x86_64-linux-gnu/gdcm-2.6/GDCMTargets.cmake"
but not all the files it references.
-- The imported target "gdcminfo" references the file
"/usr/bin/gdcminfo"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/lib/x86_64-linux-gnu/gdcm-2.6/GDCMTargets.cmake"
but not all the files it references.
-- The imported target "gdcmscu" references the file
"/usr/bin/gdcmscu"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/lib/x86_64-linux-gnu/gdcm-2.6/GDCMTargets.cmake"
but not all the files it references.
-- The imported target "gdcmxml" references the file
"/usr/bin/gdcmxml"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/lib/x86_64-linux-gnu/gdcm-2.6/GDCMTargets.cmake"
but not all the files it references.
-- The imported target "gdcmpap3" references the file
"/usr/bin/gdcmpap3"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/lib/x86_64-linux-gnu/gdcm-2.6/GDCMTargets.cmake"
but not all the files it references.
-- The imported target "gdcmpdf" references the file
"/usr/bin/gdcmpdf"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/lib/x86_64-linux-gnu/gdcm-2.6/GDCMTargets.cmake"
but not all the files it references.
-- Performing Test SITK_HAS_CXX11_STATIC_ASSERT
-- Performing Test SITK_HAS_CXX11_STATIC_ASSERT - Success
-- Performing Test SITK_HAS_CXX11_FUNCTIONAL
-- Performing Test SITK_HAS_CXX11_FUNCTIONAL - Success
-- Performing Test SITK_HAS_CXX11_TYPE_TRAITS
-- Performing Test SITK_HAS_CXX11_TYPE_TRAITS - Success
-- Performing Test SITK_HAS_CXX11_UNORDERED_MAP
-- Performing Test SITK_HAS_CXX11_UNORDERED_MAP - Success
-- Performing Test SITK_HAS_CXX11_NULLPTR
-- Performing Test SITK_HAS_CXX11_NULLPTR - Success
-- Performing Test SITK_HAS_CXX11_UNIQUE_PTR
-- Performing Test SITK_HAS_CXX11_UNIQUE_PTR - Success
-- Performing Test SITK_HAS_CXX11_ALIAS_TEMPLATE
-- Performing Test SITK_HAS_CXX11_ALIAS_TEMPLATE - Success
-- Performing Test SITK_HAS_TR1_SUB_INCLUDE
-- Performing Test SITK_HAS_TR1_SUB_INCLUDE - Success
-- Performing Test SITK_HAS_TR1_FUNCTIONAL
-- Performing Test SITK_HAS_TR1_FUNCTIONAL - Success
-- Performing Test SITK_HAS_TR1_TYPE_TRAITS
-- Performing Test SITK_HAS_TR1_TYPE_TRAITS - Success
-- Performing Test SITK_HAS_TR1_UNORDERED_MAP
-- Performing Test SITK_HAS_TR1_UNORDERED_MAP - Success
-- Looking for C++ include stdint.h
-- Looking for C++ include stdint.h - found
doc_path: /usr/share/doc/ITK-4.10
CMake Warning at CMakeLists.txt:305 (message):
Unable to file ITK's NOTICE File!
This file will not be included in SimpleITK packaging!
-- Performing Test SITK_UNDEFINED_SYMBOLS_ALLOWED - Success
-- Found Tclsh: /usr/bin/tclsh (found version "8.6")
-- Found Lua: /usr/bin/lua
-- Processing json files...
-- Processing json files...done
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/SimpleITK/build
make
[ 78%] Building CXX object Code/BasicFilters/src/CMakeFiles/SimpleITKBasicFilters6.dir/sitkHistogramMatchingImageFilter.cxx.o
In file included from /usr/include/ITK-4.10/itkHistogramMatchingImageFilter.h:22:0,
from /tmp/SimpleITK/build/Code/BasicFilters/src/sitkHistogramMatchingImageFilter.cxx:34:
/usr/include/ITK-4.10/itkHistogram.h: In instantiation of ‘class itk::Statistics::Histogram<long int, itk::Statistics::DenseFrequencyContainer2>’:
/usr/include/ITK-4.10/itkHistogramMatchingImageFilter.h:106:58: required from ‘class itk::HistogramMatchingImageFilter<itk::Image<long int, 3u>, itk::Image<long int, 3u>, long int>’
/tmp/SimpleITK/build/Code/BasicFilters/src/sitkHistogramMatchingImageFilter.cxx:151:32: required from ‘itk::simple::Image itk::simple::HistogramMatchingImageFilter::ExecuteInternal(const itk::simple::Image&, const itk::simple::Image&) [with TImageType = itk::Image<long int, 3u>]’
/tmp/SimpleITK/Code/Common/include/sitkDetail.h:39:36: required from ‘TMemberFunctionPointer itk::simple::detail::MemberFunctionAddressor<TMemberFunctionPointer>::operator()() const [with TImageType = itk::Image<long int, 3u>; TMemberFunctionPointer = itk::simple::Image (itk::simple::HistogramMatchingImageFilter::*)(const itk::simple::Image&, const itk::simple::Image&)]’
/tmp/SimpleITK/Code/Common/include/sitkMemberFunctionFactory.hxx:59:7: required from ‘typename itk::simple::EnableIf<itk::simple::IsInstantiated<TPixelIDType, VImageDimension>::Value>::Type itk::simple::detail::MemberFunctionInstantiater<TMemberFunctionFactory, VImageDimension, TAddressor>::operator()(TPixelIDType*) const [with TPixelIDType = itk::simple::BasicPixelID<long int>; TMemberFunctionFactory = itk::simple::detail::MemberFunctionFactory<itk::simple::Image (itk::simple::HistogramMatchingImageFilter::*)(const itk::simple::Image&, const itk::simple::Image&)>; unsigned int VImageDimension = 3u; TAddressor = itk::simple::detail::MemberFunctionAddressor<itk::simple::Image (itk::simple::HistogramMatchingImageFilter::*)(const itk::simple::Image&, const itk::simple::Image&)>; typename itk::simple::EnableIf<itk::simple::IsInstantiated<TPixelIDType, VImageDimension>::Value>::Type = void]’
/tmp/SimpleITK/Code/Common/include/Ancillary/TypeList.h:337:5: recursively required from ‘void typelist::Visit<TTypeList>::operator()(const Predicate&) [with Predicate = itk::simple::detail::MemberFunctionInstantiater<itk::simple::detail::MemberFunctionFactory<itk::simple::Image (itk::simple::HistogramMatchingImageFilter::*)(const itk::simple::Image&, const itk::simple::Image&)>, 3u, itk::simple::detail::MemberFunctionAddressor<itk::simple::Image (itk::simple::HistogramMatchingImageFilter::*)(const itk::simple::Image&, const itk::simple::Image&)> >; TTypeList = typelist::TypeList<itk::simple::BasicPixelID<unsigned char>, typelist::TypeList<itk::simple::BasicPixelID<short int>, typelist::TypeList<itk::simple::BasicPixelID<short unsigned int>, typelist::TypeList<itk::simple::BasicPixelID<int>, typelist::TypeList<itk::simple::BasicPixelID<unsigned int>, typelist::TypeList<itk::simple::BasicPixelID<long int>, typelist::TypeList<itk::simple::BasicPixelID<long unsigned int>, typelist::TypeList<itk::simple::BasicPixelID<float>, typelist::TypeList<itk::simple::BasicPixelID<double>, typelist::NullType> > > > > > > > >]’
/tmp/SimpleITK/Code/Common/include/Ancillary/TypeList.h:337:5: required from ‘void typelist::Visit<TTypeList>::operator()(const Predicate&) [with Predicate = itk::simple::detail::MemberFunctionInstantiater<itk::simple::detail::MemberFunctionFactory<itk::simple::Image (itk::simple::HistogramMatchingImageFilter::*)(const itk::simple::Image&, const itk::simple::Image&)>, 3u, itk::simple::detail::MemberFunctionAddressor<itk::simple::Image (itk::simple::HistogramMatchingImageFilter::*)(const itk::simple::Image&, const itk::simple::Image&)> >; TTypeList = typelist::TypeList<itk::simple::BasicPixelID<signed char>, typelist::TypeList<itk::simple::BasicPixelID<unsigned char>, typelist::TypeList<itk::simple::BasicPixelID<short int>, typelist::TypeList<itk::simple::BasicPixelID<short unsigned int>, typelist::TypeList<itk::simple::BasicPixelID<int>, typelist::TypeList<itk::simple::BasicPixelID<unsigned int>, typelist::TypeList<itk::simple::BasicPixelID<long int>, typelist::TypeList<itk::simple::BasicPixelID<long unsigned int>, typelist::TypeList<itk::simple::BasicPixelID<float>, typelist::TypeList<itk::simple::BasicPixelID<double>, typelist::NullType> > > > > > > > > >]’
/tmp/SimpleITK/Code/Common/include/sitkMemberFunctionFactory.hxx:127:16: required from ‘void itk::simple::detail::MemberFunctionFactory<TMemberFunctionPointer>::RegisterMemberFunctions() [with TPixelIDTypeList = typelist::TypeList<itk::simple::BasicPixelID<signed char>, typelist::TypeList<itk::simple::BasicPixelID<unsigned char>, typelist::TypeList<itk::simple::BasicPixelID<short int>, typelist::TypeList<itk::simple::BasicPixelID<short unsigned int>, typelist::TypeList<itk::simple::BasicPixelID<int>, typelist::TypeList<itk::simple::BasicPixelID<unsigned int>, typelist::TypeList<itk::simple::BasicPixelID<long int>, typelist::TypeList<itk::simple::BasicPixelID<long unsigned int>, typelist::TypeList<itk::simple::BasicPixelID<float>, typelist::TypeList<itk::simple::BasicPixelID<double>, typelist::NullType> > > > > > > > > >; unsigned int VImageDimension = 3u; TAddressor = itk::simple::detail::MemberFunctionAddressor<itk::simple::Image (itk::simple::HistogramMatchingImageFilter::*)(const itk::simple::Image&, const itk::simple::Image&)>; TMemberFunctionPointer = itk::simple::Image (itk::simple::HistogramMatchingImageFilter::*)(const itk::simple::Image&, const itk::simple::Image&)]’
/tmp/SimpleITK/Code/Common/include/sitkMemberFunctionFactory.h:123:5: required from ‘void itk::simple::detail::MemberFunctionFactory<TMemberFunctionPointer>::RegisterMemberFunctions() [with TPixelIDTypeList = typelist::TypeList<itk::simple::BasicPixelID<signed char>, typelist::TypeList<itk::simple::BasicPixelID<unsigned char>, typelist::TypeList<itk::simple::BasicPixelID<short int>, typelist::TypeList<itk::simple::BasicPixelID<short unsigned int>, typelist::TypeList<itk::simple::BasicPixelID<int>, typelist::TypeList<itk::simple::BasicPixelID<unsigned int>, typelist::TypeList<itk::simple::BasicPixelID<long int>, typelist::TypeList<itk::simple::BasicPixelID<long unsigned int>, typelist::TypeList<itk::simple::BasicPixelID<float>, typelist::TypeList<itk::simple::BasicPixelID<double>, typelist::NullType> > > > > > > > > >; unsigned int VImageDimension = 3u; TMemberFunctionPointer = itk::simple::Image (itk::simple::HistogramMatchingImageFilter::*)(const itk::simple::Image&, const itk::simple::Image&)]’
/tmp/SimpleITK/build/Code/BasicFilters/src/sitkHistogramMatchingImageFilter.cxx:55:73: required from here
/usr/include/ITK-4.10/itkHistogram.h:285:8: error: ‘bool itk::Statistics::Histogram<TMeasurement, TFrequencyContainer>::IncreaseFrequency(const MeasurementVectorType&, itk::Statistics::Histogram<TMeasurement, TFrequencyContainer>::AbsoluteFrequencyType) [with TMeasurement = long int; TFrequencyContainer = itk::Statistics::DenseFrequencyContainer2; itk::Statistics::Histogram<TMeasurement, TFrequencyContainer>::MeasurementVectorType = itk::Array<long int>; itk::Statistics::Histogram<TMeasurement, TFrequencyContainer>::AbsoluteFrequencyType = long unsigned int]’ cannot be overloaded
bool IncreaseFrequency(
^~~~~~~~~~~~~~~~~
/usr/include/ITK-4.10/itkHistogram.h:279:8: error: with ‘bool itk::Statistics::Histogram<TMeasurement, TFrequencyContainer>::IncreaseFrequency(const IndexType&, itk::Statistics::Histogram<TMeasurement, TFrequencyContainer>::AbsoluteFrequencyType) [with TMeasurement = long int; TFrequencyContainer = itk::Statistics::DenseFrequencyContainer2; itk::Statistics::Histogram<TMeasurement, TFrequencyContainer>::IndexType = itk::Array<long int>; itk::Statistics::Histogram<TMeasurement, TFrequencyContainer>::AbsoluteFrequencyType = long unsigned int]’
bool IncreaseFrequency(const IndexType & index,
^~~~~~~~~~~~~~~~~
Code/BasicFilters/src/CMakeFiles/SimpleITKBasicFilters6.dir/build.make:542: recipe for target 'Code/BasicFilters/src/CMakeFiles/SimpleITKBasicFilters6.dir/sitkHistogramMatchingImageFilter.cxx.o' failed
make[2]: *** [Code/BasicFilters/src/CMakeFiles/SimpleITKBasicFilters6.dir/sitkHistogramMatchingImageFilter.cxx.o] Error 1
CMakeFiles/Makefile2:619: recipe for target 'Code/BasicFilters/src/CMakeFiles/SimpleITKBasicFilters6.dir/all' failed
make[1]: *** [Code/BasicFilters/src/CMakeFiles/SimpleITKBasicFilters6.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2