-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Various Atomic issues #1055
Comments
Update: If I switch error: linking with `rust-lld` failed: exit code: 1
|
= note: "rust-lld" "-flavor" "gnu" "C:\\Users\\the_a\\AppData\\Local\\Temp\\rustc4XgiDd\\symbols.o" "C:\\Users\\the_a\\strike\\airdome\\target\\riscv32imc-unknown-none-elf\\debug\\deps\\project_name-a033d8939de967da.project_name.41b8fd6340978067-cgu.0.rcgu.o" "--as-needed" "-L" "C:\\Users\\the_a\\strike\\airdome\\target\\riscv32imc-unknown-none-elf\\debug\\deps" "-L" "C:\\Users\\the_
// ... (lots more)
cstack" "-L" "C:\\Users\\the_a\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\riscv32imc-unknown-none-elf\\lib" "-o" "C:\\Users\\the_a\\strike\\airdome\\target\\riscv32imc-unknown-none-elf\\debug\\deps\\project_name-a033d8939de967da" "--gc-sections" "-O1" "-Tlinkall.x" "-Trom_functions.x"
= note: rust-lld: error: cannot find linker script rom_functions.x
warning: `project_name` (bin "project_name") generated 9 warnings
error: could not compile `project_name` (bin "project_name") due to 1 previous error; 9 warnings emitted
PS C:\Users\the_a\strike\airdome> |
Solved, thanks to danielb on Matrix. The varying errors I ran into were transient dependency and Fix. Cargo.toml hal = { package = "esp32c3-hal", version = "^0.14.0" }
esp-backtrace = { version = "^0.9.0", features = ["esp32c3", "panic-handler", "exception-handler", "print-jtag-serial"] }
esp-println = { version = "^0.8.0", features = ["esp32c3"] }
esp-wifi = { version = "0.1.1", features = ["esp32c3", "wifi"] }
embedded-svc = { version = "0.25.0", default-features = false, features = [] }
smoltcp = { version = "^0.11.0", default-features=false, features = ["proto-igmp", "proto-ipv4", "socket-tcp", "socket-icmp", "socket-udp", "medium-ethernet", "proto-dhcpv4", "socket-raw", "socket-dhcpv4"] }
embedded-io = "^0.6.1"
[patch.crates-io]
esp-wifi = { git = "https://github.com/esp-rs/esp-wifi", rev = "a69545d" } rustsflags: rustflags = [
"-C", "link-arg=-Tlinkall.x",
# This line is required to prevent link errors if using `esp-wifi`, but will cause link errors if not.
"-C", "link-arg=-Trom_functions.x",
# Required to obtain backtraces (e.g. when using the "esp-backtrace" crate.)
# NOTE: May negatively impact performance of produced code
"-C", "force-frame-pointers",
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi! I'm attempting a hello world, and have hit several errors related to atomics and the linker. It seems related to this thread, which points to dependency conflicts. I've removed everything except the basics, but am still hitting errors.
C3 MCU (Risc-V)
Error:
rust-toolchain.toml:
config.toml:
Relevant section of
cargo.toml
:The text was updated successfully, but these errors were encountered: