Skip to content

onnxruntime: fix cross compilation#450107

Open
pcc wants to merge 1 commit intoNixOS:masterfrom
pcc:onnx
Open

onnxruntime: fix cross compilation#450107
pcc wants to merge 1 commit intoNixOS:masterfrom
pcc:onnx

Conversation

@pcc
Copy link
Contributor

@pcc pcc commented Oct 8, 2025

  • Specify numpy include dir
  • Move protobuf to buildInputs

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

- Specify numpy include dir
- Move protobuf to buildInputs
@ofborg ofborg bot added the 6.topic: cross-compilation Building packages on a different platform than they will be used on label Oct 8, 2025
@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux. 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. labels Oct 8, 2025
@nix-owners nix-owners bot requested review from ck3d and puffnfresh October 8, 2025 23:12
@uninsane
Copy link
Contributor

nix-build -A pkgsCross.aarch64-multiplatform.onnxruntime fails on x86_64 linux builder:

build log
this derivation will be built:
  /nix/store/xqykr6kzdniy7xayi9gw9fb1ig27hgyc-onnxruntime-aarch64-unknown-linux-gnu-1.22.2.drv
building '/nix/store/xqykr6kzdniy7xayi9gw9fb1ig27hgyc-onnxruntime-aarch64-unknown-linux-gnu-1.22.2.drv'...
Sourcing python-catch-conflicts-hook.sh
Running phase: unpackPhase
unpacking source archive /nix/store/vlb7kr9f8vng7jmyng3a43fr7dgmxphb-source
source root is source
Running phase: patchPhase
applying patch /nix/store/5y4mk1xk48x8gbnnxd18yx2v7qdgbbsc-fix-compilation-with-gcc-15.patch
patching file onnxruntime/core/optimizer/transpose_optimization/optimizer_api.h
removed 'onnxruntime/test/optimizer/nhwc_transformer_test.cc'
Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: configurePhase
cmake flags: -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DCMAKE_INSTALL_LOCALEDIR=/nix/store/q9f5gb9cmvi8j9awckj90qshwfgxjhff-onnxruntime-aarch64-unknown-linux-gnu-1.22.2/share/locale -DCMAKE_INSTALL_LIBEXECDIR=/nix/store/q9f5gb9cmvi8j9awckj90qshwfgxjhff-onnxruntime-aarch64-unknown-linux-gnu-1.22.2/libexec -DCMAKE_INSTALL_LIBDIR=/nix/store/q9f5gb9cmvi8j9awckj90qshwfgxjhff-onnxruntime-aarch64-unknown-linux-gnu-1.22.2/lib -DCMAKE_INSTALL_DOCDIR=/nix/store/q9f5gb9cmvi8j9awckj90qshwfgxjhff-onnxruntime-aarch64-unknown-linux-gnu-1.22.2/share/doc/onnxruntime -DCMAKE_INSTALL_INFODIR=/nix/store/q9f5gb9cmvi8j9awckj90qshwfgxjhff-onnxruntime-aarch64-unknown-linux-gnu-1.22.2/share/info -DCMAKE_INSTALL_MANDIR=/nix/store/q9f5gb9cmvi8j9awckj90qshwfgxjhff-onnxruntime-aarch64-unknown-linux-gnu-1.22.2/share/man -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/nl75rjc895h0045xr88w7xsplzcyl3b4-onnxruntime-aarch64-unknown-linux-gnu-1.22.2-dev/include -DCMAKE_INSTALL_SBINDIR=/nix/store/q9f5gb9cmvi8j9awckj90qshwfgxjhff-onnxruntime-aarch64-unknown-linux-gnu-1.22.2/sbin -DCMAKE_INSTALL_BINDIR=/nix/store/q9f5gb9cmvi8j9awckj90qshwfgxjhff-onnxruntime-aarch64-unknown-linux-gnu-1.22.2/bin -DCMAKE_INSTALL_NAME_DIR=/nix/store/q9f5gb9cmvi8j9awckj90qshwfgxjhff-onnxruntime-aarch64-unknown-linux-gnu-1.22.2/lib -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_STRIP=/nix/store/ydfsrmypm495cn21gg5by9bibnkwikrs-aarch64-unknown-linux-gnu-gcc-wrapper-14.3.0/bin/aarch64-unknown-linux-gnu-strip -DCMAKE_RANLIB=/nix/store/ydfsrmypm495cn21gg5by9bibnkwikrs-aarch64-unknown-linux-gnu-gcc-wrapper-14.3.0/bin/aarch64-unknown-linux-gnu-ranlib -DCMAKE_AR=/nix/store/ydfsrmypm495cn21gg5by9bibnkwikrs-aarch64-unknown-linux-gnu-gcc-wrapper-14.3.0/bin/aarch64-unknown-linux-gnu-ar -DCMAKE_C_COMPILER=aarch64-unknown-linux-gnu-gcc -DCMAKE_CXX_COMPILER=aarch64-unknown-linux-gnu-g++ -DCMAKE_INSTALL_PREFIX=/nix/store/q9f5gb9cmvi8j9awckj90qshwfgxjhff-onnxruntime-aarch64-unknown-linux-gnu-1.22.2 -DABSL_ENABLE_INSTALL:BOOL=TRUE -DFETCHCONTENT_FULLY_DISCONNECTED:BOOL=TRUE -DFETCHCONTENT_QUIET:BOOL=FALSE -DFETCHCONTENT_SOURCE_DIR_ABSEIL_CPP:STRING=/nix/store/nyrnk08phhlwsps94irya05y6hz8r3jh-source -DFETCHCONTENT_SOURCE_DIR_DLPACK:STRING=/nix/store/fzcvl9cbks91r248jnqi35ypvvv73xfx-source -DFETCHCONTENT_SOURCE_DIR_FLATBUFFERS:STRING=/nix/store/v6bf8zbm7xiv0a3bg27n62kg64j7ql98-source -DFETCHCONTENT_SOURCE_DIR_MP11:STRING=/nix/store/czhy5q6azwqickndp9bw5ic9l4i7b43d-source -DFETCHCONTENT_SOURCE_DIR_ONNX:STRING=/nix/store/fghz3rpkjwgwzlm3nlcpsdpz2j0l2422-source -DFETCHCONTENT_SOURCE_DIR_RE2:STRING=/nix/store/7h93d3i12wv33jbkjb6xy9zwz071qx8a-source -DFETCHCONTENT_SOURCE_DIR_SAFEINT:STRING=/nix/store/x7hs45csh1mhf9hr7qjyzzsc2w5hmdmh-source -DFETCHCONTENT_TRY_FIND_PACKAGE_MODE:STRING=ALWAYS -DONNX_CUSTOM_PROTOC_EXECUTABLE:STRING=/nix/store/dfh64vxkwrl2lz552zbm5vsqvd66vabb-protobuf-aarch64-unknown-linux-gnu-32.1/bin/protoc -Donnxruntime_BUILD_SHARED_LIB:BOOL=TRUE -Donnxruntime_BUILD_UNIT_TESTS:BOOL=TRUE -Donnxruntime_USE_FULL_PROTOBUF:BOOL=FALSE -Donnxruntime_USE_CUDA:BOOL=FALSE -Donnxruntime_USE_NCCL:BOOL=FALSE -Donnxruntime_ENABLE_LTO:BOOL=TRUE -Donnxruntime_ENABLE_PYTHON:BOOL=TRUE -DPython_NumPy_INCLUDE_DIR:STRING=/nix/store/qgfakhasyc1yqamywyaha8n0ah7shsaw-python3.13-numpy-2.3.2-aarch64-unknown-linux-gnu/lib/python3.13/site-packages/numpy/_core/include -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_PROCESSOR=aarch64 -DCMAKE_HOST_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_PROCESSOR=x86_64 -DPYBIND11_PYTHONLIBS_OVERWRITE=OFF -DPYTHON_EXECUTABLE=/nix/store/62fdlzq1x1ak2lsxp4ij7ip5k9nia3hc-python3-3.13.7/bin/python3.13 -DPYTHON_INCLUDE_DIR=/nix/store/474gc6l12zyw10sg3q12aaymmcp9aapx-python3-aarch64-unknown-linux-gnu-3.13.7/include/python3.13 -DPYTHON_SITE_PACKAGES=/nix/store/474gc6l12zyw10sg3q12aaymmcp9aapx-python3-aarch64-unknown-linux-gnu-3.13.7/lib/python3.13/site-packages -DPROTOC_EXE=/nix/store/59ywwk7f1saqgfynzj4sij1ksnmi214r-protobuf-32.1/bin/protoc -DProtobuf_PROTOC_EXE=/nix/store/59ywwk7f1saqgfynzj4sij1ksnmi214r-protobuf-32.1/bin/protoc -DProtobuf_PROTOC_EXECUTABLE=/nix/store/59ywwk7f1saqgfynzj4sij1ksnmi214r-protobuf-32.1/bin/protoc
CMake Deprecation Warning at CMakeLists.txt:9 (cmake_policy):
  The OLD behavior for policy CMP0104 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


