Closed
Description
Right now, rust-lang/rust uses cc@1.79. If I attempt to upgrade to cc@1.84, I get a bunch of errors from bootstrap.
Building stage0 library artifacts (x86_64-unknown-linux-gnu)
Downloaded cc v1.0.84
Downloaded 1 crate (74.9 KB) in 0.53s
Compiling libc v0.2.150
Compiling core v0.0.0 (/home/wesley/rust/library/core)
Compiling memchr v2.5.0
Compiling std v0.0.0 (/home/wesley/rust/library/std)
error: unexpected `cfg` condition name
--> library/core/src/num/mod.rs:29:11
|
29 | #[cfg(not(no_fp_fmt_parse))]
| ^^^^^^^^^^^^^^^
|
= note: `-D unexpected-cfgs` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unexpected_cfgs)]`
error: unexpected `cfg` condition name
--> library/core/src/num/mod.rs:31:11
|
31 | #[cfg(not(no_fp_fmt_parse))]
| ^^^^^^^^^^^^^^^
error: unexpected `cfg` condition name
--> library/core/src/num/mod.rs:33:11
|
33 | #[cfg(not(no_fp_fmt_parse))]
| ^^^^^^^^^^^^^^^
error: unexpected `cfg` condition name
--> library/core/src/num/mod.rs:35:11
|
35 | #[cfg(not(no_fp_fmt_parse))]
| ^^^^^^^^^^^^^^^
error: unexpected `cfg` condition name
--> library/core/src/num/mod.rs:56:11
|
56 | #[cfg(not(no_fp_fmt_parse))]
| ^^^^^^^^^^^^^^^
error: unexpected `cfg` condition value
--> library/core/src/mem/mod.rs:733:19
|
733 | #[cfg(not(any(target_arch = "spirv")))]
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `target_arch` are: `aarch64`, `arm`, `avr`, `bpf`, `csky`, `hexagon`, `loongarch64`, `m68k`, `mips`, `mips32r6`, `mips64`, `mips64r6`, `msp430`, `nvptx64`, `powerpc`, `powerpc64`, `riscv32`, `riscv64`, `s390x`, `sparc`, `sparc64`, `wasm32`, `wasm64`, `x86`, `x86_64`
error: unexpected `cfg` condition value
--> library/core/src/ffi/mod.rs:244:5
|
244 | target_arch = "asmjs",
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `target_arch` are: `aarch64`, `arm`, `avr`, `bpf`, `csky`, `hexagon`, `loongarch64`, `m68k`, `mips`, `mips32r6`, `mips64`, `mips64r6`, `msp430`, `nvptx64`, `powerpc`, `powerpc64`, `riscv32`, `riscv64`, `s390x`, `sparc`, `sparc64`, `wasm32`, `wasm64`, `x86`, `x86_64`
error: unexpected `cfg` condition value
--> library/core/src/ffi/mod.rs:273:5
|
273 | target_arch = "asmjs",
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `target_arch` are: `aarch64`, `arm`, `avr`, `bpf`, `csky`, `hexagon`, `loongarch64`, `m68k`, `mips`, `mips32r6`, `mips64`, `mips64r6`, `msp430`, `nvptx64`, `powerpc`, `powerpc64`, `riscv32`, `riscv64`, `s390x`, `sparc`, `sparc64`, `wasm32`, `wasm64`, `x86`, `x86_64`
error: unexpected `cfg` condition value
--> library/core/src/ffi/mod.rs:434:5
|
434 | target_arch = "asmjs",
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `target_arch` are: `aarch64`, `arm`, `avr`, `bpf`, `csky`, `hexagon`, `loongarch64`, `m68k`, `mips`, `mips32r6`, `mips64`, `mips64r6`, `msp430`, `nvptx64`, `powerpc`, `powerpc64`, `riscv32`, `riscv64`, `s390x`, `sparc`, `sparc64`, `wasm32`, `wasm64`, `x86`, `x86_64`
error: unexpected `cfg` condition value
--> library/core/src/ffi/mod.rs:464:9
|
464 | not(target_arch = "asmjs"),
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `target_arch` are: `aarch64`, `arm`, `avr`, `bpf`, `csky`, `hexagon`, `loongarch64`, `m68k`, `mips`, `mips32r6`, `mips64`, `mips64r6`, `msp430`, `nvptx64`, `powerpc`, `powerpc64`, `riscv32`, `riscv64`, `s390x`, `sparc`, `sparc64`, `wasm32`, `wasm64`, `x86`, `x86_64`
error: unexpected `cfg` condition value
--> library/core/src/ffi/mod.rs:398:9
|
398 | target_arch = "asmjs",
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `target_arch` are: `aarch64`, `arm`, `avr`, `bpf`, `csky`, `hexagon`, `loongarch64`, `m68k`, `mips`, `mips32r6`, `mips64`, `mips64r6`, `msp430`, `nvptx64`, `powerpc`, `powerpc64`, `riscv32`, `riscv64`, `s390x`, `sparc`, `sparc64`, `wasm32`, `wasm64`, `x86`, `x86_64`
error: unexpected `cfg` condition value
--> library/core/src/ffi/mod.rs:416:13
|
416 | not(target_arch = "asmjs"),
| ^^^^^^^^^^^^^^^^^^^^^
|
= note: expected values for `target_arch` are: `aarch64`, `arm`, `avr`, `bpf`, `csky`, `hexagon`, `loongarch64`, `m68k`, `mips`, `mips32r6`, `mips64`, `mips64r6`, `msp430`, `nvptx64`, `powerpc`, `powerpc64`, `riscv32`, `riscv64`, `s390x`, `sparc`, `sparc64`, `wasm32`, `wasm64`, `x86`, `x86_64`
error: unexpected `cfg` condition name
--> library/core/src/fmt/mod.rs:16:11
|
16 | #[cfg(not(no_fp_fmt_parse))]
| ^^^^^^^^^^^^^^^
error: unexpected `cfg` condition name
--> library/core/src/fmt/mod.rs:18:7
|
18 | #[cfg(no_fp_fmt_parse)]
| ^^^^^^^^^^^^^^^
error: unexpected `cfg` condition name
--> library/core/src/../../stdarch/crates/core_arch/src/x86/mod.rs:782:11
|
782 | #[cfg(not(stdarch_intel_sde))]
| ^^^^^^^^^^^^^^^^^
error: unexpected `cfg` condition name
--> library/core/src/../../stdarch/crates/core_arch/src/x86/mod.rs:784:11
|
784 | #[cfg(not(stdarch_intel_sde))]
| ^^^^^^^^^^^^^^^^^
error: unexpected `cfg` condition name
--> library/core/src/../../stdarch/crates/core_arch/src/x86/mod.rs:787:11
|
787 | #[cfg(not(stdarch_intel_sde))]
| ^^^^^^^^^^^^^^^^^
error: unexpected `cfg` condition name
--> library/core/src/../../stdarch/crates/core_arch/src/x86/mod.rs:789:11
|
789 | #[cfg(not(stdarch_intel_sde))]
| ^^^^^^^^^^^^^^^^^
error: could not compile `core` (lib) due to 18 previous errors
I believe the issue is the dependency on libc
Line 24 in 802399f
which does not activate the rustc-dep-of-std
feature in this case.
Metadata
Metadata
Assignees
Labels
No labels