Skip to content

build error rv32imc which does not have atomics at all #326

Closed
@rminnich

Description

@rminnich

Please see oreboot/oreboot#189

we are compiling to the lowrisc/ibex cpu used in the opentitan earlygrey soc. This is an r32imc, i.e. no atomics.

This is similar to the just-closed issue for rv64, which had no atomic load-store for u16.

error: linking with rust-lld failed: exit code: 1
|
= note: "rust-lld" "-flavor" "gnu" "-L" "/home/ryan/repos/oreboot/src/mainboard/opentitan/crb/target/sysroot/lib/rustlib/riscv32imc-unknown-none-elf/lib" "/home/ryan/repos/oreboot/src/mainboard/opentitan/crb/target/riscv32imc-unknown-none-elf/release/deps/crb-d971ec7d0b119a72.crb.ae8f5638-cgu.3.rcgu.o" "-o" "/home/ryan/repos/oreboot/src/mainboard/opentitan/crb/target/riscv32imc-unknown-none-elf/release/deps/crb-d971ec7d0b119a72" "--gc-sections" "-L" "/home/ryan/repos/oreboot/src/mainboard/opentitan/crb/target/riscv32imc-unknown-none-elf/release/deps" "-L" "/home/ryan/repos/oreboot/src/mainboard/opentitan/crb/target/release/deps" "-L" "/home/ryan/repos/oreboot/src/mainboard/opentitan/crb/target/sysroot/lib/rustlib/riscv32imc-unknown-none-elf/lib" "-Bstatic" "/home/ryan/repos/oreboot/src/mainboard/opentitan/crb/target/sysroot/lib/rustlib/riscv32imc-unknown-none-elf/lib/libcompiler_builtins-ddf3439031b17ea4.rlib" "-Tlink.ld" "-Bdynamic"

= note: rust-lld: error: undefined symbol: __atomic_load_1
>>> referenced by compiler_builtins.bsqadl41-cgu.7
>>> compiler_builtins-ddf3439031b17ea4.compiler_builtins.bsqadl41-cgu.7.rcgu.o:(__llvm_memcpy_element_unordered_atomic_1) in archive /home/ryan/repos/oreboot/src/mainboard/opentitan/crb/target/sysroot/lib/rustlib/riscv32imc-unknown-none-elf/lib/libcompiler_builtins-ddf3439031b17ea4.rlib
>>> referenced by compiler_builtins.bsqadl41-cgu.7
>>> compiler_builtins-ddf3439031b17ea4.compiler_builtins.bsqadl41-cgu.7.rcgu.o:(__llvm_memmove_element_unordered_atomic_1) in archive /home/ryan/repos/oreboot/src/mainboard/opentitan/crb/target/sysroot/lib/rustlib/riscv32imc-unknown-none-elf/lib/libcompiler_builtins-ddf3439031b17ea4.rlib
>>> referenced by compiler_builtins.bsqadl41-cgu.7
>>> compiler_builtins-ddf3439031b17ea4.compiler_builtins.bsqadl41-cgu.7.rcgu.o:(__llvm_memmove_element_unordered_atomic_1) in archive /home/ryan/repos/oreboot/src/mainboard/opentitan/crb/target/sysroot/lib/rustlib/riscv32imc-unknown-none-elf/lib/libcompiler_builtins-ddf3439031b17ea4.rlib

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