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

Update to upstreamed avr rust #4

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

dylanmckay
Copy link
Contributor

I get this error locally


error: linking with `avr-gcc` failed: exit code: 1
  |
  = note: "avr-gcc" "-Os" "-mmcu=atmega328p" "-T" "lookup-text.ld" "-L" "/home/dylan/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/avr-atmega328p/lib" "/home/dylan/repos/rust-avr-chip8-avr/target/avr-atmega328p/release/deps/chip8_avr-3101ca07c6937603.chip8_avr.122g828f-cgu.0.rcgu.o" "/home/dylan/repos/rust-avr-chip8-avr/target/avr-atmega328p/release/deps/chip8_avr-3101ca07c6937603.chip8_avr.122g828f-cgu.1.rcgu.o" "/home/dylan/repos/rust-avr-chip8-avr/target/avr-atmega328p/release/deps/chip8_avr-3101ca07c6937603.chip8_avr.122g828f-cgu.10.rcgu.o" "/home/dylan/repos/rust-avr-chip8-avr/target/avr-atmega328p/release/deps/chip8_avr-3101ca07c6937603.chip8_avr.122g828f-cgu.11.rcgu.o" "/home/dylan/repos/rust-avr-chip8-avr/target/avr-atmega328p/release/deps/chip8_avr-3101ca07c6937603.chip8_avr.122g828f-cgu.2.rcgu.o" "/home/dylan/repos/rust-avr-chip8-avr/target/avr-atmega328p/release/deps/chip8_avr-3101ca07c6937603.chip8_avr.122g828f-cgu.3.rcgu.o" "/home/dylan/repos/rust-avr-chip8-avr/target/avr-atmega328p/release/deps/chip8_avr-3101ca07c6937603.chip8_avr.122g828f-cgu.4.rcgu.o" "/home/dylan/repos/rust-avr-chip8-avr/target/avr-atmega328p/release/deps/chip8_avr-3101ca07c6937603.chip8_avr.122g828f-cgu.5.rcgu.o" "/home/dylan/repos/rust-avr-chip8-avr/target/avr-atmega328p/release/deps/chip8_avr-3101ca07c6937603.chip8_avr.122g828f-cgu.6.rcgu.o" "/home/dylan/repos/rust-avr-chip8-avr/target/avr-atmega328p/release/deps/chip8_avr-3101ca07c6937603.chip8_avr.122g828f-cgu.7.rcgu.o" "/home/dylan/repos/rust-avr-chip8-avr/target/avr-atmega328p/release/deps/chip8_avr-3101ca07c6937603.chip8_avr.122g828f-cgu.8.rcgu.o" "/home/dylan/repos/rust-avr-chip8-avr/target/avr-atmega328p/release/deps/chip8_avr-3101ca07c6937603.chip8_avr.122g828f-cgu.9.rcgu.o" "-o" "/home/dylan/repos/rust-avr-chip8-avr/target/avr-atmega328p/release/deps/chip8_avr-3101ca07c6937603.elf" "-Wl,--gc-sections" "-L" "/home/dylan/repos/rust-avr-chip8-avr/target/avr-atmega328p/release/deps" "-L" "/home/dylan/repos/rust-avr-chip8-avr/target/release/deps" "-L" "/home/dylan/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/avr-atmega328p/lib" "-Wl,-Bstatic" "/home/dylan/repos/rust-avr-chip8-avr/target/avr-atmega328p/release/deps/libchip8_engine-e22d920b1e810129.rlib" "/home/dylan/repos/rust-avr-chip8-avr/target/avr-atmega328p/release/deps/librustc_std_workspace_core-8bb013930499e942.rlib" "/home/dylan/repos/rust-avr-chip8-avr/target/avr-atmega328p/release/deps/libcore-f7688596ec6ef2a0.rlib" "/home/dylan/repos/rust-avr-chip8-avr/target/avr-atmega328p/release/deps/libcompiler_builtins-fd91d00a6345f8c0.rlib" "-Wl,-Bdynamic" "-Wl,--gc-sections" "target/avr-atmega328p/release/deps/rom.o"
  = note: /usr/bin/avr-ld: /home/dylan/repos/rust-avr-chip8-avr/target/avr-atmega328p/release/deps/chip8_avr-3101ca07c6937603.elf section `.text' will not fit in region `text'
          /usr/bin/avr-ld: region `text' overflowed by 1538 bytes
          collect2: error: ld returned 1 exit status

@gergoerdi
Copy link
Owner

This is lovely, thanks!

However, I'm not quite set up at the moment to try it out. Have you tried running the result on either real hardware, or this simulator?

@dylanmckay
Copy link
Contributor Author

I have not - but the simulator is a good bet, I will try that.

The linking error is still occurring so this PR isn't ready to be merged yet anyway I think.

@dylanmckay dylanmckay marked this pull request as draft July 25, 2020 04:17
@gergoerdi gergoerdi force-pushed the master branch 2 times, most recently from 665ea0a to e9445b8 Compare December 20, 2022 04:28
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

Successfully merging this pull request may close these issues.

2 participants