Make sure the minimum rust version supported is more evident
Closed this issue · 1 comments
rene-dev commented
installation fails on ubuntu 22.04 with use of unstable library feature 'scoped_threads'
cargo 1.61.0
rustc 1.61.0
cargo install cargo-c
Updating crates.io index
Downloaded cargo-c v0.9.14+cargo-0.66
Downloaded 1 crate (36.1 KB) in 0.48s
Installing cargo-c v0.9.14+cargo-0.66
Downloaded atty v0.2.14
Downloaded crc32fast v1.3.2
Downloaded combine v4.6.6
Downloaded flate2 v1.0.24
Downloaded cfg-if v1.0.0
Downloaded hex v0.4.3
Downloaded git2-curl v0.16.0
Downloaded pathdiff v0.2.1
Downloaded rustfix v0.6.1
Downloaded humantime v2.1.0
Downloaded form_urlencoded v1.1.0
Downloaded cbindgen v0.24.3
Downloaded static_assertions v1.1.0
Downloaded im-rc v15.1.0
Downloaded heck v0.4.0
Downloaded idna v0.3.0
Downloaded clap v3.2.23
Downloaded lazy_static v1.4.0
Downloaded fnv v1.0.7
Downloaded either v1.8.0
Downloaded crates-io v0.34.0
Downloaded clap_lex v0.2.4
Downloaded globset v0.4.9
Downloaded itertools v0.10.5
Downloaded foreign-types-shared v0.1.1
Downloaded fastrand v1.8.0
Downloaded foreign-types v0.3.2
Downloaded git2 v0.15.0
Downloaded env_logger v0.9.3
Downloaded once_cell v1.16.0
Downloaded hex v0.3.2
Downloaded clap_derive v3.2.18
Downloaded cargo-platform v0.1.2
Downloaded cc v1.0.74
Downloaded bytes v1.2.1
Downloaded bytesize v1.1.0
Downloaded bitmaps v2.1.0
Downloaded vte_generate_state_changes v0.1.1
Downloaded remove_dir_all v0.5.3
Downloaded proc-macro2 v1.0.47
Downloaded unicode-bidi v0.3.8
Downloaded bstr v0.2.17
Downloaded unicode-ident v1.0.5
Downloaded openssl v0.10.42
Downloaded regex v1.7.0
Downloaded kstring v2.0.0
Downloaded home v0.5.4
Downloaded curl v0.4.44
Downloaded cargo-util v0.2.2
Downloaded arrayvec v0.5.2
Downloaded itoa v1.0.4
Downloaded ignore v0.4.18
Downloaded rand_core v0.6.4
Downloaded proc-macro-error v1.0.4
Downloaded openssl-probe v0.1.5
Downloaded jobserver v0.1.25
Downloaded quote v1.0.21
Downloaded percent-encoding v2.2.0
Downloaded same-file v1.0.6
Downloaded serde_derive v1.0.147
Downloaded indexmap v1.9.1
Downloaded serde_json v1.0.87
Downloaded shell-escape v0.1.5
Downloaded lazycell v1.3.0
Downloaded filetime v0.2.18
Downloaded syn v1.0.103
Downloaded strsim v0.10.0
Downloaded ryu v1.0.11
Downloaded os_str_bytes v6.3.1
Downloaded socket2 v0.4.7
Downloaded rustc-workspace-hack v1.0.0
Downloaded rand_xoshiro v0.6.0
Downloaded crypto-hash v0.3.4
Downloaded log v0.4.17
Downloaded anyhow v1.0.66
Downloaded opener v0.5.0
Downloaded bitflags v1.3.2
Downloaded regex-automata v0.1.10
Downloaded tar v0.4.38
Downloaded serde_ignored v0.1.5
Downloaded strip-ansi-escapes v0.1.1
Downloaded sized-chunks v0.6.5
Downloaded semver v1.0.14
Downloaded serde v1.0.147
Downloaded pkg-config v0.3.26
Downloaded proc-macro-error-attr v1.0.4
Downloaded hashbrown v0.12.3
Downloaded aho-corasick v0.7.19
Downloaded toml v0.5.9
Downloaded vte v0.10.1
Downloaded unicode-xid v0.2.4
Downloaded unicode-width v0.1.10
Downloaded termcolor v1.1.3
Downloaded tinyvec v1.6.0
Downloaded thread_local v1.1.4
Downloaded textwrap v0.16.0
Downloaded typenum v1.15.0
Downloaded walkdir v2.3.2
Downloaded tinyvec_macros v0.1.0
Downloaded tempfile v3.3.0
Downloaded autocfg v1.1.0
Downloaded version_check v0.9.4
Downloaded toml_edit v0.14.4
Downloaded url v2.3.1
Downloaded utf8parse v0.2.0
Downloaded libc v0.2.137
Downloaded crossbeam-utils v0.8.12
Downloaded glob v0.3.0
Downloaded unicode-normalization v0.1.22
Downloaded openssl-macros v0.1.0
Downloaded os_info v3.5.1
Downloaded libssh2-sys v0.2.23
Downloaded openssl-sys v0.9.77
Downloaded memchr v2.5.0
Downloaded regex-syntax v0.6.28
Downloaded cargo v0.66.0
Downloaded libz-sys v1.1.8
Downloaded libgit2-sys v0.14.0+1.5.0
Downloaded curl-sys v0.4.59+curl-7.86.0
Downloaded libnghttp2-sys v0.1.7+1.45.0
Downloaded 120 crates (20.6 MB) in 2.49s (largest was `libnghttp2-sys` at 4.5 MB)
Compiling libc v0.2.137
Compiling proc-macro2 v1.0.47
Compiling pkg-config v0.3.26
Compiling quote v1.0.21
Compiling unicode-ident v1.0.5
Compiling autocfg v1.1.0
Compiling syn v1.0.103
Compiling cfg-if v1.0.0
Compiling serde_derive v1.0.147
Compiling version_check v0.9.4
Compiling serde v1.0.147
Compiling memchr v2.5.0
Compiling log v0.4.17
Compiling crc32fast v1.3.2
Compiling tinyvec_macros v0.1.0
Compiling once_cell v1.16.0
Compiling bitflags v1.3.2
Compiling unicode-bidi v0.3.8
Compiling percent-encoding v2.2.0
Compiling typenum v1.15.0
Compiling serde_json v1.0.87
Compiling anyhow v1.0.66
Compiling lazy_static v1.4.0
Compiling regex-syntax v0.6.28
Compiling ryu v1.0.11
Compiling hashbrown v0.12.3
Compiling foreign-types-shared v0.1.1
Compiling itoa v1.0.4
Compiling curl v0.4.44
Compiling openssl-probe v0.1.5
Compiling regex-automata v0.1.10
Compiling openssl v0.10.42
Compiling os_str_bytes v6.3.1
Compiling crossbeam-utils v0.8.12
Compiling heck v0.4.0
Compiling same-file v1.0.6
Compiling fastrand v1.8.0
Compiling termcolor v1.1.3
Compiling remove_dir_all v0.5.3
Compiling either v1.8.0
Compiling utf8parse v0.2.0
Compiling textwrap v0.16.0
Compiling arrayvec v0.5.2
Compiling fnv v1.0.7
Compiling semver v1.0.14
Compiling hex v0.3.2
Compiling static_assertions v1.1.0
Compiling strsim v0.10.0
Compiling bytes v1.2.1
Compiling rand_core v0.6.4
Compiling shell-escape v0.1.5
Compiling cbindgen v0.24.3
Compiling humantime v2.1.0
Compiling hex v0.4.3
Compiling unicode-width v0.1.10
Compiling lazycell v1.3.0
Compiling bytesize v1.1.0
Compiling home v0.5.4
Compiling rustc-workspace-hack v1.0.0
Compiling pathdiff v0.2.1
Compiling unicode-xid v0.2.4
Compiling glob v0.3.0
Compiling cc v1.0.74
Compiling tinyvec v1.6.0
Compiling form_urlencoded v1.1.0
Compiling thread_local v1.1.4
Compiling proc-macro-error-attr v1.0.4
Compiling proc-macro-error v1.0.4
Compiling im-rc v15.1.0
Compiling foreign-types v0.3.2
Compiling indexmap v1.9.1
Compiling walkdir v2.3.2
Compiling clap_lex v0.2.4
Compiling kstring v2.0.0
Compiling itertools v0.10.5
Compiling rand_xoshiro v0.6.0
Compiling unicode-normalization v0.1.22
Compiling aho-corasick v0.7.19
Compiling bstr v0.2.17
Compiling combine v4.6.6
Compiling jobserver v0.1.25
Compiling filetime v0.2.18
Compiling atty v0.2.14
Compiling socket2 v0.4.7
Compiling tempfile v3.3.0
Compiling bitmaps v2.1.0
Compiling idna v0.3.0
Compiling opener v0.5.0
Compiling tar v0.4.38
Compiling regex v1.7.0
Compiling vte_generate_state_changes v0.1.1
Compiling url v2.3.1
Compiling vte v0.10.1
Compiling globset v0.4.9
Compiling env_logger v0.9.3
Compiling ignore v0.4.18
Compiling openssl-sys v0.9.77
Compiling libz-sys v1.1.8
Compiling libnghttp2-sys v0.1.7+1.45.0
Compiling libssh2-sys v0.2.23
Compiling curl-sys v0.4.59+curl-7.86.0
Compiling libgit2-sys v0.14.0+1.5.0
Compiling strip-ansi-escapes v0.1.1
Compiling sized-chunks v0.6.5
Compiling flate2 v1.0.24
Compiling cargo v0.66.0
Compiling openssl-macros v0.1.0
Compiling clap_derive v3.2.18
Compiling clap v3.2.23
Compiling crypto-hash v0.3.4
Compiling cargo-util v0.2.2
Compiling toml v0.5.9
Compiling os_info v3.5.1
Compiling cargo-platform v0.1.2
Compiling toml_edit v0.14.4
Compiling serde_ignored v0.1.5
Compiling rustfix v0.6.1
Compiling crates-io v0.34.0
Compiling git2 v0.15.0
Compiling git2-curl v0.16.0
error[E0658]: use of unstable library feature 'scoped_threads'
--> /home/rene/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-0.66.0/src/cargo/core/compiler/job_queue.rs:58:25
|
58 | use std::thread::{self, Scope};
| ^^^^^
|
= note: see issue #93203 <https://github.com/rust-lang/rust/issues/93203> for more information
error[E0658]: use of unstable library feature 'scoped_threads'
--> /home/rene/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-0.66.0/src/cargo/core/compiler/job_queue.rs:559:9
|
559 | thread::scope(
| ^^^^^^^^^^^^^
|
= note: see issue #93203 <https://github.com/rust-lang/rust/issues/93203> for more information
error[E0658]: use of unstable library feature 'scoped_threads'
--> /home/rene/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-0.66.0/src/cargo/core/compiler/job_queue.rs:573:20
|
573 | scope: &'s Scope<'s, '_>,
| ^^^^^^^^^^^^^
|
= note: see issue #93203 <https://github.com/rust-lang/rust/issues/93203> for more information
error[E0658]: use of unstable library feature 'scoped_threads'
--> /home/rene/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-0.66.0/src/cargo/core/compiler/job_queue.rs:824:20
|
824 | scope: &'s Scope<'s, '_>,
| ^^^^^^^^^^^^^
|
= note: see issue #93203 <https://github.com/rust-lang/rust/issues/93203> for more information
error[E0658]: use of unstable library feature 'scoped_threads'
--> /home/rene/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-0.66.0/src/cargo/core/compiler/job_queue.rs:1010:83
|
1010 | fn run<'s>(&mut self, unit: &Unit, job: Job, cx: &Context<'_, '_>, scope: &'s Scope<'s, '_>) {
| ^^^^^^^^^^^^^
|
= note: see issue #93203 <https://github.com/rust-lang/rust/issues/93203> for more information
error[E0658]: use of unstable library feature 'scoped_threads'
--> /home/rene/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-0.66.0/src/cargo/core/compiler/job_queue.rs:1085:23
|
1085 | scope.spawn(move || {
| ^^^^^
|
= note: see issue #93203 <https://github.com/rust-lang/rust/issues/93203> for more information
For more information about this error, try `rustc --explain E0658`.
error: could not compile `cargo` due to 6 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile `cargo-c v0.9.14+cargo-0.66`, intermediate artifacts can be found at `/tmp/cargo-install9OTlJ3`
lu-zero commented
You should use a rustc matching the cargo version reported. I should set the version in cargo now that is possible :)