#1148258 onnxruntime: FTBFS: CMake: target not found: Microsoft.GSL::GSL

#1148258#5
Date:
2026-09-18 13:56:44 UTC
From:
To:
Hello,

onnxruntime FTBFS on both unstable (1.23.2+dfsg-6) and experimental (1.27.1+dfsg-1):


...
-- Could NOT find Git (missing: GIT_EXECUTABLE)
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- Python Build is enabled
-- CMAKE_CXX_COMPILER_ID: GNU
-- CMAKE_CXX_COMPILER_VERSION: 16.2.0
-- Using -mavx2 -mfma -mavxvnni flags
-- Performing Test LINKER_SUPPORT_RPATH
-- Performing Test LINKER_SUPPORT_RPATH - Success
-- Python_EXECUTABLE: /usr/bin/python3
-- Configuring done (4.6s)
CMake Error at onnxruntime_common.cmake:176 (target_link_libraries):
  Target "onnxruntime_common" links to:

    Microsoft.GSL::GSL

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

Call Stack (most recent call first):
  CMakeLists.txt:1798 (include)


CMake Error at onnxruntime_providers_dnnl.cmake:22 (target_link_libraries):
  Target "onnxruntime_providers_dnnl" links to:

    Microsoft.GSL::GSL

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

Call Stack (most recent call first):
  onnxruntime_providers.cmake:122 (include)
  CMakeLists.txt:1798 (include)


CMake Error at onnxruntime.cmake:271 (target_link_libraries):
  Target "onnxruntime" links to:

    Microsoft.GSL::GSL

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

Call Stack (most recent call first):
  CMakeLists.txt:1798 (include)


CMake Error at onnxruntime_python.cmake:302 (target_link_libraries):
  Target "onnxruntime_pybind11_state" links to:

    Microsoft.GSL::GSL

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

Call Stack (most recent call first):
  CMakeLists.txt:1798 (include)

#1148258#10
Date:
2026-09-18 14:04:38 UTC
From:
To: