Build failed at libqemu-aarch64-softmmu.fa.p/accel_tcg_cputlb.c.o
Host environment
- Operating system: Intel Clear Linux 35280
- OS/kernel version: Linux clr-520837a2c45749749bccf45472ae4dee 5.14.14-1084.native #1 SMP Wed Oct 20 04:03:15 PDT 2021 x86_64 GNU/Linux
- Architecture: x64
- QEMU flavor: N/A
- QEMU version: 6.1.0
- QEMU command line: N/A
Steps to reproduce
- Download and build from source
wget https://download.qemu.org/qemu-6.1.0.tar.xz
tar xvJf qemu-6.1.0.tar.xz
cd qemu-6.1.0
./configure
make
Additional information
[2150/9644] Compiling C object libqemu-alpha-softmmu.fa.p/migration_dirtyrate.c.o
[2151/9644] Compiling C object libqemu-alpha-softmmu.fa.p/migration_ram.c.o
[2152/9644] Compiling C object libqemu-alpha-softmmu.fa.p/target_alpha_fpu_helper.c.o
[2153/9644] Compiling C object libqemu-aarch64-softmmu.fa.p/accel_tcg_translate-all.c.o
[2154/9644] Compiling C object libqemu-alpha-softmmu.fa.p/migration_target.c.o
[2155/9644] Compiling C object libqemu-aarch64-softmmu.fa.p/accel_tcg_cputlb.c.o
FAILED: libqemu-aarch64-softmmu.fa.p/accel_tcg_cputlb.c.o
gcc -Ilibqemu-aarch64-softmmu.fa.p -I. -I.. -Itarget/arm -I../target/arm -I../dtc/libfdt -I../capstone/include/capstone -Iqapi -Itrace -Iui -Iui/shader -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/valgrind -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -fdiagnostics-color=auto -Wall -Winvalid-pch -std=gnu11 -O2 -g -isystem /home/intel/Sources/qemu-6.1.0/linux-headers -isystem linux-headers -iquote . -iquote /home/intel/Sources/qemu-6.1.0 -iquote /home/intel/Sources/qemu-6.1.0/include -iquote /home/intel/Sources/qemu-6.1.0/disas/libvixl -iquote /home/intel/Sources/qemu-6.1.0/tcg/i386 -pthread -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -m64 -mcx16 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -Wold-style-declaration -Wold-style-definition -Wtype-limits -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wempty-body -Wnested-externs -Wendif-labels -Wexpansion-to-defined -Wimplicit-fallthrough=2 -Wno-missing-include-dirs -Wno-shift-negative-value -Wno-psabi -fstack-protector-strong -g -O3 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -Wformat -Wformat-security -m64 -fasynchronous-unwind-tables -Wp,-D_REENTRANT -ftree-loop-distribute-patterns -Wl,-z -Wl,now -Wl,-z -Wl,relro -fno-semantic-interposition -ffat-lto-objects -fno-trapping-math -Wl,-sort-common -Wl,--enable-new-dtags -mtune=skylake -fPIE -isystem../linux-headers -isystemlinux-headers -DNEED_CPU_H '-DCONFIG_TARGET="aarch64-softmmu-config-target.h"' '-DCONFIG_DEVICES="aarch64-softmmu-config-devices.h"' -MD -MQ libqemu-aarch64-softmmu.fa.p/accel_tcg_cputlb.c.o -MF libqemu-aarch64-softmmu.fa.p/accel_tcg_cputlb.c.o.d -o libqemu-aarch64-softmmu.fa.p/accel_tcg_cputlb.c.o -c ../accel/tcg/cputlb.c
during GIMPLE pass: fab
In file included from /home/intel/Sources/qemu-6.1.0/include/qemu/osdep.h:37,
from ../accel/tcg/cputlb.c:20:
../accel/tcg/atomic_common.c.inc: In function ‘helper_atomic_fetch_andb’:
/home/intel/Sources/qemu-6.1.0/include/exec/helper-head.h:21:27: internal compiler error: in optimize_atomic_bit_test_and, at tree-ssa-ccp.c:3245
21 | #define HELPER(name) glue(helper_, name)
| ^~~~~~~
/home/intel/Sources/qemu-6.1.0/include/qemu/compiler.h:35:21: note: in definition of macro ‘xglue’
35 | #define xglue(x, y) x ## y
| ^
/home/intel/Sources/qemu-6.1.0/include/exec/helper-head.h:21:22: note: in expansion of macro ‘glue’
21 | #define HELPER(name) glue(helper_, name)
| ^~~~
../accel/tcg/atomic_common.c.inc:94:10: note: in expansion of macro ‘HELPER’
94 | TYPE HELPER(glue(atomic_,OP))(CPUArchState *env, target_ulong addr, \
| ^~~~~~
../accel/tcg/atomic_common.c.inc:100:5: note: in expansion of macro ‘ATOMIC_HELPER’
100 | ATOMIC_HELPER(glue(OP,b), uint32_t) \
| ^~~~~~~~~~~~~
../accel/tcg/atomic_common.c.inc:117:1: note: in expansion of macro ‘GEN_ATOMIC_HELPERS’
117 | GEN_ATOMIC_HELPERS(fetch_and)
| ^~~~~~~~~~~~~~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
ninja: build stopped: subcommand failed.
make[1]: *** [Makefile:156: run-ninja] Error 1
make[1]: Leaving directory '/home/intel/Sources/qemu-6.1.0/build'
make: *** [GNUmakefile:11: all] Error 2