Skip to content
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

Issue building the example #24

Open
crocycroc opened this issue Nov 19, 2022 · 2 comments
Open

Issue building the example #24

crocycroc opened this issue Nov 19, 2022 · 2 comments
Assignees

Comments

@crocycroc
Copy link

I am following the quickstart guide, and at the step to build the project I am met with this odd error.
I have included my version of rustc as well as the output from cargo build.

I am very familiar with micro-controllers but fairly new to rust so let me know if I can provide any extra info

$ rustc --version
rustc 1.65.0 (897e37553 2022-11-02)
crocy@Ciela:~/Projects/rustyrisc$ cargo build
   Compiling rustyrisc v0.0.0 (/home/crocy/Projects/rustyrisc)
error: linking with `rust-lld` failed: exit status: 1
  |
  = note: "rust-lld" "-flavor" "gnu" "/tmp/rustcVUtNxD/symbols.o" "/home/crocy/Projects/rustyrisc/target/riscv32imac-unknown-none-elf/debug/deps/rustyrisc-340a189dd2b7ebcc.191763b6qeivp0v0.rcgu.o" "/home/crocy/Projects/rustyrisc/target/riscv32imac-unknown-none-elf/debug/deps/rustyrisc-340a189dd2b7ebcc.1987xlvieevj0tms.rcgu.o" "/home/crocy/Projects/rustyrisc/target/riscv32imac-unknown-none-elf/debug/deps/rustyrisc-340a189dd2b7ebcc.19obqabi946y7o1r.rcgu.o" "/home/crocy/Projects/rustyrisc/target/riscv32imac-unknown-none-elf/debug/deps/rustyrisc-340a189dd2b7ebcc.269xfqgnd3lgrauq.rcgu.o" "/home/crocy/Projects/rustyrisc/target/riscv32imac-unknown-none-elf/debug/deps/rustyrisc-340a189dd2b7ebcc.32pg9wnu1e78caih.rcgu.o" "/home/crocy/Projects/rustyrisc/target/riscv32imac-unknown-none-elf/debug/deps/rustyrisc-340a189dd2b7ebcc.37gpbvsixmx7gl5v.rcgu.o" "/home/crocy/Projects/rustyrisc/target/riscv32imac-unknown-none-elf/debug/deps/rustyrisc-340a189dd2b7ebcc.4094yhgdnwx4v2us.rcgu.o" "/home/crocy/Projects/rustyrisc/target/riscv32imac-unknown-none-elf/debug/deps/rustyrisc-340a189dd2b7ebcc.4tkq43s7ixlrmyxg.rcgu.o" "/home/crocy/Projects/rustyrisc/target/riscv32imac-unknown-none-elf/debug/deps/rustyrisc-340a189dd2b7ebcc.56yiw9onvqcruaje.rcgu.o" "/home/crocy/Projects/rustyrisc/target/riscv32imac-unknown-none-elf/debug/deps/rustyrisc-340a189dd2b7ebcc.e32mww6o103e6vx.rcgu.o" "/home/crocy/Projects/rustyrisc/target/riscv32imac-unknown-none-elf/debug/deps/rustyrisc-340a189dd2b7ebcc.h69j05cbo8d93mz.rcgu.o" "--as-needed" "-L" "/home/crocy/Projects/rustyrisc/target/riscv32imac-unknown-none-elf/debug/deps" "-L" "/home/crocy/Projects/rustyrisc/target/debug/deps" "-L" "/home/crocy/Projects/rustyrisc/target/riscv32imac-unknown-none-elf/debug/build/hifive1-9be2463d5add7ca4/out" "-L" "/home/crocy/Projects/rustyrisc/target/riscv32imac-unknown-none-elf/debug/build/e310x-1c331dad9ffe38f9/out" "-L" "/home/crocy/Projects/rustyrisc/target/riscv32imac-unknown-none-elf/debug/build/riscv-a28e17a96cc9cd1e/out" "-L" "/home/crocy/Projects/rustyrisc/target/riscv32imac-unknown-none-elf/debug/build/riscv-rt-39dd4487a0b27e86/out" "-L" "/home/crocy/Projects/rustyrisc/target/riscv32imac-unknown-none-elf/debug/build/riscv-rt-39dd4487a0b27e86/out" "-L" "/home/crocy/Projects/rustyrisc/target/riscv32imac-unknown-none-elf/debug/build/riscv-a4fda5c8cc853cbe/out" "-L" "/home/crocy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/riscv32imac-unknown-none-elf/lib" "-Bstatic" "/home/crocy/Projects/rustyrisc/target/riscv32imac-unknown-none-elf/debug/deps/libriscv_rt-cd2952c4a01cb5bd.rlib" "/home/crocy/Projects/rustyrisc/target/riscv32imac-unknown-none-elf/debug/deps/libriscv-643a869016150aa2.rlib" "/home/crocy/Projects/rustyrisc/target/riscv32imac-unknown-none-elf/debug/deps/libbare_metal-749f7232feff9e0b.rlib" "/home/crocy/Projects/rustyrisc/target/riscv32imac-unknown-none-elf/debug/deps/libr0-3236fafac8f81336.rlib" "/home/crocy/Projects/rustyrisc/target/riscv32imac-unknown-none-elf/debug/deps/libhifive1-4ddc5b45a321809a.rlib" "/home/crocy/Projects/rustyrisc/target/riscv32imac-unknown-none-elf/debug/deps/libe310x_hal-7dfc806e8fd36895.rlib" "/home/crocy/Projects/rustyrisc/target/riscv32imac-unknown-none-elf/debug/deps/libembedded_hal-4e1ed0a75d0ba899.rlib" "/home/crocy/Projects/rustyrisc/target/riscv32imac-unknown-none-elf/debug/deps/libvoid-d8b8e8aefa40767b.rlib" "/home/crocy/Projects/rustyrisc/target/riscv32imac-unknown-none-elf/debug/deps/libnb-289bc072f9c7d8f4.rlib" "/home/crocy/Projects/rustyrisc/target/riscv32imac-unknown-none-elf/debug/deps/libnb-597abaa48ca4f88f.rlib" "/home/crocy/Projects/rustyrisc/target/riscv32imac-unknown-none-elf/debug/deps/libe310x-a290ffc01dd5e789.rlib" "/home/crocy/Projects/rustyrisc/target/riscv32imac-unknown-none-elf/debug/deps/libvcell-91bdd832aedc2a21.rlib" "/home/crocy/Projects/rustyrisc/target/riscv32imac-unknown-none-elf/debug/deps/libriscv-d327b2c75471c245.rlib" "/home/crocy/Projects/rustyrisc/target/riscv32imac-unknown-none-elf/debug/deps/libbit_field-4067a321429c94bf.rlib" "/home/crocy/Projects/rustyrisc/target/riscv32imac-unknown-none-elf/debug/deps/libbare_metal-e6906f1496eb0c91.rlib" "/home/crocy/Projects/rustyrisc/target/riscv32imac-unknown-none-elf/debug/deps/libpanic_halt-529e715bac21ad51.rlib" "/home/crocy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/riscv32imac-unknown-none-elf/lib/librustc_std_workspace_core-fe9e070fcdbe7977.rlib" "/home/crocy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/riscv32imac-unknown-none-elf/lib/libcore-f240d2ef23c59200.rlib" "/home/crocy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/riscv32imac-unknown-none-elf/lib/libcompiler_builtins-15a8c7a5252dc399.rlib" "-Bdynamic" "-znoexecstack" "-L" "/home/crocy/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/riscv32imac-unknown-none-elf/lib" "-o" "/home/crocy/Projects/rustyrisc/target/riscv32imac-unknown-none-elf/debug/deps/rustyrisc-340a189dd2b7ebcc" "--gc-sections" "-Thifive1-link.x"
  = note: rust-lld: error: /home/crocy/Projects/rustyrisc/target/riscv32imac-unknown-none-elf/debug/build/riscv-rt-39dd4487a0b27e86/out/link.x:58: expected filename pattern
          >>>     (*(.trap));
          >>>     ^
          

error: could not compile `rustyrisc` due to previous error
@almindor
Copy link
Collaborator

almindor commented Nov 19, 2022

I've created this PR with new dependencies which should fix this issue. Please try if that works, we should get it merged in soon.

@almindor almindor self-assigned this Nov 19, 2022
@crocycroc
Copy link
Author

I've created this PR with new dependencies which should fix this issue. Please try if that works, we should get it merged in soon.

Yay! This worked for me! Hope you can get it merged in soon thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants