[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problem running qos-test when building with gcc12 and LTO
From: |
Dario Faggioli |
Subject: |
Problem running qos-test when building with gcc12 and LTO |
Date: |
Mon, 23 May 2022 19:19:01 +0000 |
User-agent: |
Evolution 3.44.1 (by Flathub.org)) |
Hello!
So, in openSUSE Tumbleweed, we configure QEMU with something like this:
[1], and with gcc version 12.1.0.
When I try to use this configuration for building either v7.0.0 or the
current master branch, the build work, but the following tests fail:
- qos-test for i386
- qos-test for x86_64
- qos-test for aarch64
- qos-test for alpha
As soon as I get rid of _both_ "-flto=auto" _and_ "--enable-lto", the
above tests seem to work fine.
When they fail, they fail immediately, while creating the graph, like
this:
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))}
QTEST_QEMU_IMG=./qemu-img G_TEST_DBUS_DAEMON=../tests/dbus-vmstate-daemon.sh
QTEST_QEMU_STORAGE_DAEMON_BINARY=./storage-daemon/qemu-storage-daemon
QTEST_QEMU_BINARY=./qemu-system-x86_64 ./tests/qtest/qos-test --tap -k
# random seed: R02S90d4b61102dd94459f986c2367d6d375
# starting QEMU: exec ./qemu-system-x86_64 -qtest unix:/tmp/qtest-28822.sock
-qtest-log /dev/null -chardev socket,path=/tmp/qtest-28822.qmp,id=char0 -mon
chardev=char0,mode=control -display none -machine none -accel qtest
QOSStack: full stack, cannot pushAborted
I'm attaching logs of a GOOD and a BAD run of the following command:
MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))} \
QTEST_QEMU_IMG=./qemu-img G_TEST_DBUS_DAEMON=../tests/dbus-vmstate-daemon.sh \
QTEST_QEMU_STORAGE_DAEMON_BINARY=./storage-daemon/qemu-storage-daemon \
QTEST_QEMU_BINARY=./qemu-system-x86_64 ./tests/qtest/qos-test --tap -k
--debug-log -p
Any hints? Any more or different logs I can collect and provide?
Thanks and Regards
[1]
QEMU_EXTRA_CFLAGS="-O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong
-funwind-tables \
-fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type
-flto=auto -g"
./configure \
--python=/usr/bin/python3 \
--extra-cflags="$QEMU_EXTRA_CFLAGS" \
--disable-fuzzing \
--disable-multiprocess \
--disable-stack-protector \
--disable-strip \
--disable-tcg-interpreter \
--disable-qom-cast-debug \
--with-default-devices \
--enable-system --disable-linux-user \
--enable-tools --enable-guest-agent \
--enable-modules \
--disable-module-upgrades \
--enable-slirp=system \
--enable-pie \
--enable-lto \
--enable-docs \
--enable-attr \
--disable-auth-pam \
--enable-bochs \
--enable-brlapi \
--enable-bzip2 \
--enable-cap-ng \
--disable-capstone \
--enable-cloop \
--enable-coroutine-pool \
--disable-crypto-afalg \
--enable-curl \
--enable-curses \
--enable-dmg \
--enable-fdt \
--enable-gio \
--enable-gcrypt \
--enable-glusterfs \
--enable-gnutls \
--enable-gtk \
--disable-hax \
--disable-hvf \
--enable-iconv \
--enable-kvm \
--enable-libdaxctl \
--enable-libiscsi \
--enable-libnfs \
--enable-libpmem \
--enable-libssh \
--enable-libusb \
--enable-linux-aio \
--enable-linux-io-uring \
--enable-lzfse \
--enable-lzo \
--disable-malloc-trim \
--disable-membarrier \
--enable-mpath \
--disable-netmap \
--disable-nettle \
--enable-numa \
--enable-opengl \
--enable-parallels \
--disable-plugins \
--enable-pvrdma \
--enable-qcow1 \
--enable-qed \
--enable-rbd \
--enable-rdma \
--enable-replication \
--disable-safe-stack \
--disable-sanitizers \
--disable-sdl \
--disable-sdl-image \
--enable-seccomp \
--enable-smartcard \
--enable-snappy \
--enable-spice \
--enable-tpm \
--enable-usb-redir \
--enable-vde \
--enable-vdi \
--enable-vhost-kernel \
--enable-vhost-net \
--enable-vhost-user \
--enable-vhost-user-blk-server \
--enable-vhost-vdpa \
--enable-virglrenderer \
--enable-virtfs \
--enable-vnc \
--enable-vnc-jpeg \
--enable-vnc-sasl \
--enable-vte \
--enable-vvfat \
--enable-werror \
--disable-whpx \
--enable-zstd \
--enable-xen \
--enable-xen-pci-passthrough \
--enable-xkbcommon
--
Dario Faggioli, Ph.D
http://about.me/dario.faggioli
Virtualization Software Engineer
SUSE Labs, SUSE https://www.suse.com/
-------------------------------------------------------------------
<<This happens because _I_ choose it to happen!>> (Raistlin Majere)
qos-test-x86_GOOD.log.txt
Description: Text document
qos-test-x86_BAD.log.txt
Description: Text document
signature.asc
Description: This is a digitally signed message part
- Problem running qos-test when building with gcc12 and LTO,
Dario Faggioli <=