Я следую этому учебному пособию, и когда он переходит к этапу установки 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