Skip to content

Error building on Arch - configuration failure in YASM. #32

@chir-set

Description

@chir-set

Hello,

I'm trying to build SlicerIGSIO in vain; it fails in YASM.

It is configured as

cmake -DSlicer_DIR:PATH=/home/arc/src/Slicer-SuperBuild9/Slicer-build \
    -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
    -DSlicer_USE_GIT_PROTOCOL:BOOL=OFF \
    -DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
    -DSlicerIGSIO_USE_VP9_DEFAULT:BOOL=OFF \
    /home/arc/src/SlicerIGSIO

The first error is

CMake Error at CMakeLists.txt:2 (CMAKE_MINIMUM_REQUIRED):
  Compatibility with CMake < 3.5 has been removed from CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.

After setting the cmake minimum version to 3.10 in YASM/CMakeLists.txt, configuration still fails.

CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.10 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.


-- Trying to find DCMTK expecting DCMTKConfig.cmake
-- Trying to find DCMTK expecting DCMTKConfig.cmake - ok
-- Trying to find DCMTK expecting DCMTKConfig.cmake
-- Trying to find DCMTK expecting DCMTKConfig.cmake - ok
CMake Warning (dev) at /home/arc/src/Slicer-SuperBuild9/Slicer-build/SlicerConfig.cmake:1031 (find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

Call Stack (most recent call first):
  CMakeLists.txt:21 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /home/arc/src/Slicer-SuperBuild9/Slicer-build/SlicerConfig.cmake:1031 (find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

Call Stack (most recent call first):
  CMakeLists.txt:21 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring SlicerIGSIO with Qt 5.15.18 (using modules: Core, Widgets, Network, OpenGL, PrintSupport, UiTools, Xml, Svg, Sql, XmlPatterns, Multimedia, MultimediaWidgets, X11Extras, Qml, LinguistTools, )
-- Setting QT_PLUGINS_DIR: /usr/plugins
-- Setting QT_BINARY_DIR: /usr/bin
-- Setting QT_LIBRARY_DIR: /usr/lib
-- Checking EXTENSION_NAME variable
-- Checking EXTENSION_NAME variable - SlicerIGSIO
-- Adding ConfigureAdditionalLauncherSettings target
-- Adding ConfigureAdditionalLauncherSettings target - no (because configuring top-level project)
-- Setting EXTENSION_SOURCE_DIR ................: /home/arc/src/SlicerIGSIO
-- Setting EXTENSION_SUPERBUILD_BINARY_DIR .....: /home/arc/src/SlicerIGSIO-SuperBuild9
-- Setting EXTENSION_BUILD_SUBDIRECTORY ........: inner-build
-- Setting EXTENSION_DEPENDS ...................: NA
-- Setting EXTENSION_BUILD_SUBDIRECTORY ........: inner-build
-- Setting EXTENSION_HOMEPAGE ..................: https://github.com/IGSIO/SlicerIGSIO
-- Setting EXTENSION_CONTRIBUTORS ..............: Kyle Sunderland (PerkLab, Queen's University), Andras Lasso (PerkLab, Que [...]
-- Setting EXTENSION_CATEGORY ..................: IGT
-- Setting EXTENSION_ICONURL ...................: https://github.com/IGSIO/SlicerIGSIO/raw/master/SlicerIGSIO.png
-- Setting EXTENSION_DESCRIPTION ...............: This is a utility extension that is developed as part of the Image Guided [...]
-- Setting EXTENSION_SCREENSHOTURLS ............: https://github.com/IGSIO/SlicerIGSIO/raw/master/Images/SlicerIGSIOScreens [...]
-- Setting EXTENSION_ENABLED ...................: 1
-- Setting EXTENSION_STATUS ....................: NOT DEFINED
-- Setting default for EXTENSION_STATUS ........: 
-- SuperBuild - First pass
-- SuperBuild - First pass - done
-- SuperBuild - inner => Requires VP9, IGSIO, 
-- SuperBuild -   VP9 => Requires YASM, 
-- SuperBuild -     YASM[OK]
CMake Warning (dev) at SuperBuild/External_YASM.cmake:34 (find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

Call Stack (most recent call first):
  /home/arc/src/Slicer/CMake/ExternalProjectDependency.cmake:899 (include)
  SuperBuild/External_VP9.cmake:10 (ExternalProject_Include_Dependencies)
  /home/arc/src/Slicer/CMake/ExternalProjectDependency.cmake:899 (include)
  /home/arc/src/Slicer/CMake/ExternalProjectDependency.cmake:973 (ExternalProject_Include_Dependencies)
  SuperBuild.cmake:31 (ExternalProject_Include_Dependencies)
  CMakeLists.txt:49 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- SuperBuild -     YASM_DIR:/home/arc/src/SlicerIGSIO-SuperBuild9/YASM-bin
-- SuperBuild -   VP9[OK]
-- SuperBuild -   IGSIO[OK]
-- SuperBuild - inner[OK]
-- Configuring done (1.0s)
-- Generating done (0.0s)
-- Build files have been written to: /home/arc/src/SlicerIGSIO-SuperBuild9
[  2%] Generate version-YASM.txt and license-YASM.txt
[  5%] Performing update step for 'YASM'
-- Fetching latest from the remote origin
[  8%] No patch step for 'YASM'
[ 11%] Performing configure step for 'YASM'
loading initial cache file /home/arc/src/SlicerIGSIO-SuperBuild9/YASM-prefix/tmp/YASM-cache-RelWithDebInfo.cmake
CMake Warning (dev) at CMakeLists.txt:1 (PROJECT):
  cmake_minimum_required() should be called prior to this top-level project()
  call.  Please see the cmake-commands(7) manual for usage documentation of
  both commands.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at ConfigureChecks.cmake:38 (INCLUDE):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

Call Stack (most recent call first):
  CMakeLists.txt:36 (INCLUDE)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at cmake/modules/YasmMacros.cmake:71 (get_target_property):
  The LOCATION property may not be read from target "re2c".  Use the target
  name directly with add_custom_command, or use the generator expression
  $<TARGET_FILE>, as appropriate.

Call Stack (most recent call first):
  modules/arch/lc3b/CMakeLists.txt:1 (YASM_RE2C)
  modules/arch/CMakeLists.txt:1 (INCLUDE)
  modules/CMakeLists.txt:3 (INCLUDE)


CMake Error at cmake/modules/YasmMacros.cmake:61 (get_target_property):
  The LOCATION property may not be read from target "genperf".  Use the
  target name directly with add_custom_command, or use the generator
  expression $<TARGET_FILE>, as appropriate.

Call Stack (most recent call first):
  modules/arch/x86/CMakeLists.txt:13 (YASM_GENPERF)
  modules/arch/CMakeLists.txt:2 (INCLUDE)
  modules/CMakeLists.txt:3 (INCLUDE)


CMake Error at cmake/modules/YasmMacros.cmake:61 (get_target_property):
  The LOCATION property may not be read from target "genperf".  Use the
  target name directly with add_custom_command, or use the generator
  expression $<TARGET_FILE>, as appropriate.

Call Stack (most recent call first):
  modules/arch/x86/CMakeLists.txt:18 (YASM_GENPERF)
  modules/arch/CMakeLists.txt:2 (INCLUDE)
  modules/CMakeLists.txt:3 (INCLUDE)


CMake Error at cmake/modules/YasmMacros.cmake:61 (get_target_property):
  The LOCATION property may not be read from target "genperf".  Use the
  target name directly with add_custom_command, or use the generator
  expression $<TARGET_FILE>, as appropriate.

Call Stack (most recent call first):
  modules/arch/x86/CMakeLists.txt:23 (YASM_GENPERF)
  modules/arch/CMakeLists.txt:2 (INCLUDE)
  modules/CMakeLists.txt:3 (INCLUDE)


CMake Error at cmake/modules/YasmMacros.cmake:61 (get_target_property):
  The LOCATION property may not be read from target "genperf".  Use the
  target name directly with add_custom_command, or use the generator
  expression $<TARGET_FILE>, as appropriate.

Call Stack (most recent call first):
  modules/arch/x86/CMakeLists.txt:28 (YASM_GENPERF)
  modules/arch/CMakeLists.txt:2 (INCLUDE)
  modules/CMakeLists.txt:3 (INCLUDE)


CMake Error at cmake/modules/YasmMacros.cmake:71 (get_target_property):
  The LOCATION property may not be read from target "re2c".  Use the target
  name directly with add_custom_command, or use the generator expression
  $<TARGET_FILE>, as appropriate.

Call Stack (most recent call first):
  modules/parsers/gas/CMakeLists.txt:1 (YASM_RE2C)
  modules/parsers/CMakeLists.txt:1 (INCLUDE)
  modules/CMakeLists.txt:5 (INCLUDE)


CMake Error at cmake/modules/YasmMacros.cmake:81 (get_target_property):
  The LOCATION property may not be read from target "genmacro".  Use the
  target name directly with add_custom_command, or use the generator
  expression $<TARGET_FILE>, as appropriate.

Call Stack (most recent call first):
  modules/parsers/nasm/CMakeLists.txt:1 (YASM_GENMACRO)
  modules/parsers/CMakeLists.txt:2 (INCLUDE)
  modules/CMakeLists.txt:5 (INCLUDE)


CMake Error at cmake/modules/YasmMacros.cmake:71 (get_target_property):
  The LOCATION property may not be read from target "re2c".  Use the target
  name directly with add_custom_command, or use the generator expression
  $<TARGET_FILE>, as appropriate.

Call Stack (most recent call first):
  modules/parsers/nasm/CMakeLists.txt:11 (YASM_RE2C)
  modules/parsers/CMakeLists.txt:2 (INCLUDE)
  modules/CMakeLists.txt:5 (INCLUDE)


CMake Error at modules/preprocs/nasm/CMakeLists.txt:2 (get_target_property):
  The LOCATION property may not be read from target "genversion".  Use the
  target name directly with add_custom_command, or use the generator
  expression $<TARGET_FILE>, as appropriate.

Call Stack (most recent call first):
  modules/preprocs/CMakeLists.txt:1 (INCLUDE)
  modules/CMakeLists.txt:6 (INCLUDE)


CMake Error at cmake/modules/YasmMacros.cmake:81 (get_target_property):
  The LOCATION property may not be read from target "genmacro".  Use the
  target name directly with add_custom_command, or use the generator
  expression $<TARGET_FILE>, as appropriate.

Call Stack (most recent call first):
  modules/preprocs/nasm/CMakeLists.txt:9 (YASM_GENMACRO)
  modules/preprocs/CMakeLists.txt:1 (INCLUDE)
  modules/CMakeLists.txt:6 (INCLUDE)


CMake Error at cmake/modules/YasmMacros.cmake:81 (get_target_property):
  The LOCATION property may not be read from target "genmacro".  Use the
  target name directly with add_custom_command, or use the generator
  expression $<TARGET_FILE>, as appropriate.

Call Stack (most recent call first):
  modules/objfmts/coff/CMakeLists.txt:1 (YASM_GENMACRO)
  modules/objfmts/CMakeLists.txt:4 (INCLUDE)
  modules/CMakeLists.txt:8 (INCLUDE)


CMake Error at cmake/modules/YasmMacros.cmake:81 (get_target_property):
  The LOCATION property may not be read from target "genmacro".  Use the
  target name directly with add_custom_command, or use the generator
  expression $<TARGET_FILE>, as appropriate.

Call Stack (most recent call first):
  modules/objfmts/coff/CMakeLists.txt:7 (YASM_GENMACRO)
  modules/objfmts/CMakeLists.txt:4 (INCLUDE)
  modules/CMakeLists.txt:8 (INCLUDE)


-- Standard modules: arch_lc3b;arch_x86;listfmt_nasm;parser_gas;parser_nasm;preproc_nasm;preproc_raw;preproc_cpp;preproc_gas;dbgfmt_cv8;dbgfmt_dwarf2;dbgfmt_null;dbgfmt_stabs;objfmt_dbg;objfmt_bin;objfmt_elf;objfmt_elf32;objfmt_elf64;objfmt_elfx32;objfmt_coff;objfmt_win32;objfmt_win64;objfmt_x64;objfmt_macho;objfmt_macho32;objfmt_macho64;objfmt_rdf;objfmt_xdf
-- Not regenerating static modules file (unchanged)
-- Configuring incomplete, errors occurred!
make[2]: *** [CMakeFiles/YASM.dir/build.make:94: YASM-prefix/src/YASM-stamp/YASM-configure] Error 1
make[1]: *** [CMakeFiles/Makefile2:1020: CMakeFiles/YASM.dir/all] Error 2
make: *** [Makefile:101: all] Error 2

Please advise about a solution, I don't have a clue about the configuration failure.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions