[GH-ISSUE #238] Fail to install dufs on my RISC-V board #122

Closed
opened 2026-04-08 16:50:31 +03:00 by zhus · 2 comments
Owner

Originally created by @ifsheldon on GitHub (Jun 19, 2023).
Original GitHub issue: https://github.com/sigoden/dufs/issues/238

Problem
I failed to install duds on my RISC-V board. And I think this is due to ring.

While you cannot fix this in a simple way, maybe you can add a feature gate to not compile all the code related to TLS which may indirectly depend on ring? Because I want to use dufs in my private network, I don't need secure connections.

Log
After cargo install dufs, I got the following

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

Caused by:
  process didn't exit successfully: `/tmp/cargo-installpE8QKz/release/build/ring-77603510dd18e4b3/build-script-build` (exit status: 101)
  --- stderr
  thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /home/user/.cargo/registry/src/mirrors.sjtug.sjtu.edu.cn-7a04d2510079875b/ring-0.16.20/build.rs:358:10
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to compile `dufs v0.34.2`, intermediate artifacts can be found at `/tmp/cargo-installpE8QKz`

Environment:

  • Dufs version:
  • Browser/Webdav Info:
  • OS Info: Debian RISC-V port
Originally created by @ifsheldon on GitHub (Jun 19, 2023). Original GitHub issue: https://github.com/sigoden/dufs/issues/238 **Problem** I failed to install duds on my RISC-V board. And I think this is due to `ring`. While you cannot fix this in a simple way, maybe you can add a feature gate to not compile all the code related to TLS which may indirectly depend on `ring`? Because I want to use `dufs` in my private network, I don't need secure connections. <!-- A clear and concise description of what the bug is. --> **Log** After `cargo install dufs`, I got the following ``` error: failed to run custom build command for `ring v0.16.20` Caused by: process didn't exit successfully: `/tmp/cargo-installpE8QKz/release/build/ring-77603510dd18e4b3/build-script-build` (exit status: 101) --- stderr thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /home/user/.cargo/registry/src/mirrors.sjtug.sjtu.edu.cn-7a04d2510079875b/ring-0.16.20/build.rs:358:10 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace warning: build failed, waiting for other jobs to finish... error: failed to compile `dufs v0.34.2`, intermediate artifacts can be found at `/tmp/cargo-installpE8QKz` ``` **Environment:** - Dufs version: - Browser/Webdav Info: - OS Info: Debian RISC-V port
zhus closed this issue 2026-04-08 16:50:31 +03:00
Author
Owner

@sigoden commented on GitHub (Jun 20, 2023):

you can try cargo install --no-default-features dufs.

Note: The tls feature of dufs depends on rustls, and rustls depends on ring. But ring does not support risc-v.

<!-- gh-comment-id:1597840387 --> @sigoden commented on GitHub (Jun 20, 2023): you can try `cargo install --no-default-features dufs`. Note: The tls feature of dufs depends on rustls, and rustls depends on ring. But ring does not support risc-v.
Author
Owner

@ifsheldon commented on GitHub (Jun 20, 2023):

Thanks a lot! I got it working! I suggest to add a tip in README to tell users that dufs can be compiled without TLS so possibly many many arch can run it without ring getting in the way.

<!-- gh-comment-id:1599067174 --> @ifsheldon commented on GitHub (Jun 20, 2023): Thanks a lot! I got it working! I suggest to add a tip in README to tell users that dufs can be compiled without TLS so possibly many many arch can run it without ring getting in the way.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#122