Open ethindp opened 1 year ago
The error suggests that you have an asm
somewhere in the functions with duplicate input [name]
s.
@jacobly0 I fixed that but I still get the "unsupported x86 interrupt prototype" bug. Will have to look into LLVM's code apparently.
Regardless, I think the error message should be a bit more helpful; as it currently stands, it makes it look like it's not actually a problem with my code but a problem in Zig.
Kind of offtopic, but I am pretty sure you never want to rely on the compiler for interrupt handler assembly and instead you want to write your own (it's not that hard).
@davidgm94 Point taken
This should be checked in Sema/AstGen where a better error message can be produced, so using this issue to track that.
@jacobly0 I fixed that but I still get the "unsupported x86 interrupt prototype" bug. Will have to look into LLVM's code apparently.
For this aspect of the issue, see #11661
Zig Version
0.11.0-dev.4321+235e6ac05
Steps to Reproduce and Observed Behavior
This is quite strange, but for whatever reason, the following two function declarations cause a todo (llvm) error (
duplicate asm input name 'rax'
):And:
This doesn't appear to happen on any other interrupt, according to the compile log:
Expected Behavior
This should correctly generate interrupt functions.