onnxruntime icon indicating copy to clipboard operation
onnxruntime copied to clipboard

[Build] ExternalProject failure in CMake

Open waarmond opened this issue 1 year ago • 2 comments

Describe the issue

CMake configuration fails, an external project hash is not accepted by CMake (3.29.0)

Urgency

No response

Target platform

ArchLinux

Build script

cmake -S onnxruntime/cmake -B build see https://gitlab.archlinux.org/archlinux/packaging/packages/onnxruntime/-/blob/main/PKGBUILD?ref_type=heads for full details

Error / output

CMake Error at /usr/share/cmake/Modules/ExternalProject.cmake:3069 (message):
  URL_HASH is set to

    SHA1=85da3caa60eb2b148613b443fbc2bfdc30689965;add_library;(;nsync::nsync_cpp;ALIAS;nsync_cpp;)

  but must be ALGO=value where ALGO is

    MD5|SHA1|SHA224|SHA256|SHA384|SHA512|SHA3_224|SHA3_256|SHA3_384|SHA3_512

  and value is a hex string.

Visual Studio Version

No response

GCC / Compiler Version

13.2.1

waarmond avatar Mar 28 '24 17:03 waarmond

I noticed that this sed command has some of the same text that shows up in the bad URL_HASH value: https://gitlab.archlinux.org/archlinux/packaging/packages/onnxruntime/-/blob/main/PKGBUILD?ref_type=heads#L72-75

Can you verify that the patched cmake/external/onnxruntime_external_deps.cmake file looks valid?

edgchen1 avatar Mar 29 '24 18:03 edgchen1

#20413

snnn avatar Apr 22 '24 21:04 snnn

nsync is removed.

snnn avatar Oct 21 '24 22:10 snnn