With gcc-12 there is a compiler crash due to 1 when cross compiling this rom.
console.c:130:12: internal compiler error: in emit_move_insn, at expr.cc:4010 130 | vga = 'H' + attr;
It was initially found when building qemu on recent Ubuntu , but also happens when building palcode individually and on other distributions/releases.
According to the gcc-upstream discussion the problem is known but won't be fixed soon, but inspecting the code made them suggest to drop -mbuild-constants from palcodes build.
It was explained that this should be safe in this use-case and I've verified that it works and mitigates the issue.
Signed-off-by: Christian Ehrhardt email@example.com