cargo-docs icon indicating copy to clipboard operation
cargo-docs copied to clipboard

`Failed to run custom build command` after upgrades to rust 1.81

Open op8867555 opened this issue 1 year ago • 0 comments

Hi, After I upgrade rust to 1.81, cargo docs reports serval errors like below and exits:

error: failed to run custom build command for `libc v0.2.155`
Caused by:
  could not execute process `.../build-script-build` (never-executed)
Caused by:
  No such file or directory (os error 2)

However, plain cargo doc/ builds works fine without errors, things I tried but no luck are:

  • add --target x86_64-unknown-linux-gnu to extra args
  • use the default linker instead of mold
  • disable sccache by not setting rustc-wrapper

Please let me know if you have any idea to solve this problem.

op8867555 avatar Sep 16 '24 03:09 op8867555