-- The C compiler identification is GNU 14.3.0
-- The CXX compiler identification is GNU 14.3.0
-- The ASM compiler identification is GNU
-- Found assembler: /nix/store/ydfsrmypm495cn21gg5by9bibnkwikrs-aarch64-unknown-linux-gnu-gcc-wrapper-14.3.0/bin/aarch64-unknown-linux-gnu-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /nix/store/ydfsrmypm495cn21gg5by9bibnkwikrs-aarch64-unknown-linux-gnu-gcc-wrapper-14.3.0/bin/aarch64-unknown-linux-gnu-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /nix/store/ydfsrmypm495cn21gg5by9bibnkwikrs-aarch64-unknown-linux-gnu-gcc-wrapper-14.3.0/bin/aarch64-unknown-linux-gnu-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test COMPILER_SUPPORT_MF16C
-- Performing Test COMPILER_SUPPORT_MF16C - Failed
F16C instruction set is not supported.
-- Performing Test COMPILER_SUPPORT_FMA
-- Performing Test COMPILER_SUPPORT_FMA - Failed
FMA instruction set is not supported.
-- Performing Test COMPILER_SUPPORT_AVX
-- Performing Test COMPILER_SUPPORT_AVX - Failed
AVX instruction set is not supported.
One or more AVX/F16C instruction flags are not supported.
Building ONNX Runtime for aarch64 CPU ARCH
-- Performing Test onnxruntime_HAVE_BUILTIN_ATOMICS
-- Performing Test onnxruntime_HAVE_BUILTIN_ATOMICS - Success
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Performing Test Iconv_IS_BUILT_IN
-- Performing Test Iconv_IS_BUILT_IN - Success
-- Found Iconv: built in to C library
-- Found Patch: /nix/store/r9lif1a0naanr8kdapwnbnr39lr7d56a-patch-2.8/bin/patch
Patch found: /nix/store/r9lif1a0naanr8kdapwnbnr39lr7d56a-patch-2.8/bin/patch
Doing crosscompiling
-- Found Python: /nix/store/62fdlzq1x1ak2lsxp4ij7ip5k9nia3hc-python3-3.13.7/bin/python3.13 (found suitable version "3.13.7", minimum required is "3.10") found components: Interpreter Development.Module NumPy
Numpy version:
CMake Warning at CMakeLists.txt:685 (message):
  The build binary will not be compatible with NumPy 2.0 because the NumPy
  installed on this machine is too low.


