You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.
I started writing a Rust application that looked pretty much exactly the same as the "empty" example, but when I compile it lots of rust-lld errors show up. I'm compiling with riscv32imac-unknown-none-elf, my rustc version is 1.56.
Here are the first 5:
rust-lld: error: undefined symbol: UserTimer
>>> referenced by riscv_rt.e45bfb96-cgu.4
>>> riscv_rt-5f3b7c942d92931d.riscv_rt.e45bfb96-cgu.4.rcgu.o:(__INTERRUPTS) in archive /home/nathan/Desktop/githubProjects/novusk/target/riscv32i-unknown-none-elf/debug/deps/libriscv_rt-5f3b7c942d92931d.rlib
rust-lld: error: undefined symbol: SupervisorTimer
>>> referenced by riscv_rt.e45bfb96-cgu.4
>>> riscv_rt-5f3b7c942d92931d.riscv_rt.e45bfb96-cgu.4.rcgu.o:(__INTERRUPTS) in archive /home/nathan/Desktop/githubProjects/novusk/target/riscv32i-unknown-none-elf/debug/deps/libriscv_rt-5f3b7c942d92931d.rlib
rust-lld: error: undefined symbol: MachineTimer
>>> referenced by riscv_rt.e45bfb96-cgu.4
>>> riscv_rt-5f3b7c942d92931d.riscv_rt.e45bfb96-cgu.4.rcgu.o:(__INTERRUPTS) in archive /home/nathan/Desktop/githubProjects/novusk/target/riscv32i-unknown-none-elf/debug/deps/libriscv_rt-5f3b7c942d92931d.rlib
rust-lld: error: undefined symbol: UserExternal
>>> referenced by riscv_rt.e45bfb96-cgu.4
>>> riscv_rt-5f3b7c942d92931d.riscv_rt.e45bfb96-cgu.4.rcgu.o:(__INTERRUPTS) in archive /home/nathan/Desktop/githubProjects/novusk/target/riscv32i-unknown-none-elf/debug/deps/libriscv_rt-5f3b7c942d92931d.rlib
rust-lld: error: undefined symbol: SupervisorExternal
>>> referenced by riscv_rt.e45bfb96-cgu.4
>>> riscv_rt-5f3b7c942d92931d.riscv_rt.e45bfb96-cgu.4.rcgu.o:(__INTERRUPTS) in archive /home/nathan/Desktop/githubProjects/novusk/target/riscv32i-unknown-none-elf/debug/deps/libriscv_rt-5f3b7c942d92931d.rlib
rust-lld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
Is there a linker script that I need? What's causing this?
The text was updated successfully, but these errors were encountered:
Is there a linker script that I need? What's causing this?
Yes, you need to pass the linker script name as well as a script with memory definitions in .cargo/config: https://github.com/riscv-rust/longan-nano/blob/master/.cargo/config link.x is provided by riscv-rt, but memory.x is usually provided by user or one of the chip support crates.
I started writing a Rust application that looked pretty much exactly the same as the "empty" example, but when I compile it lots of rust-lld errors show up. I'm compiling with
riscv32imac-unknown-none-elf
, myrustc
version is1.56
.Here are the first 5:
Is there a linker script that I need? What's causing this?
The text was updated successfully, but these errors were encountered: