我正在遵循this教程,当它涉及到安装cargo-xbuild的步骤时,出现错误。
不过,错误并不总是相同的。似乎选择了一个随机软件包,但无法构建它。 Ryu,syn,serde和libc是最常见的。有时是软件包的组合。
这是两次单独尝试的输出:
tre@pop-os ~/D/P/R/t_os> cargo install cargo-xbuild 101 master?
Updating crates.io index
Installing cargo-xbuild v0.5.12
Compiling proc-macro2 v0.4.30
Compiling unicode-xid v0.1.0
Compiling syn v0.15.39
Compiling ryu v1.0.0
Compiling serde v1.0.94
Compiling libc v0.2.58
Compiling semver-parser v0.7.0
Compiling itoa v0.4.4
Compiling cargo-xbuild v0.5.12
Compiling error-chain v0.11.0
Compiling remove_dir_all v0.5.2
Compiling rustc-serialize v0.3.24
Compiling same-file v0.1.3
Compiling semver v0.1.20
Compiling error-chain v0.7.2
error: failed to run custom build command for `ryu v1.0.0`
Caused by:
process didn't exit successfully: `/tmp/cargo-install2U7Cku/release/build/ryu-1fc49495c25c7078/build-script-build` (signal: 11, SIGSEGV: invalid memory reference)
warning: build failed, waiting for other jobs to finish...
error: failed to compile `cargo-xbuild v0.5.12`, intermediate artifacts can be found at `/tmp/cargo-install2U7Cku`
Caused by:
build failed
tre@pop-os ~/D/P/R/t_os> cargo install cargo-xbuild 130 master?
Updating crates.io index
Installing cargo-xbuild v0.5.12
Compiling proc-macro2 v0.4.30
Compiling unicode-xid v0.1.0
Compiling syn v0.15.39
Compiling libc v0.2.58
Compiling ryu v1.0.0
Compiling serde v1.0.94
Compiling itoa v0.4.4
Compiling semver-parser v0.7.0
Compiling error-chain v0.11.0
Compiling semver v0.1.20
Compiling cargo-xbuild v0.5.12
Compiling remove_dir_all v0.5.2
Compiling rustc-serialize v0.3.24
Compiling same-file v0.1.3
Compiling error-chain v0.7.2
error: failed to run custom build command for `libc v0.2.58`
Caused by:
process didn't exit successfully: `/tmp/cargo-installeVkRem/release/build/libc-3d96c9ed0826a727/build-script-build` (signal: 11, SIGSEGV: invalid memory reference)
warning: build failed, waiting for other jobs to finish...
error: failed to compile `cargo-xbuild v0.5.12`, intermediate artifacts can be found at `/tmp/cargo-installeVkRem`
Caused by:
build failed