#68835 closed defect (fixed)

gdcm: (Re-)Build fails after update to vtk 9.3.0: The `SPDX_DESTINATION` must not be an absolute path

Reported by: Schamschula (Marius Schamschula) Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: nilason (Nicklas Larsson)
Port: gdcm

Description

vtk @9.3.0_0 has broken gdcm 3.0.20. I also noted that gdcm has been updated to 3.0.22. However, I see the same error in both cases:

--->  Configuring gdcm
Executing:  cd "/opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_science_gdcm/gdcm/work/build" && /opt/local/bin/cmake -G "CodeBlocks - Unix Makefiles" -DCMAKE_BUILD_TYPE=MacPorts -DCMAKE_INSTALL_PREFIX="/opt/local" -DCMAKE_INSTALL_NAME_DIR="/opt/local/lib" -DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/usr" -DCMAKE_C_COMPILER="$CC" -DCMAKE_CXX_COMPILER="$CXX" -DCMAKE_OBJC_COMPILER="$CC" -DCMAKE_OBJCXX_COMPILER="$CXX" -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_POLICY_DEFAULT_CMP0060=NEW -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_MAKE_PROGRAM=/usr/bin/make -DCMAKE_MODULE_PATH="/opt/local/share/cmake/Modules" -DCMAKE_PREFIX_PATH="/opt/local/share/cmake/Modules" -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON -DCMAKE_INSTALL_RPATH="/opt/local/lib" -Wno-dev -DCMAKE_CXX_STANDARD=14 -DGDCM_BUILD_DOCBOOK_MANPAGES=OFF -DGDCM_BUILD_EXAMPLES=OFF -DGDCM_BUILD_TESTING=OFF -DGDCM_BUILD_SHARED_LIBS=ON -DGDCM_DOCUMENTATION=OFF -DGDCM_USE_SYSTEM_ZLIB=ON -DGDCM_USE_SYSTEM_OPENSSL=ON -DGDCM_USE_SYSTEM_UUID=ON -DGDCM_USE_SYSTEM_EXPAT=ON -DGDCM_USE_SYSTEM_JSON=ON -DGDCM_USE_SYSTEM_PAPYRUS3=OFF -DGDCM_USE_SYSTEM_SOCKETXX=ON -DGDCM_USE_SYSTEM_LJPEG=OFF -DGDCM_USE_SYSTEM_OPENJPEG=ON -DGDCM_USE_SYSTEM_CHARLS=ON -DGDCM_USE_VTK=ON -DGDCM_WRAP_CSHARP=OFF -DGDCM_WRAP_JAVA=OFF -DGDCM_WRAP_PYTHON=OFF -DOPJ_USE_DSYMUTIL=OFF -DCMAKE_OSX_ARCHITECTURES="arm64" -DCMAKE_OSX_DEPLOYMENT_TARGET="13.0" -DCMAKE_OSX_SYSROOT="/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk" /opt/local/var/macports/build/_Users_marius_Development_MacPorts_ports_science_gdcm/gdcm/work/gdcm-3.0.22 
-- The CXX compiler identification is AppleClang 15.0.0.15000040
-- The C compiler identification is AppleClang 15.0.0.15000040
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Found CHARLS: /opt/local/lib/libcharls.dylib
-- Found PkgConfig: /opt/local/bin/pkg-config (found version "0.29.2") 
-- Checking for module 'libopenjp2'
--   Found libopenjp2, version 2.5.0
-- Found OpenJPEG: openjp2 (found suitable version "2.5.0", minimum required is "2.0.0") 
-- Found ZLIB: /opt/local/lib/libz.dylib (found version "1.3.#define ZLIB_VERSION "1.3"") 
-- Found OpenSSL: /opt/local/lib/libssl.dylib;/opt/local/lib/libcrypto.dylib  
-- Found UUID: /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/usr/lib/libSystem.tbd
-- Found EXPAT: /opt/local/lib/libexpat.dylib (found version "2.5.0") 
-- Found JSON: /opt/local/lib/libjson-c.dylib  
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Looking for stdlib.h
-- Looking for stdlib.h - found
-- Looking for include file sys/time.h
-- Looking for include file sys/time.h - found
-- Looking for include files sys/time.h, winsock.h
-- Looking for include files sys/time.h, winsock.h - not found
-- Looking for include files sys/time.h, byteswap.h
-- Looking for include files sys/time.h, byteswap.h - not found
-- Looking for rpc.h
-- Looking for rpc.h - not found
-- Looking for langinfo.h
-- Looking for langinfo.h - found
-- Looking for nl_langinfo
-- Looking for nl_langinfo - found
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for strncasecmp
-- Looking for strncasecmp - found
-- Looking for strptime
-- Looking for strptime - found
-- Looking for _stricmp
-- Looking for _stricmp - not found
-- Looking for _strnicmp
-- Looking for _strnicmp - not found
-- Looking for gettimeofday
-- Looking for gettimeofday - found
-- Looking for json_object_object_get_ex
-- Looking for json_object_object_get_ex - found
-- Performing Test GDCM_CXX_HAS_FUNCTION
-- Performing Test GDCM_CXX_HAS_FUNCTION - Success
-- Performing Test GDCM_HAVE_WCHAR_IFSTREAM
-- Performing Test GDCM_HAVE_WCHAR_IFSTREAM - Failed
-- Performing Test GDCM_HAVE_CODECVT
-- Performing Test GDCM_HAVE_CODECVT - Success
-- Performing Test GDCM_HAVE_CMS_RECIPIENT_PASSWORD
-- Performing Test GDCM_HAVE_CMS_RECIPIENT_PASSWORD - Success
-- Performing Test OPENSSL_HAS_CONST_VOID_BIO_NEW_MEM_BUF
-- Performing Test OPENSSL_HAS_CONST_VOID_BIO_NEW_MEM_BUF - Success
-- Performing Test Iconv_IS_BUILT_IN
-- Performing Test Iconv_IS_BUILT_IN - Failed
-- Found Iconv: /opt/local/lib/libiconv.dylib (found version "1.17") 
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Found OpenGL: /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/System/Library/Frameworks/OpenGL.framework  found components: OpenGL 
-- Building Utilities/VTK as a VTK 9 Module
CMake Error at /opt/local/lib/cmake/vtk-9.3/vtkModule.cmake:2121 (message):
  The `SPDX_DESTINATION` must not be an absolute path.  Use
  `CMAKE_INSTALL_PREFIX` to keep everything in a single installation prefix.
