Closed
Description
Trying to build avr-rust breaks whenever I run make.
The submodule src/llvm is hardcoded to use the commit cebc0b4
:
# make
[...]
Synchronizing submodule url for 'src/llvm'
[...]
# cd src/llvm; git checkout
(HEAD detached at cebc0b4)
This seems to correspond to the branch avr-rust, and produces a broken build, in which the shl instruction is not lowered properly:
CFG_LLVM_LINKAGE_FILE= LD_LIBRARY_PATH=/mnt/tempcache/AVR-rust/avr-rust-build/x86_64-unknown-linux-gnu/stage2/lib:$LD_LIBRARY_PATH x86_64-unknown-linux-gnu/stage2/bin/rustc --cfg stage2 -O --cfg rtopt --target=avr-atmel-none -C linker=avr-gcc -C ar=avr-ar -C target-cpu=atmega328p -C prefer-dynamic -D warnings -L "avr-atmel-none/rt" --out-dir x86_64-unknown-linux-gnu/stage2/lib/rustlib/avr-atmel-none/lib -C extra-filename=-a5fc0d6c ../avr-rust/src/libcore/lib.rs
LLVM ERROR: Cannot select: 0x7f616b009818: i8 = ##name## 0x7f616be53ce8, 0x7f616b5d3b88 [ORD=4] [ID=8]
0x7f616be53ce8: i8,ch = CopyFromReg 0x7f616b840d10, 0x7f6170529ce8 [ORD=1] [ID=5]
0x7f6170529ce8: i8 = Register %vreg0 [ID=1]
0x7f616b5d3b88: i16 = and 0x7f616b00a158, 0x7f6171ba5720 [ORD=4] [ID=7]
0x7f616b00a158: i16,ch = CopyFromReg 0x7f616b840d10, 0x7f6171bd8a90 [ORD=1] [ID=6]
0x7f6171bd8a90: i16 = Register %vreg1 [ID=2]
0x7f6171ba5720: i16 = Constant<7> [ID=4]
In function: _ZN3num8wrapping35Wrapping$LT$u8$GT$.Shl$LT$usize$GT$3shl20h8e8197c1e2abaa89d3aE
As a related question, how to make sure llvm does not revert to some other branch when I do make
?
Metadata
Metadata
Assignees
Labels
No labels