lighkLife / embassy-cn

Embassy 中文文档
https://lighklife.github.io/embassy-cn
1 stars 4 forks source link

build error with undefined symbol: _critical_section_1_0_release #5

Open lighkLife opened 12 months ago

lighkLife commented 12 months ago
error: linking with `rust-lld` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/home/yangkh/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/yangkh/.local"
  = note: rust-lld: error: undefined symbol: _critical_section_1_0_release
          >>> referenced by arceos_async.82669b9a389f8ff1-cgu.0
          >>>               /home/yangkh/RustroverProjects/arceos/target/riscv64gc-unknown-none-elf/release/deps/arceos_async-de373d6f5f643521.arceos_as)
          >>> referenced by arceos_async.82669b9a389f8ff1-cgu.0
          >>>               /home/yangkh/RustroverProjects/arceos/target/riscv64gc-unknown-none-elf/release/deps/arceos_async-de373d6f5f643521.arceos_as)

          rust-lld: error: undefined symbol: _critical_section_1_0_acquire
          >>> referenced by arceos_async.82669b9a389f8ff1-cgu.0
          >>>               /home/yangkh/RustroverProjects/arceos/target/riscv64gc-unknown-none-elf/release/deps/arceos_async-de373d6f5f643521.arceos_as)

warning: `arceos-async` (bin "arceos-async") generated 1 warning
error: could not compile `arceos-async` (bin "arceos-async") due to previous error; 1 warning emitted
make: *** [scripts/make/build.mk:36: _cargo_build] Error 101
lighkLife commented 12 months ago

add riscv dependencies

[dependencies]
embassy-executor = { version = "0.3.3", features = ["arch-riscv32", "nightly", "executor-thread"] }
riscv = { version = "0.10.1", features = ["critical-section-single-hart"] }