briansmith / ring

Safe, fast, small crypto using Rust
Other
3.68k stars 693 forks source link

Build failed on riscv64gc-unknown-linux-gnu arch #1967

Closed LiveMediaTools closed 3 months ago

LiveMediaTools commented 5 months ago

My build is on github action:

https://github.com/harlancc/xiu/actions/runs/8047131550/job/21975774198

mjovanc commented 5 months ago

I have similar issue using. Compiles great on arm64 m3 chip, but not on GitHub Actions using "ubuntu-latest". I get:

warning: ring@0.17.8: error: UnknownOperatingSystem

error: failed to run custom build command for `ring v0.17.8`

Screenshot 2024-03-13 at 12 53 50

briansmith commented 3 months ago

@LiveMediaTools's build log contains:

panicked at /cargo/registry/src/index.crates.io-6f17d22bba15001f/ring-0.16.20/build.rs:358:10:

The solution is to upgrade your dependencies to ones that are using ring 0.17.x.

@mjovanc It sounds like your issue is different from this one.

I'm going to close this since the issue was due to trying to use ring 0.16 on a target for which we added support in 0.17.