could not build qemu 6.2.0 in PPC64le Description of problem: Qemu 6.2.0 is not building in PPC64le Additional information: ``` Build Qemu Using './build' as the directory for build output Submodule 'dtc' (https://gitlab.com/qemu-project/dtc.git) registered for path 'dtc' Submodule 'meson' (https://gitlab.com/qemu-project/meson.git) registered for path 'meson' Submodule 'ui/keycodemapdb' (https://gitlab.com/qemu-project/keycodemapdb.git) registered for path 'ui/keycodemapdb' Cloning into '/home/jenkins/workspace/kata-containers-2.0-ppc64le-containerd-k8s-ubuntu-20-04-PR/go/src/github.com/qemu/qemu/dtc'... Cloning into '/home/jenkins/workspace/kata-containers-2.0-ppc64le-containerd-k8s-ubuntu-20-04-PR/go/src/github.com/qemu/qemu/meson'... Cloning into '/home/jenkins/workspace/kata-containers-2.0-ppc64le-containerd-k8s-ubuntu-20-04-PR/go/src/github.com/qemu/qemu/ui/keycodemapdb'... The Meson build system Version: 0.59.3 Source dir: /home/jenkins/workspace/kata-containers-2.0-ppc64le-containerd-k8s-ubuntu-20-04-PR/go/src/github.com/qemu/qemu Build dir: /home/jenkins/workspace/kata-containers-2.0-ppc64le-containerd-k8s-ubuntu-20-04-PR/go/src/github.com/qemu/qemu/build Build type: native build Project name: qemu Project version: 6.2.0 C compiler for the host machine: cc (gcc 9.4.0 "cc (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0") C linker for the host machine: cc ld.bfd 2.34 Host machine cpu family: ppc64 Host machine cpu: ppc64le Program sh found: YES (/usr/bin/sh) Program python3 found: YES (/usr/bin/python3) WARNING: Broken python installation detected. Python files installed by Meson might not be found by python interpreter. C++ compiler for the host machine: c++ (gcc 9.4.0 "c++ (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0") C++ linker for the host machine: c++ ld.bfd 2.34 Program cgcc skipped: feature sparse disabled Library m found: YES Run-time dependency threads found: YES Library util found: YES Run-time dependency appleframeworks found: NO (tried framework) Found pkg-config: /usr/bin/pkg-config (0.29.1) Run-time dependency pixman-1 found: YES 0.38.4 Run-time dependency zlib found: YES 1.2.11 Library aio skipped: feature linux_aio disabled Run-time dependency liburing found: NO (tried pkgconfig) Dependency libxml-2.0 skipped: feature libxml2 disabled Dependency libnfs skipped: feature libnfs disabled Run-time dependency appleframeworks found: NO (tried framework) Run-time dependency libseccomp found: YES 2.5.1 Has header "cap-ng.h" : YES Library cap-ng found: YES Run-time dependency xkbcommon found: NO (tried pkgconfig) Library vdeplug skipped: feature vde disabled Run-time dependency libpulse found: NO (tried pkgconfig) Run-time dependency alsa found: NO (tried pkgconfig) Run-time dependency jack found: NO (tried pkgconfig) Run-time dependency spice-protocol found: NO (tried pkgconfig) Dependency spice-server skipped: feature spice disabled Library rt found: YES Dependency libiscsi skipped: feature libiscsi disabled Run-time dependency libzstd found: NO (tried pkgconfig) Dependency virglrenderer skipped: feature virglrenderer disabled Dependency libcurl skipped: feature curl disabled Dependency libudev skipped: feature libudev disabled Library brlapi skipped: feature brlapi disabled Dependency sdl2 skipped: feature sdl disabled Library rados found: YES Has header "rbd/librbd.h" : YES Library rbd found: YES Dependency glusterfs-api skipped: feature glusterfs disabled Library bz2 skipped: feature bzip2 disabled Has header "lzfse.h" : NO Has header "sys/soundcard.h" : YES Run-time dependency gnutls found: NO (tried pkgconfig) Run-time dependency gnutls found: NO (tried pkgconfig) libgcrypt-config found: NO need ['>=1.8'] Run-time dependency libgcrypt found: NO (tried config-tool) Dependency nettle skipped: feature nettle disabled Dependency gtk+-3.0 skipped: feature gtk disabled Library pam skipped: feature auth_pam disabled Library snappy skipped: feature snappy disabled Library lzo2 skipped: feature lzo disabled Dependency libcacard skipped: feature smartcard disabled Run-time dependency u2f-emu found: NO (tried pkgconfig) Dependency libusbredirparser-0.5 skipped: feature usb_redir disabled Dependency libusb-1.0 skipped: feature libusb disabled Dependency libpmem skipped: feature libpmem disabled Run-time dependency libdaxctl found: NO (tried pkgconfig) Run-time dependency libkeyutils found: NO (tried pkgconfig) Checking for function "gettid" : YES Run-time dependency libselinux found: YES 3.0 Run-time dependency fuse3 found: NO (tried pkgconfig) Run-time dependency libbpf found: NO (tried pkgconfig) Has header "sys/epoll.h" : YES Has header "linux/magic.h" : YES Has header "valgrind/valgrind.h" : NO Has header "linux/btrfs.h" : YES Has header "libdrm/drm.h" : NO Has header "pty.h" : YES Has header "sys/disk.h" : NO Has header "sys/ioccom.h" : NO Has header "sys/kcov.h" : NO Checking for function "accept4" : YES Checking for function "clock_adjtime" : YES Checking for function "dup3" : YES Checking for function "fallocate" : YES Checking for function "posix_fallocate" : YES Checking for function "posix_memalign" : YES Checking for function "ppoll" : YES Checking for function "preadv" : YES Checking for function "sem_timedwait" with dependency threads: YES Checking for function "sendfile" : YES Checking for function "setns" : YES Checking for function "unshare" : YES Checking for function "syncfs" : YES Checking for function "sync_file_range" : YES Checking for function "timerfd_create" : YES Checking for function "copy_file_range" : YES Checking for function "openpty" with dependency -lutil: YES Checking for function "strchrnul" : YES Checking for function "system" : YES Header has symbol "bswap_32" : YES Header has symbol "epoll_create1" : YES Header has symbol "environ" : YES Header has symbol "FALLOC_FL_PUNCH_HOLE" : YES Header has symbol "FALLOC_FL_KEEP_SIZE" : YES Header has symbol "FALLOC_FL_ZERO_RANGE" : YES Has header "linux/fiemap.h" : YES Header has symbol "FS_IOC_FIEMAP" : YES Checking for function "getrandom" : YES Header has symbol "GRND_NONBLOCK" : YES Header has symbol "inotify_init" : YES Header has symbol "inotify_init1" : YES Header has symbol "bswap32" : NO Header has symbol "PR_SET_TIMERSLACK" : YES Header has symbol "IFLA_PROTO_DOWN" : YES Header has symbol "makedev" : YES Header has symbol "optreset" : NO Header has symbol "IPPROTO_MPTCP" : NO Checking whether type "struct sigevent" has member "sigev_notify_thread_id" : NO Checking whether type "struct stat" has member "st_atim" : YES Checking for type "struct iovec" : YES Checking for type "struct utmpx" : YES Checking for type "struct mmsghdr" : YES Program scripts/minikconf.py found: YES (/usr/bin/python3 /home/jenkins/workspace/kata-containers-2.0-ppc64le-containerd-k8s-ubuntu-20-04-PR/go/src/github.com/qemu/qemu/scripts/minikconf.py) Configuring ppc64-softmmu-config-target.h using configuration Configuring ppc64-softmmu-config-devices.mak with command Reading depfile: /home/jenkins/workspace/kata-containers-2.0-ppc64le-containerd-k8s-ubuntu-20-04-PR/go/src/github.com/qemu/qemu/build/meson-private/ppc64-softmmu-config-devices.mak.d Configuring ppc64-softmmu-config-devices.h using configuration Library fdt found: NO Configuring config-host.h using configuration Program scripts/hxtool found: YES (/home/jenkins/workspace/kata-containers-2.0-ppc64le-containerd-k8s-ubuntu-20-04-PR/go/src/github.com/qemu/qemu/scripts/hxtool) Program scripts/shaderinclude.pl found: YES (/usr/bin/env perl /home/jenkins/workspace/kata-containers-2.0-ppc64le-containerd-k8s-ubuntu-20-04-PR/go/src/github.com/qemu/qemu/scripts/shaderinclude.pl) Program scripts/qapi-gen.py found: YES (/usr/bin/python3 /home/jenkins/workspace/kata-containers-2.0-ppc64le-containerd-k8s-ubuntu-20-04-PR/go/src/github.com/qemu/qemu/scripts/qapi-gen.py) Program scripts/qemu-version.sh found: YES (/home/jenkins/workspace/kata-containers-2.0-ppc64le-containerd-k8s-ubuntu-20-04-PR/go/src/github.com/qemu/qemu/scripts/qemu-version.sh) Executing subproject libvhost-user libvhost-user| Project name: libvhost-user libvhost-user| Project version: undefined libvhost-user| C compiler for the host machine: cc (gcc 9.4.0 "cc (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0") libvhost-user| C linker for the host machine: cc ld.bfd 2.34 libvhost-user| Dependency threads found: YES unknown (cached) libvhost-user| Dependency glib-2.0 found: YES 6.2.0 (overridden) libvhost-user| Build targets in project: 9 libvhost-user| Subproject libvhost-user finished. Program cat found: YES (/usr/bin/cat) Program scripts/decodetree.py found: YES (/usr/bin/python3 /home/jenkins/workspace/kata-containers-2.0-ppc64le-containerd-k8s-ubuntu-20-04-PR/go/src/github.com/qemu/qemu/scripts/decodetree.py) Program ../scripts/modules/module_block.py found: YES (/usr/bin/python3 /home/jenkins/workspace/kata-containers-2.0-ppc64le-containerd-k8s-ubuntu-20-04-PR/go/src/github.com/qemu/qemu/block/../scripts/modules/module_block.py) Program ../scripts/block-coroutine-wrapper.py found: YES (/usr/bin/python3 /home/jenkins/workspace/kata-containers-2.0-ppc64le-containerd-k8s-ubuntu-20-04-PR/go/src/github.com/qemu/qemu/block/../scripts/block-coroutine-wrapper.py) Program scripts/modinfo-collect.py found: YES (/home/jenkins/workspace/kata-containers-2.0-ppc64le-containerd-k8s-ubuntu-20-04-PR/go/src/github.com/qemu/qemu/scripts/modinfo-collect.py) Program scripts/modinfo-generate.py found: YES (/home/jenkins/workspace/kata-containers-2.0-ppc64le-containerd-k8s-ubuntu-20-04-PR/go/src/github.com/qemu/qemu/scripts/modinfo-generate.py) Program nm found: YES Program scripts/undefsym.py found: YES (/usr/bin/python3 /home/jenkins/workspace/kata-containers-2.0-ppc64le-containerd-k8s-ubuntu-20-04-PR/go/src/github.com/qemu/qemu/scripts/undefsym.py) Program scripts/feature_to_c.sh found: YES (/bin/sh /home/jenkins/workspace/kata-containers-2.0-ppc64le-containerd-k8s-ubuntu-20-04-PR/go/src/github.com/qemu/qemu/scripts/feature_to_c.sh) Configuring 50-qemu-virtiofsd.json using configuration Program qemu-keymap found: NO Program cp found: YES (/usr/bin/cp) Program sphinx-build-3 sphinx-build skipped: feature docs disabled Program python3 found: YES (/usr/bin/python3) Program diff found: YES (/usr/bin/diff) Program dbus-daemon found: YES (/usr/bin/dbus-daemon) Program /usr/bin/gdbus-codegen found: YES (/usr/bin/gdbus-codegen) Program initrd-stress.sh found: YES (/home/jenkins/workspace/kata-containers-2.0-ppc64le-containerd-k8s-ubuntu-20-04-PR/go/src/github.com/qemu/qemu/tests/migration/initrd-stress.sh) Build targets in project: 395 qemu 6.2.0 Directories Install prefix : /usr BIOS directory : share/qemu/qemu firmware path : /usr/share/qemu/qemu-firmware binary directory : bin library directory : lib/qemu module directory : lib/qemu/qemu libexec directory : libexec/qemu include directory : include config directory : /usr/etc local state directory : /usr/var Manual directory : share/man Doc directory : /usr/share/doc Build directory : /home/jenkins/workspace/kata-containers-2.0-ppc64le-containerd-k8s-ubuntu-20-04-PR/go/src/github.com/qemu/qemu/build Source path : /home/jenkins/workspace/kata-containers-2.0-ppc64le-containerd-k8s-ubuntu-20-04-PR/go/src/github.com/qemu/qemu GIT submodules : ui/keycodemapdb meson dtc Host binaries git : git make : make python : /usr/bin/python3 (version: 3.8) sphinx-build : NO gdb : /usr/bin/gdb genisoimage : /usr/bin/genisoimage Configurable features Documentation : NO system-mode emulation : YES user-mode emulation : NO block layer : YES Install blobs : YES module support : NO fuzzing support : NO Audio drivers : oss Trace backends : log QOM debugging : NO vhost-kernel support : YES vhost-net support : YES vhost-crypto support : YES vhost-scsi support : YES vhost-vsock support : YES vhost-user support : YES vhost-user-blk server support: YES vhost-user-fs support : YES vhost-vdpa support : YES build guest agent : NO Compilation host CPU : ppc64 host endianness : little C compiler : cc Host C compiler : cc C++ compiler : c++ CFLAGS : -O2 -fno-semantic-interposition -falign-functions=32 -D_FORTIFY_SOURCE=2 -O2 -g CXXFLAGS : -O2 -fno-semantic-interposition -falign-functions=32 -D_FORTIFY_SOURCE=2 -O2 -g LDFLAGS : -O2 -fno-semantic-interposition -falign-functions=32 -D_FORTIFY_SOURCE=2 -z noexecstack -z relro -z now QEMU_CFLAGS : -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -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 QEMU_LDFLAGS : -Wl,--warn-common -Wl,-z,relro -Wl,-z,now -fstack-protector-strong profiler : NO link-time optimization (LTO) : NO PIE : YES static build : NO malloc trim support : YES membarrier : NO debug stack usage : NO mutex debugging : NO memory allocator : system avx2 optimization : NO avx512f optimization : NO gprof enabled : NO gcov : NO thread sanitizer : NO CFI support : NO strip binaries : YES sparse : NO mingw32 support : NO Targets and accelerators KVM support : YES HAX support : NO HVF support : NO WHPX support : NO NVMM support : NO Xen support : NO TCG support : NO target list : ppc64-softmmu default devices : YES out of process emulation : YES Block layer support coroutine backend : ucontext coroutine pool : YES Block whitelist (rw) : Block whitelist (ro) : Use block whitelist in tools : NO VirtFS support : YES build virtiofs daemon : YES Live block migration : NO replication support : NO bochs support : NO cloop support : NO dmg support : NO qcow v1 support : NO vdi support : NO vvfat support : NO qed support : NO parallels support : NO FUSE exports : NO Crypto TLS priority : "NORMAL" GNUTLS support : NO libgcrypt : NO nettle : NO crypto afalg : NO rng-none : NO Linux keyring : YES Dependencies SDL support : NO SDL image support : NO GTK support : NO pixman : YES 0.38.4 VTE support : NO slirp support : NO libtasn1 : NO PAM : NO iconv support : NO curses support : NO virgl support : NO curl support : NO Multipath support : NO VNC support : NO OSS support : YES ALSA support : NO PulseAudio support : NO JACK support : NO brlapi support : NO vde support : NO netmap support : NO l2tpv3 support : YES Linux AIO support : NO Linux io_uring support : NO ATTR/XATTR support : YES RDMA support : NO PVRDMA support : NO fdt support : internal libcap-ng support : YES bpf support : NO spice protocol support : NO rbd support : YES xfsctl support : NO smartcard support : NO U2F support : NO libusb : NO usb net redir : NO OpenGL support : NO GBM : NO libiscsi support : NO libnfs support : NO seccomp support : YES 2.5.1 GlusterFS support : NO TPM support : NO libssh support : NO lzo support : NO snappy support : NO bzip2 support : NO lzfse support : NO zstd support : NO NUMA host support : NO libxml2 : NO capstone : NO libpmem support : NO libdaxctl support : NO libudev : NO FUSE lseek : NO selinux : YES 3.0 Subprojects libvhost-user : YES Found ninja-1.10.0 at /usr/bin/ninja ``` ``` [1330/1767] Compiling C object libqemu-ppc64-softmmu.fa.p/target_ppc_excp_helper.c.o FAILED: libqemu-ppc64-softmmu.fa.p/target_ppc_excp_helper.c.o cc -Ilibqemu-ppc64-softmmu.fa.p -I. -I.. -Itarget/ppc -I../target/ppc -I../dtc/libfdt -Iqapi -Itrace -Iui -Iui/shader -I/usr/include/pixman-1 -I/usr/include/glib-2.0 -I/usr/lib/powerpc64le-linux-gnu/glib-2.0/include -fdiagnostics-color=auto -Wall -Winvalid-pch -Werror -std=gnu11 -O2 -g -isystem /home/jenkins/workspace/kata-containers-2.0-ppc64le-containerd-k8s-ubuntu-20-04-PR/go/src/github.com/qemu/qemu/linux-headers -isystem linux-headers -iquote . -iquote /home/jenkins/workspace/kata-containers-2.0-ppc64le-containerd-k8s-ubuntu-20-04-PR/go/src/github.com/qemu/qemu -iquote /home/jenkins/workspace/kata-containers-2.0-ppc64le-containerd-k8s-ubuntu-20-04-PR/go/src/github.com/qemu/qemu/include -iquote /home/jenkins/workspace/kata-containers-2.0-ppc64le-containerd-k8s-ubuntu-20-04-PR/go/src/github.com/qemu/qemu/disas/libvixl -pthread -U_FORTIFY_SOURCE -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 -O2 -fno-semantic-interposition -falign-functions=32 -D_FORTIFY_SOURCE=2 -fPIE -isystem../linux-headers -isystemlinux-headers -DNEED_CPU_H '-DCONFIG_TARGET="ppc64-softmmu-config-target.h"' '-DCONFIG_DEVICES="ppc64-softmmu-config-devices.h"' -MD -MQ libqemu-ppc64-softmmu.fa.p/target_ppc_excp_helper.c.o -MF libqemu-ppc64-softmmu.fa.p/target_ppc_excp_helper.c.o.d -o libqemu-ppc64-softmmu.fa.p/target_ppc_excp_helper.c.o -c ../target/ppc/excp_helper.c ../target/ppc/excp_helper.c: In function ‘powerpc_excp’: ../target/ppc/excp_helper.c:463:29: error: implicit declaration of function ‘cpu_ldl_code’ [-Werror=implicit-function-declaration] 463 | uint32_t insn = cpu_ldl_code(env, env->nip); | ^~~~~~~~~~~~ ../target/ppc/excp_helper.c:463:29: error: nested extern declaration of ‘cpu_ldl_code’ [-Werror=nested-externs] cc1: all warnings being treated as errors [1331/1767] Compiling C object libqemu-ppc64-softmmu.fa.p/hw_block_dataplane_virtio-blk.c.o ```