FTBFS with gcc-12.2.x
Hi, this is not your issue (it is in gcc AFAICS), but I wanted to file it anyway for your awareness as others might look here for a resolution. Please close/flag this case accordingly, but having it indexed in search engines will help :-)
If you build qemu-palcode with GCC 12.2.0 I've reliably got the following error.
Repro steps in Ubuntu 22.10 (by now this was also reproduced in fedora, steps in the gcc bug linked below):
$ git clone https://gitlab.com/qemu-project/qemu-palcode.git
$ cd qemu-palcode/
$ apt install gcc-alpha-linux-gnu
$ make CROSS=alpha-linux-gnu-
...
alpha-linux-gnu-gcc -O2 -g1 -Wall -fvisibility=hidden -fno-strict-aliasing -msmall-text -msmall-data -mno-fp-regs -mbuild-constants -mcpu=ev67 -DSYSTEM_H='"sys-clipper.h"' -c -o console.o console.c
during RTL pass: expand
console.c: In function ‘do_console’:
console.c:130:12: internal compiler error: in emit_move_insn, at expr.cc:4010
130 | vga[0] = 'H' + attr;
| ~~~~~~~^~~~~~~~~~~~
0x137917b internal_error(char const*, ...)
???:0
0x5a9326 fancy_abort(char const*, int, char const*)
???:0
0xe0a692 alpha_split_const_mov(machine_mode, rtx_def**)
???:0
0xe0a801 alpha_expand_mov(machine_mode, rtx_def**)
???:0
0x112e2dd gen_movv4hi(rtx_def*, rtx_def*)
???:0
0x7eedeb emit_move_insn_1(rtx_def*, rtx_def*)
???:0
0x7ef1d7 emit_move_insn(rtx_def*, rtx_def*)
???:0
0xe0d016 alpha_expand_movmisalign(machine_mode, rtx_def**)
???:0
0x112e5aa gen_movmisalignv4hi(rtx_def*, rtx_def*)
???:0
0xa278fc expand_insn(insn_code, unsigned int, expand_operand*)
???:0
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-12/README.Bugs> for instructions.
make: *** [<builtin>: console.o] Error 1
The real issue I assume is in GCC which is filed here https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106966
Edited by Christian Ehrhardt