Skip to content

risc-v build error #3

@451846939

Description

@451846939

rust-toolchain:
[toolchain]
profile = "minimal"
channel = "nightly-2024-05-02"
components = ["rust-src", "llvm-tools", "rustfmt", "clippy"]
targets = ["x86_64-unknown-none", "riscv64gc-unknown-none-elf", "aarch64-unknown-none", "aarch64-unknown-none-softfloat"]

build error
error[E0658]: const operands for inline assembly are unstable
--> /Users/xxx/.cargo/registry/src/rsproxy.cn-0dccff568467c15b/kernel_guard-0.1.2/src/arch/riscv.rs:10:60
|
10 | unsafe { asm!("csrrc {}, sstatus, {}", out(reg) flags, const SIE_BIT) };
| ^^^^^^^^^^^^^
|
= note: see issue #93332 rust-lang/rust#93332 for more information
= help: add #![feature(asm_const)] to the crate attributes to enable
= note: this compiler was built on 2024-05-01; consider upgrading it if it is out of date

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions