rust-lang / cargo

The Rust package manager
https://doc.rust-lang.org/cargo
Apache License 2.0
12.76k stars 2.42k forks source link

repeat install failures for reserde (author pointed me here) #10065

Closed commandline-be closed 2 years ago

commandline-be commented 2 years ago

Problem

cargo install reserde

Updating crates.io index Installing reserde v0.0.4 Compiling proc-macro2 v1.0.32 Compiling unicode-xid v0.2.2 Compiling syn v1.0.81 Compiling serde_derive v1.0.130 Compiling serde v1.0.130 Compiling version_check v0.9.3 Compiling proc-macro-hack v0.5.19 Compiling autocfg v1.0.1 Compiling unicode-segmentation v1.8.0 Compiling libc v0.2.107 Compiling fnv v1.0.7 Compiling static_assertions v1.1.0 Compiling hashbrown v0.11.2 Compiling utf8-ranges v1.0.4 Compiling regex-syntax v0.6.25 Compiling beef v0.5.1 Compiling ryu v1.0.5 Compiling memchr v2.4.1 Compiling wyz v0.2.0 Compiling lazy_static v1.4.0 Compiling unicode-width v0.1.9 Compiling cervine v0.0.6 Compiling gnaw v0.0.2 Compiling debugless-unwrap v0.0.4 Compiling itoa v0.4.8 Compiling percent-encoding v2.1.0 Compiling enum_properties v0.3.0 Compiling strsim v0.8.0 Compiling matches v0.1.9 Compiling tap v1.0.1 Compiling ansi_term v0.11.0 Compiling vec_map v0.8.2 Compiling linked-hash-map v0.5.4 Compiling bitflags v1.3.2 Compiling serde_json v1.0.69 Compiling either v1.6.1 Compiling dtoa v0.4.8 Compiling paste v1.0.6 Compiling half v1.8.2 Compiling joinery v2.1.0 error: failed to run custom build command for serde_derive v1.0.130

Caused by: could not execute process /tmp/cargo-installXelQ41/release/build/serde_derive-f96c5142af5abcf7/build-script-build (never executed)

Caused by: Permission denied (os error 13) warning: build failed, waiting for other jobs to finish... error: failed to compile reserde v0.0.4, intermediate artifacts can be found at /tmp/cargo-installXelQ41

Caused by: build failed

Steps

  1. cargo install reserde

Possible Solution(s)

unknown

Notes

the author suggested to take this up with team cargo following issue 36

Version

cargo version --verbose
cargo 1.55.0 (32da73ab1 2021-08-23)
release: 1.55.0
commit-hash: 32da73ab19417aa89686e1d85c1440b72fdf877d
commit-date: 2021-08-23
ehuss commented 2 years ago

Can you provide some more information? Such as:

commandline-be commented 2 years ago

hey, thanks for the excellent questions

the /tmp is indeed set to no exec, there is no explicit mention this is the root cause but i can check

okay, that's it, thanks, i could not deduce this from the information i had available i assume this could be a request for improvement to alert on what specific permission denied origin is causing this error message

commandline-be commented 2 years ago

closing

Tamschi commented 2 years ago

It may be a good idea to (also) suggest the --target-dir option in a case like this, maybe with a link to https://doc.rust-lang.org/cargo/reference/config.html#buildtarget-dir for how to set that up globally.

Is there a way to configure a fallback only when not building a local project?