-
Notifications
You must be signed in to change notification settings - Fork 30
Closed
Description
I get this error compiling the project.
The whole error message:
PS C:\Users\woppe\Documents\Rust\blink> cargo build -Z build-std=core --target avr-atmega328p.json --release
Compiling compiler_builtins v0.1.49
warning: target json file contains unused fields: no-compiler-rt
Compiling avr-config v1.0.0
Compiling avr-config v2.0.1
Compiling avr-std-stub v1.0.2
Compiling avr_delay v0.3.1
warning: `avr-config` (lib) generated 1 warning (1 duplicate)
warning: `avr-std-stub` (lib) generated 1 warning (1 duplicate)
warning: `avr-config` (lib) generated 1 warning (1 duplicate)
Compiling ruduino v0.3.2
error: couldn't allocate input reg for constraint 'w'
--> C:\Users\woppe\.cargo\registry\src\github.com-1ecc6299db9ec823\avr_delay-0.3.1\src\lib.rs:34:17
|
34 | unsafe {llvm_asm!("1: sbiw $0,1
| ^
warning: `avr_delay` (lib) generated 1 warning (1 duplicate)
error: could not compile `avr_delay` due to previous error; 1 warning emitted
warning: build failed, waiting for other jobs to finish...
LLVM ERROR: Not supported instr: <MCInst 312 <MCOperand Reg:1> <MCOperand Imm:13> <MCOperand Reg:41>>
warning: `compiler_builtins` (lib) generated 1 warning
warning: `ruduino` (lib) generated 1 warning (1 duplicate)
error: build failed
vasily-kartashov and agalakhov
Metadata
Metadata
Assignees
Labels
No labels