-- Loading Dependencies URLs ...
-- Loading Dependencies ...
-- Performing Test ABSL_INTERNAL_AT_LEAST_CXX17
-- Performing Test ABSL_INTERNAL_AT_LEAST_CXX17 - Success
-- Performing Test ABSL_INTERNAL_AT_LEAST_CXX20
-- Performing Test ABSL_INTERNAL_AT_LEAST_CXX20 - Failed
-- Abseil source dir:/nix/store/nyrnk08phhlwsps94irya05y6hz8r3jh-source
CMake Warning at /nix/store/2lrbixyw95bjg0x1aav648r0h0zsj2jl-cmake-4.1.1/share/cmake-4.1/Modules/FetchContent.cmake:2111 (message):
  FETCHCONTENT_FULLY_DISCONNECTED is set to true, which requires the source
  directory for dependency googletest to already be populated.  This
  generally means it must not be set to true the first time CMake is run in a
  build directory.  The following source directory should already be
  populated, but it doesn't exist:

    /build/source/build/_deps/googletest-src

  Policy CMP0170 controls enforcement of this requirement.
Call Stack (most recent call first):
  /nix/store/2lrbixyw95bjg0x1aav648r0h0zsj2jl-cmake-4.1.1/share/cmake-4.1/Modules/FetchContent.cmake:2384 (__FetchContent_Populate)
  external/onnxruntime_external_deps.cmake:73 (FetchContent_MakeAvailable)
  CMakeLists.txt:699 (include)


