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

"out of registers" build error #42

Open
michkrom opened this issue Mar 3, 2022 · 3 comments
Open

"out of registers" build error #42

michkrom opened this issue Mar 3, 2022 · 3 comments

Comments

@michkrom
Copy link

michkrom commented Mar 3, 2022

avr-gcc 5.4
ruduino 0.3.2

Compiling rustc-std-workspace-core v1.99.0 (/home/m/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/rustc-std-workspace-core)
error: ran out of registers during register allocation

error: could not compile core due to previous erro

@n8henrie
Copy link

I have had this error sometimes resolve by building with --release.

@stappersg
Copy link
Member

Also encountered in avr-rust/delay#21

@stappersg
Copy link
Member

@michkrom please try again, I would like to known if ruduino also compiles for you.

$ AVR_CPU_FREQUENCY_HZ=8_000_000 cargo +nightly build --target ./avr-atmega328p.json -Z build-std=core --release
   Compiling core v0.0.0 (/home/gs0604/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core)
   Compiling ruduino v0.4.0 (/home/gs0604/src/rust/RustAVR/ruduino)
   Compiling rustc-std-workspace-core v1.99.0 (/home/gs0604/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/rustc-std-workspace-core)
   Compiling compiler_builtins v0.1.73
   Compiling avr-config v2.0.1
   Compiling avr-std-stub v1.0.3
   Compiling avr_delay v0.4.0 (https://github.com/avr-rust/delay#cfe9848f)
    Finished release [optimized] target(s) in 6.30s

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

3 participants