ITK: Building 5.1.0 with tests enabled fails.

Expected behavior

build

Actual behavior

With tests enabled (fails): https://ppb.chymera.eu/ceb4a1.log Without tests enabled (works): https://ppb.chymera.eu/dedde8.log

Reproducibility

100%

Versions

ITK 5.1.0, as downloaded from https://github.com/InsightSoftwareConsortium/ITK/releases/download/v5.1.0/InsightToolkit-5.1.0.tar.gz

Environment

Gentoo Linux, CMake 3.17.3

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 30 (30 by maintainers)

Most upvoted comments

@phcerdan no idea what solves the original issue, it just went away. I can only assume the build tree wasn’t clean… though the package manager should always clean it, and has never failed to before. Possibly black magic 😃

Thank you all for your support, the TIFF issue was solved by adding the jpeg USE flag to the tiff package.

@gdevenyi :

/var/tmp/portage/sci-libs/itk-5.1.0/work/itk-5.1.0_build/gentoo_toolchain.cmake:

SET (CMAKE_ASM_COMPILER "x86_64-pc-linux-gnu-gcc")
SET (CMAKE_ASM-ATT_COMPILER "x86_64-pc-linux-gnu-gcc")
SET (CMAKE_C_COMPILER "x86_64-pc-linux-gnu-gcc")
SET (CMAKE_CXX_COMPILER "x86_64-pc-linux-gnu-g++")
SET (CMAKE_Fortran_COMPILER "x86_64-pc-linux-gnu-gfortran")
SET (CMAKE_AR /usr/bin/x86_64-pc-linux-gnu-ar CACHE FILEPATH "Archive manager" FORCE)
SET (CMAKE_RANLIB /usr/bin/x86_64-pc-linux-gnu-ranlib CACHE FILEPATH "Archive index generator" FORCE)
SET (CMAKE_SYSTEM_PROCESSOR "x86_64")

/var/tmp/portage/sci-libs/itk-5.1.0/work/itk-5.1.0_build/gentoo_common_config.cmake:

SET (CMAKE_GENTOO_BUILD ON CACHE BOOL "Indicate Gentoo package build")
SET (LIB_SUFFIX 64 CACHE STRING "library path suffix" FORCE)
SET (CMAKE_INSTALL_LIBDIR lib64 CACHE PATH "Output directory for libraries")
SET (CMAKE_INSTALL_INFODIR "/usr/share/info" CACHE PATH "")
SET (CMAKE_INSTALL_MANDIR "/usr/share/man" CACHE PATH "")
SET (CMAKE_USER_MAKE_RULES_OVERRIDE "/var/tmp/portage/sci-libs/itk-5.1.0/work/itk-5.1.0_build/gentoo_rules.cmake" CACHE FILEPATH "Gentoo override rules")
SET (CMAKE_INSTALL_DOCDIR "/usr/share/doc/itk-5.1.0" CACHE PATH "")
SET (BUILD_SHARED_LIBS ON CACHE BOOL "")

Looking at the failures, I see:

 -DITK_USE_SYSTEM_TIFF=ON

in the config and

Description: itk::ERROR: itk::ERROR: TIFFImageIO(0x55f7335457e0): TIFF CODEC "JPEG" is not supported.

In the log. Indicating your system libtiff doesn’t have JPEG built in?