rust-console/gba

Compilation fails with `invalid register` error

Sp00ph opened this issue · 1 comments

When trying to compile the crate, I get the following error

error: invalid register `r9`: r9 is used internally by LLVM and cannot be used as an operand for inline asm
   --> C:\Users\anon\.cargo\git\checkouts\gba-4ba04b9d61fb788f\127f31e\src\sync\statics.rs:106:72
    |
106 |       out("r2") _, out("r3") _, out("r4") _, out("r5") _, out("r8") _, out("r9") _,
    |                                                                        ^^^^^^^^^^^

error: invalid register `r9`: r9 is used internally by LLVM and cannot be used as an operand for inline asm
   --> C:\Users\anon\.cargo\git\checkouts\gba-4ba04b9d61fb788f\127f31e\src\sync\statics.rs:113:72
    |
113 |       out("r2") _, out("r3") _, out("r4") _, out("r5") _, out("r8") _, out("r9") _,
    |                                                                        ^^^^^^^^^^^

error: invalid register `r9`: r9 is used internally by LLVM and cannot be used as an operand for inline asm
   --> C:\Users\anon\.cargo\git\checkouts\gba-4ba04b9d61fb788f\127f31e\src\sync\statics.rs:121:72
    |
121 |       out("r2") _, out("r3") _, out("r4") _, out("r5") _, out("r8") _, out("r9") _,
    |                                                                        ^^^^^^^^^^^

error: invalid register `r9`: r9 is used internally by LLVM and cannot be used as an operand for inline asm
   --> C:\Users\anon\.cargo\git\checkouts\gba-4ba04b9d61fb788f\127f31e\src\sync\statics.rs:129:72
    |
129 |       out("r2") _, out("r3") _, out("r4") _, out("r5") _, out("r8") _, out("r9") _,
    |                                                                        ^^^^^^^^^^^

error: aborting due to 4 previous errors

error: could not compile `gba`

I already got a similar error once and was able to fix it by running rustup update, but this time it failed to compile on two different versions of rustc 1.54 nightly, including the latest version.

I dunno what's up with this. You'd have to report an inline-asm bug, I don't have any power to fix rustc from within the gba crate.