-- Found ZLIB: /nix/store/p7ziyxc4cl9faq8brnbqhvw3clpf1sbr-zlib-aarch64-unknown-linux-gnu-1.3.1/lib/libz.so (found version "1.3.1")
-- Using protobuf from find_package(or vcpkg). Protobuf version: 32.1.0
-- Aliasing cpuinfo::cpuinfo to cpuinfo
CMake Warning (dev) at /nix/store/2lrbixyw95bjg0x1aav648r0h0zsj2jl-cmake-4.1.1/share/cmake-4.1/Modules/FetchContent.cmake:1953 (message):
  Calling FetchContent_Populate(safeint) is deprecated, call
  FetchContent_MakeAvailable(safeint) instead.  Policy CMP0169 can be set to
  OLD to allow FetchContent_Populate(safeint) to be called directly for now,
  but the ability to call it with declared details will be removed completely
  in a future version.
Call Stack (most recent call first):
  external/onnxruntime_external_deps.cmake:421 (FetchContent_Populate)
  CMakeLists.txt:699 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Proceeding with version: 23.5.26.0
-- Looking for strtof_l
-- Looking for strtof_l - found
-- Looking for strtoull_l
-- Looking for strtoull_l - found
-- Looking for realpath
-- Looking for realpath - found
-- CMAKE_CXX_FLAGS:  -ffunction-sections -fdata-sections -DCPUINFO_SUPPORTED
-- Found pybind11: /nix/store/g34jks9dra44yybyacr8xawm58qvq1wr-python3.13-pybind11-3.0.1-aarch64-unknown-linux-gnu/include (found version "")
Setting pybind11_lib
CMake Warning (dev) at /nix/store/fghz3rpkjwgwzlm3nlcpsdpz2j0l2422-source/CMakeLists.txt:106 (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.

This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found PythonInterp: /nix/store/62fdlzq1x1ak2lsxp4ij7ip5k9nia3hc-python3-3.13.7/bin/python3.13 (found version "3.13.7")
-- Using custom protoc executable
Generated: /build/source/build/_deps/onnx-build/onnx/onnx-ml.proto
Generated: /build/source/build/_deps/onnx-build/onnx/onnx-operators-ml.proto
Generated: /build/source/build/_deps/onnx-build/onnx/onnx-data.proto
--
-- ******** Summary ********
--   CMake version                     : 4.1.1
--   CMake command                     : /nix/store/2lrbixyw95bjg0x1aav648r0h0zsj2jl-cmake-4.1.1/bin/cmake
--   System                            : Linux
--   C++ compiler                      : /nix/store/ydfsrmypm495cn21gg5by9bibnkwikrs-aarch64-unknown-linux-gnu-gcc-wrapper-14.3.0/bin/aarch64-unknown-linux-gnu-g++
--   C++ compiler version              : 14.3.0
--   CXX flags                         :  -ffunction-sections -fdata-sections -DCPUINFO_SUPPORTED -Wnon-virtual-dtor
--   Build type                        : Release
--   Compile definitions               : EIGEN_MPL2_ONLY;_GNU_SOURCE;__STDC_FORMAT_MACROS
--   CMAKE_PREFIX_PATH                 :
--   CMAKE_INSTALL_PREFIX              : /nix/store/q9f5gb9cmvi8j9awckj90qshwfgxjhff-onnxruntime-aarch64-unknown-linux-gnu-1.22.2
--   CMAKE_MODULE_PATH                 : /build/source/cmake/external
--
--   ONNX version                      : 1.17.0
--   ONNX NAMESPACE                    : onnx
--   ONNX_USE_LITE_PROTO               : ON
--   USE_PROTOBUF_SHARED_LIBS          : OFF
--   Protobuf_USE_STATIC_LIBS          : ON
--   ONNX_DISABLE_EXCEPTIONS           : OFF
--   ONNX_DISABLE_STATIC_REGISTRATION  : OFF
--   ONNX_WERROR                       : OFF
--   ONNX_BUILD_TESTS                  : OFF
--   ONNX_BUILD_SHARED_LIBS            :
--   BUILD_SHARED_LIBS                 : OFF
--
--   Protobuf compiler                 :
--   Protobuf includes                 :
--   Protobuf libraries                :
--   BUILD_ONNX_PYTHON                 : OFF
-- dlpack is enabled.
-- C++11 support has been enabled by default.
-- Finished fetching external dependencies
-- Performing Test HAS_AMBIGUOUS_REVERSED_OPERATOR
-- Performing Test HAS_AMBIGUOUS_REVERSED_OPERATOR - Failed
-- Performing Test HAS_INTERFERENCE_SIZE
-- Performing Test HAS_INTERFERENCE_SIZE - Success
-- Performing Test HAS_BITWISE_INSTEAD_OF_LOGICAL
-- Performing Test HAS_BITWISE_INSTEAD_OF_LOGICAL - Failed
-- Performing Test HAS_CAST_FUNCTION_TYPE
-- Performing Test HAS_CAST_FUNCTION_TYPE - Success
-- Performing Test HAS_CATCH_VALUE
-- Performing Test HAS_CATCH_VALUE - Success
-- Performing Test HAS_CLASS_MEMACCESS
-- Performing Test HAS_CLASS_MEMACCESS - Success
-- Performing Test HAS_DANGLING_REFERENCE
-- Performing Test HAS_DANGLING_REFERENCE - Success
-- Performing Test HAS_DEPRECATED_ANON_ENUM_ENUM_CONVERSION
-- Performing Test HAS_DEPRECATED_ANON_ENUM_ENUM_CONVERSION - Failed
-- Performing Test HAS_DEPRECATED_BUILTINS
-- Performing Test HAS_DEPRECATED_BUILTINS - Failed
-- Performing Test HAS_DEPRECATED_COPY
-- Performing Test HAS_DEPRECATED_COPY - Success
-- Performing Test HAS_DEPRECATED_DECLARATIONS
-- Performing Test HAS_DEPRECATED_DECLARATIONS - Success
-- Performing Test HAS_DEPRECATED_LITERAL_OPERATOR
-- Performing Test HAS_DEPRECATED_LITERAL_OPERATOR - Failed
-- Performing Test HAS_DEPRECATED_THIS_CAPTURE
-- Performing Test HAS_DEPRECATED_THIS_CAPTURE - Failed
-- Performing Test HAS_ENUM_CONSTEXPR_CONVERSION
-- Performing Test HAS_ENUM_CONSTEXPR_CONVERSION - Failed
-- Performing Test HAS_FORMAT_TRUNCATION
-- Performing Test HAS_FORMAT_TRUNCATION - Success
-- Performing Test HAS_IGNORED_ATTRIBUTES
-- Performing Test HAS_IGNORED_ATTRIBUTES - Success
-- Performing Test HAS_MAYBE_UNINITIALIZED
-- Performing Test HAS_MAYBE_UNINITIALIZED - Success
-- Performing Test HAS_MISSING_BRACES
-- Performing Test HAS_MISSING_BRACES - Success
-- Performing Test HAS_NONNULL_COMPARE
-- Performing Test HAS_NONNULL_COMPARE - Success
-- Performing Test HAS_PARENTHESES
-- Performing Test HAS_PARENTHESES - Success
-- Performing Test HAS_SHORTEN_64_TO_32
-- Performing Test HAS_SHORTEN_64_TO_32 - Failed
-- Performing Test HAS_STRICT_ALIASING
-- Performing Test HAS_STRICT_ALIASING - Success
NVCC_ERROR =
NVCC_OUT = no such file or directory
-- Performing Test HAS_STRINGOP_OVERFLOW
-- Performing Test HAS_STRINGOP_OVERFLOW - Success
-- Performing Test HAS_TAUTOLOGICAL_POINTER_COMPARE
-- Performing Test HAS_TAUTOLOGICAL_POINTER_COMPARE - Failed
-- Performing Test HAS_UNDEFINED_VAR_TEMPLATE
-- Performing Test HAS_UNDEFINED_VAR_TEMPLATE - Failed
-- Performing Test HAS_UNUSED_BUT_SET_PARAMETER
-- Performing Test HAS_UNUSED_BUT_SET_PARAMETER - Success
-- Performing Test HAS_UNUSED_BUT_SET_VARIABLE
-- Performing Test HAS_UNUSED_BUT_SET_VARIABLE - Success
-- Performing Test HAS_UNUSED_VARIABLE
-- Performing Test HAS_UNUSED_VARIABLE - Success
-- Performing Test HAS_USELESS_CAST
-- Performing Test HAS_USELESS_CAST - Success
-- Looking for reallocarray
-- Looking for reallocarray - found
-- Performing Test HAS_ARM64_BFLOAT16
-- Performing Test HAS_ARM64_BFLOAT16 - Success
-- Performing Test HAS_ARM64_FLOAT16
-- Performing Test HAS_ARM64_FLOAT16 - Success
-- Could NOT find Git (missing: GIT_EXECUTABLE)
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- Python Build is enabled
-- Performing Test LINKER_SUPPORT_RPATH
-- Performing Test LINKER_SUPPORT_RPATH - Success
-- Configuring done (6.9s)
CMake Error at onnxruntime_unittests.cmake:72 (target_link_libraries):
  Target "onnxruntime_test_all" links to:

    GTest::gtest

  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_unittests.cmake:925 (AddTest)
  CMakeLists.txt:1868 (include)


CMake Error at onnxruntime_unittests.cmake:60 (target_link_libraries):
  Target "onnxruntime_shared_lib_test" links to:

    GTest::gtest

  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_unittests.cmake:1366 (AddTest)
  CMakeLists.txt:1868 (include)


CMake Error at onnxruntime_unittests.cmake:60 (target_link_libraries):
  Target "onnxruntime_global_thread_pools_test" links to:

    GTest::gtest

  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_unittests.cmake:1411 (AddTest)
  CMakeLists.txt:1868 (include)


CMake Error at onnxruntime_unittests.cmake:1489 (target_link_libraries):
  Target "onnxruntime_mlas_test" links to:

    GTest::gtest

  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:1868 (include)


CMake Error at onnxruntime_unittests.cmake:60 (target_link_libraries):
  Target "onnxruntime_customopregistration_test" links to:

    GTest::gtest

  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_unittests.cmake:1698 (AddTest)
  CMakeLists.txt:1868 (include)


CMake Error at onnxruntime_unittests.cmake:60 (target_link_libraries):
  Target "onnxruntime_logging_apis_test" links to:

    GTest::gtest

  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_unittests.cmake:1886 (AddTest)
  CMakeLists.txt:1868 (include)


-- Generating done (0.7s)
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_EXPORT_NO_PACKAGE_REGISTRY
    CMAKE_POLICY_DEFAULT_CMP0025
    FETCHCONTENT_QUIET
    PROTOC_EXE
    PYBIND11_PYTHONLIBS_OVERWRITE
    PYTHON_INCLUDE_DIR
    PYTHON_SITE_PACKAGES
    Protobuf_PROTOC_EXE
    Protobuf_PROTOC_EXECUTABLE


CMake Generate step failed.  Build files cannot be regenerated correctly.

@nixpkgs-ci nixpkgs-ci bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label Jan 17, 2026
@nixpkgs-ci nixpkgs-ci bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: cross-compilation Building packages on a different platform than they will be used on 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants