Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Build] ExternalProject failure in CMake #20129

Closed
waarmond opened this issue Mar 28, 2024 · 3 comments
Closed

[Build] ExternalProject failure in CMake #20129

waarmond opened this issue Mar 28, 2024 · 3 comments
Assignees
Labels
build build issues; typically submitted using template

Comments

@waarmond
Copy link

waarmond commented Mar 28, 2024

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 waarmond added the build build issues; typically submitted using template label Mar 28, 2024
@snnn snnn self-assigned this Mar 28, 2024
@edgchen1
Copy link
Contributor

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?

@snnn
Copy link
Member

snnn commented Apr 22, 2024

#20413

@snnn snnn closed this as completed Oct 18, 2024
@snnn snnn reopened this Oct 18, 2024
@snnn
Copy link
Member

snnn commented Oct 21, 2024

nsync is removed.

@snnn snnn closed this as completed Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build build issues; typically submitted using template
Projects
None yet
Development

No branches or pull requests

3 participants