Call Stack (most recent call first):
  /opt/local/lib/cmake/vtk-9.3/vtkModule.cmake:2667 (_vtk_module_check_destinations)
  CMakeLists.txt:694 (vtk_module_build)

This error has also been noted upstream: https://sourceforge.net/p/gdcm/bugs/552/

Change History (6)

comment:1 Changed 11 months ago by jmroot (Joshua Root)

Port: gdcm added

comment:2 Changed 11 months ago by Schamschula (Marius Schamschula)

Resolution: duplicate
Status: assignedclosed

Duplicate of #68835

Last edited 11 months ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:3 in reply to:  2 Changed 11 months ago by nilason (Nicklas Larsson)

Replying to Schamschula:

Duplicate of #68835

Duplicate of itself?

Anyways, https://github.com/macports/macports-ports/pull/21661 is addressing this issue.

Last edited 11 months ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:4 Changed 11 months ago by Schamschula (Marius Schamschula)

Resolution: duplicate
Status: closedreopened

Oops. Too early in the morning. I thought this was a second report based on the failed build of gdcm 3.0.22.

comment:5 Changed 11 months ago by nilason (Nicklas Larsson)

Cc: nilason added

comment:6 Changed 11 months ago by Marius Schamschula <mschamschula@…>

Resolution: fixed
Status: reopenedclosed

In dbeb0efdbe96c393eb22ad7bdbe4a514f0432168/macports-ports (master):

gdcm: patch for vtk 9.3.0

Closes: #68835

Note: See TracTickets for help on using tickets.