Open
Description
when i try cargo xbuild
. I got the following error.
error: failed to select a version for `compiler_builtins`.
... required by package `alloc v0.0.0 (/var/folders/sx/_9d_8gxx7659flxmnmblkzq00000gp/T/cargo-xbuildVFVAZL)`
versions that meet the requirements `^0.1.0` (locked to 0.1.159) are: 0.1.159
package `alloc` depends on `compiler_builtins` with feature `core` but `compiler_builtins` does not have that feature.
An optional dependency with that name exists, but that dependency uses the "dep:" syntax in the features table, so it does not have an implicit feature with that name.
Here is my .cargo/config
[build]
target = "aarch64_custom.json"
[unstable]
build-std = ["core", "compiler_builtins"]
build-std-features = ["compiler-builtins-mem"]
Here is my aarch64_custom.json
{
"llvm-target": "aarch64-unknown-none",
"data-layout": "e-m:e-p270:32:32-p271:32:32-p272:64:64-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128-Fn32",
"arch": "aarch64",
"target-endian": "little",
"target-pointer-width": "64",
"target-c-int-width": "32",
"os": "none",
"executables": true,
"linker-flavor": "ld.lld",
"linker": "rust-lld",
"panic-strategy": "abort",
"disable-redzone": true,
"features": "+strict-align,+neon,+fp-armv8",
"max-atomic-width": "128"
}
Here is my Cargo.toml
[package]
name = "rust-os"
version = "0.1.0"
authors = ["clarence <[email protected]>"]
[profile.dev]
panic = "abort"
[profile.release]
panic = "abort"
[dependencies]
bootloader = "0.11.10"
[unstable]
build-std = ["core", "alloc", "compiler_builtins"]
build-std-features = ["compiler-builtins-mem"]
rustc 1.89.0-nightly (16d2276fa 2025-05-16)
cargo 1.89.0-nightly (47c911e9e 2025-05-14)
Metadata
Metadata
Assignees
Labels
No labels