Closed jonahbron closed 3 years ago
In https://github.com/rust-lang/rust/pull/74631/files Rust got support for disabling --eh-frame-hdr
flag via the "eh-frame-header": false
target specification JSON option.
The blink example has this so that --eh-frame-hdr
is not passed to the linker. My avr-gcc linker (Arch Linux) doesn't support the --eh-frame-hdr
flag either (even though it is a very recent version of binutils).
Here is the example in blink.
Good suggestion on adding distro-independent avr-gcc installation instructions. Raised #18.
This should be fixed by #10 when instructions for getting/creating a target specification JSON file are written.
Thanks @dylanmckay . Yeah updating yesterday evening fixed it, and it turned out my json file was also setting that flag. Fixing that fixed the problem. I'll open a PR for manual installation instructions.
Closing since you opened another ticket for the task.
This section in the book works great in most cases, but I'm on Clear Linux and have neither of those package managers available.
https://book.avr-rust.com/002.1-installing-required-third-party-tools.html#21-installing-required-third-party-tools
Instructions on how to install manually would be nice. I downloaded the official AVR toolchain from Microchip:
https://www.microchip.com/mplab/avr-support/avr-and-arm-toolchains-c-compilers
But when I run
cargo build
, it seems that it's trying to use a flag not supported by the version ofld
provided in the official AVR toolchain.Are there some additional instructions we could add, like how to remove that flag?