Skip to content

Drop -mbuild-constants to avoid gcc-12 compiler crash

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[0] = 'H' + attr;

It was initially found when building qemu on recent Ubuntu [2], 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.

Fixes #1

Signed-off-by: Christian Ehrhardt christian.ehrhardt@canonical.com

Merge request reports