-
Notifications
You must be signed in to change notification settings - Fork 223
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
Can't run on Gentoo #390
Comments
Hm, I am a bit lost here... The error message makes me believe your LLVM was not compiled with the AVR target enabled. But rustup is supposed to ship vendored LLVM instead of relying on something from the distro? Does this work differently on gentoo maybe? |
The AVR target is enabled:
|
Ok I recompiled rust with llvm target use flags and this error dissapeared.
|
But now there is a different problem:
I tried running |
What project are you building and where from? You need to use avr-hal/examples/arduino-uno/.cargo/config.toml Lines 1 to 8 in 4c9c44c
|
I am trying to run |
Hm, and it is not picking up the cargo config? Can you try running this please: cargo build -Zbuild-std=core --bin uno-blink |
After I tried every method to use nightly build using rustup nothing worked.
Everything works now. Thanks for your help :) |
Also a quick recap for everyone who found this issue:
rustup-init-gentoo -s
|
Problem
Can't run examples/avr-hal-template under gentoo. Rustup was setup using
rustup-init-gentoo -s
. Everything was working fine under other Distros.Some info:
Kernel:
6.1.3-gentoo-dist
❯ cargo run --bin uno-blink -- -P /dev/ttyUSB0
❯ rustup show
Would appreciate the help :)
The text was updated successfully, but these errors were encountered: