riscv-rust / riscv-rust-quickstart

A template for building Rust applications for HiFive1 boards
205 stars 24 forks source link

Template does not compile #17

Closed johnsnewby closed 4 years ago

johnsnewby commented 4 years ago

Following the steps from README.md I get many linker errors, starting with

          >>> referenced by riscv-rt.o:(.init+0x52) in archive /home/newby/projects/hifive/hifive-test/target/riscv32imac-unknown-none-elf/debug/deps/libriscv_rt-3aa7df5894fafdbf.rlib
          >>> referenced by riscv-rt.o:(.init+0x56) in archive /home/newby/projects/hifive/hifive-test/target/riscv32imac-unknown-none-elf/debug/deps/libriscv_rt-3aa7df5894fafdbf.rlib

          rust-lld: error: undefined symbol: _stack_start
          >>> referenced by riscv-rt.o:(.init+0x5E) in archive /home/newby/projects/hifive/hifive-test/target/riscv32imac-unknown-none-elf/debug/deps/libriscv_rt-3aa7df5894fafdbf.rlib

Full transcript: commands.txt

Many thanks in advance for any help

johnsnewby commented 4 years ago

Embarrassing. I had a RUSTFLAGS export which I had totally forgotten about, and which clobbered the entry in .cargo/config. Closing this.