avr-rust / template-bin Goto Github PK
View Code? Open in Web Editor NEWA template for AVR executable (non-library) projects
A template for AVR executable (non-library) projects
Hi,
I tried to compile the template, but it failed. I tried it on Lubuntu 20.04 64 bit and on Ubuntu Mate 18.04 on a Odroid N2. I also tried the blink example with the same result. I followed the instructions in the Rust Avr book
odroid@odroid:~/dev/rustavr$ git clone https://github.com/avr-rust/template-bin.git
Klone nach 'template-bin' ...
remote: Enumerating objects: 68, done.
remote: Counting objects: 100% (68/68), done.
remote: Compressing objects: 100% (39/39), done.
remote: Total 68 (delta 27), reused 61 (delta 20), pack-reused 0
Entpacke Objekte: 100% (68/68), Fertig.
odroid@odroid:~/dev/rustavr$ cd template-bin/
odroid@odroid:~/dev/rustavr/template-bin$ rustup override set nightly
info: using existing install for 'nightly-aarch64-unknown-linux-gnu'
info: override toolchain for '/home/odroid/dev/rustavr/template-bin' set to 'nightly-aarch64-unknown-linux-gnu'
nightly-aarch64-unknown-linux-gnu unchanged - rustc 1.48.0-nightly (8876ffc92 2020-10-02)
odroid@odroid:~/dev/rustavr/template-bin$ cargo build --target avr-atmega328p.json -Z build-std=core --release
Updating crates.io index
Downloaded avr-std-stub v1.0.2
Downloaded 1 crate (2.7 KB) in 1.18s
Compiling core v0.0.0 (/home/odroid/.rustup/toolchains/nightly-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/core)
Compiling compiler_builtins v0.1.35
Compiling rustc-std-workspace-core v1.99.0 (/home/odroid/.rustup/toolchains/nightly-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/rustc-std-workspace-core)
error: could not compile `core`
Caused by:
process didn't exit successfully: `rustc --crate-name core --edition=2018 /home/odroid/.rustup/toolchains/nightly-aarch64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C embed-bitcode=no -C metadata=df014d755aa4223c -C extra-filename=-df014d755aa4223c --out-dir /home/odroid/dev/rustavr/template-bin/target/avr-atmega328p/release/deps --target /home/odroid/dev/rustavr/template-bin/avr-atmega328p.json -Z force-unstable-if-unmarked -L dependency=/home/odroid/dev/rustavr/template-bin/target/avr-atmega328p/release/deps -L dependency=/home/odroid/dev/rustavr/template-bin/target/release/deps --cap-lints allow` (signal: 11, SIGSEGV: invalid memory reference)
warning: build failed, waiting for other jobs to finish...
error: build failed
Any suggestions?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.