Some small tests and s390x fixes
Subsystems (2)
Hi Richard!
The following changes since commit b0d6c037ea0a825192285f149af72a73a1baaa04:
Update version for v9.1.0-rc2 release (2024-08-15 20:32:37 +1000)
are available in the Git repository at:
https://gitlab.com/thuth/qemu.git tags/pull-request-2024-08-16
for you to fetch changes up to b4be15a9f9e73fa2e7c46da559f10afc94018984:
ci: refresh package lists with lcitool (2024-08-16 09:16:03 +0200)
----------------------------------------------------------------
* Fix a potential build warning in the s390x target code
* Check for the availability of __attribute__((gcc_struct)) on MSYS2
* Fix skipUnless decorators in Avocado tests
* Add missing gtk-vnc package to the CI jobs
----------------------------------------------------------------
Cleber Rosa (1):
tests/avocado: apply proper skipUnless decorator
Daniel P. Berrangé (2):
ci: add gtk-vnc to the deps
ci: refresh package lists with lcitool
Pierrick Bouvier (1):
target/s390x: fix build warning (gcc-12 -fsanitize=thread)
Thomas Huth (1):
meson.build: Check for the availability of __attribute__((gcc_struct)) on MSYS2
meson.build | 5 +++++ target/s390x/tcg/translate.c | 1 - .gitlab-ci.d/cirrus/freebsd-13.vars | 2 +- .gitlab-ci.d/cirrus/macos-13.vars | 2 +- .gitlab-ci.d/cirrus/macos-14.vars | 2 +- scripts/ci/setup/ubuntu/ubuntu-2204-aarch64.yaml | 1 + scripts/ci/setup/ubuntu/ubuntu-2204-s390x.yaml | 1 + tests/avocado/boot_linux_console.py | 1 - tests/avocado/intel_iommu.py | 1 - tests/avocado/linux_initrd.py | 1 - tests/avocado/machine_aspeed.py | 2 -- tests/avocado/machine_mips_malta.py | 2 -- tests/avocado/machine_rx_gdbsim.py | 1 - tests/avocado/reverse_debugging.py | 4 ---- tests/avocado/smmu.py | 1 - tests/docker/dockerfiles/alpine.docker | 1 + tests/docker/dockerfiles/debian-amd64-cross.docker | 1 + tests/docker/dockerfiles/debian-arm64-cross.docker | 1 + tests/docker/dockerfiles/debian-armel-cross.docker | 1 + tests/docker/dockerfiles/debian-armhf-cross.docker | 1 + tests/docker/dockerfiles/debian-i686-cross.docker | 1 + tests/docker/dockerfiles/debian-mips64el-cross.docker | 1 + tests/docker/dockerfiles/debian-mipsel-cross.docker | 1 + tests/docker/dockerfiles/debian-ppc64el-cross.docker | 1 + tests/docker/dockerfiles/debian-s390x-cross.docker | 1 + tests/docker/dockerfiles/debian.docker | 1 + tests/docker/dockerfiles/fedora-win64-cross.docker | 1 + tests/docker/dockerfiles/fedora.docker | 1 + tests/docker/dockerfiles/opensuse-leap.docker | 1 + tests/docker/dockerfiles/ubuntu2204.docker | 1 + tests/lcitool/projects/qemu.yml | 1 + tests/vm/generated/freebsd.json | 1 + 32 files changed, 27 insertions(+), 17 deletions(-)
[PULL 3/5] tests/avocado: apply proper skipUnless decorator
From: Cleber Rosa <[email protected]>
Commit 9b45cc993 added many cases of skipUnless for the sake of organizing flaky tests. But, Python decorators *must* follow what they decorate, so the newlines added should *not* exist there.
Message-ID: <[email protected]>
--- tests/avocado/boot_linux_console.py | 1 - tests/avocado/intel_iommu.py | 1 - tests/avocado/linux_initrd.py | 1 - tests/avocado/machine_aspeed.py | 2 -- tests/avocado/machine_mips_malta.py | 2 -- tests/avocado/machine_rx_gdbsim.py | 1 - tests/avocado/reverse_debugging.py | 4 ---- tests/avocado/smmu.py | 1 - 8 files changed, 13 deletions(-)
tests/avocado/boot_linux_console.py +0 -1
@@ -1522,7 +1522,6 @@ def test_ppc_mac99(self): # like issues with a buggy kernel. As a result we don't want it # gating releases on Gitlab. @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test is unstable on GitLab') - def test_sh4_r2d(self): """ :avocado: tags=arch:sh4
tests/avocado/intel_iommu.py +0 -1
@@ -13,7 +13,6 @@ from avocado_qemu.linuxtest import LinuxTest @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test is unstable on GitLab') - class IntelIOMMU(LinuxTest): """ :avocado: tags=arch:x86_64
tests/avocado/linux_initrd.py +0 -1
@@ -54,7 +54,6 @@ def test_with_2gib_file_should_exit_error_msg_with_linux_v3_6(self): self.assertRegex(self.vm.get_log(), expected_msg) @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test is unstable on GitLab') - def test_with_2gib_file_should_work_with_linux_v4_16(self): """ :avocado: tags=flaky
tests/avocado/machine_aspeed.py +0 -2
@@ -323,7 +323,6 @@ def do_test_aarch64_aspeed_sdk_start(self, image): self.wait_for_console_pattern('Starting kernel ...') @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test is unstable on GitLab') - def test_arm_ast2500_evb_sdk(self): """ :avocado: tags=arch:arm
@@ -343,7 +342,6 @@ def test_arm_ast2500_evb_sdk(self): self.wait_for_console_pattern('nodistro.0 ast2500-default ttyS4') @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test is unstable on GitLab') - def test_arm_ast2600_evb_sdk(self): """ :avocado: tags=arch:arm
tests/avocado/machine_mips_malta.py +0 -2
@@ -102,7 +102,6 @@ def test_mips_malta_i6400_framebuffer_logo_1core(self): self.do_test_i6400_framebuffer_logo(1) @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test is unstable on GitLab') - def test_mips_malta_i6400_framebuffer_logo_7cores(self): """ :avocado: tags=arch:mips64el
@@ -114,7 +113,6 @@ def test_mips_malta_i6400_framebuffer_logo_7cores(self): self.do_test_i6400_framebuffer_logo(7) @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test is unstable on GitLab') - def test_mips_malta_i6400_framebuffer_logo_8cores(self): """ :avocado: tags=arch:mips64el
tests/avocado/machine_rx_gdbsim.py +0 -1
@@ -49,7 +49,6 @@ def test_uboot(self): #exec_command_and_wait_for_pattern(self, 'version', gcc_version) @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test is unstable on GitLab') - def test_linux_sash(self): """ Boots a Linux kernel and checks that the console is operational.
tests/avocado/reverse_debugging.py +0 -4
@@ -207,7 +207,6 @@ def get_pc(self, g): # unidentified gitlab timeout problem @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test is unstable on GitLab') - def test_x86_64_pc(self): """ :avocado: tags=arch:x86_64
@@ -225,7 +224,6 @@ class ReverseDebugging_AArch64(ReverseDebugging): # unidentified gitlab timeout problem @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test is unstable on GitLab') - def test_aarch64_virt(self): """ :avocado: tags=arch:aarch64
@@ -250,7 +248,6 @@ class ReverseDebugging_ppc64(ReverseDebugging): # unidentified gitlab timeout problem @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test is unstable on GitLab') - def test_ppc64_pseries(self): """ :avocado: tags=arch:ppc64
@@ -265,7 +262,6 @@ def test_ppc64_pseries(self): # See https://gitlab.com/qemu-project/qemu/-/issues/1992 @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test is unstable on GitLab') - def test_ppc64_powernv(self): """ :avocado: tags=arch:ppc64
tests/avocado/smmu.py +0 -1
@@ -14,7 +14,6 @@ from avocado_qemu.linuxtest import LinuxTest @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test is unstable on GitLab') - class SMMU(LinuxTest): """ :avocado: tags=accel:kvm
Signature · 1 line
2.46.0
Re: [PULL 3/5] tests/avocado: apply proper skipUnless decorator
Quoted 29 lines · Thomas Huth
From: Cleber Rosa <[email protected]>
Commit
9b45cc993added many cases of skipUnless for the sake of organizing flaky tests. But, Python decorators *must* follow what they decorate, so the newlines added should *not* exist there.Signed-off-by Cleber Rosa <[email protected]>Reviewed-by Philippe Mathieu-Daudé <[email protected]>Reviewed-by Thomas Huth <[email protected]>Tested-by Marcin Juszkiewicz <[email protected]>Message-ID: <[email protected]>
Signed-off-by Thomas Huth <[email protected]>--- tests/avocado/boot_linux_console.py | 1 - tests/avocado/intel_iommu.py | 1 - tests/avocado/linux_initrd.py | 1 - tests/avocado/machine_aspeed.py | 2 -- tests/avocado/machine_mips_malta.py | 2 -- tests/avocado/machine_rx_gdbsim.py | 1 - tests/avocado/reverse_debugging.py | 4 ---- tests/avocado/smmu.py | 1 - 8 files changed, 13 deletions(-)tests/avocado/machine_rx_gdbsim.py +0
-0
tests/avocado/machine_rx_gdbsim.py def test_uboot(self): · line 54
Quoted 7 lines
tests/avocado/machine_rx_gdbsim.py +0
-1@@ -49,7 +49,6 @@ def test_uboot(self): #exec_command_and_wait_for_pattern(self, 'version', gcc_version) @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test is unstable on GitLab') - def test_linux_sash(self): """ Boots a Linux kernel and checks that the console is operational.
For some weird reason a part of this patch is missing...
Re: [PULL 3/5] tests/avocado: apply proper skipUnless decorator
Quoted 25 lines · Philippe Mathieu-Daudé
Quoted 22 lines · Thomas Huth
From: Cleber Rosa <[email protected]>
Commit
9b45cc993added many cases of skipUnless for the sake of organizing flaky tests. But, Python decorators *must* follow what they decorate, so the newlines added should *not* exist there.Signed-off-by Cleber Rosa <[email protected]>Reviewed-by Philippe Mathieu-Daudé <[email protected]>Reviewed-by Thomas Huth <[email protected]>Tested-by Marcin Juszkiewicz <[email protected]>Message-ID: <[email protected]>
Signed-off-by Thomas Huth <[email protected]>---
tests/avocado/boot_linux_console.py| 1 -
tests/avocado/intel_iommu.py | 1 -
tests/avocado/linux_initrd.py | 1 -
tests/avocado/machine_aspeed.py | 2 --
tests/avocado/machine_mips_malta.py| 2 --
tests/avocado/machine_rx_gdbsim.py | 1 -
tests/avocado/reverse_debugging.py | 4 ----
tests/avocado/smmu.py | 1 -8 files changed, 13 deletions(-)
Quoted 13 lines
Quoted 11 lines
tests/avocado/machine_rx_gdbsim.py +0
-1@@ -49,7 +49,6 @@ def test_uboot(self): #exec_command_and_wait_for_pattern(self, 'version', gcc_version) @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test is unstable on GitLab') -def
test_linux_sash(self):
"""
Boots a Linux kernel and checks that the console is operational.For some weird reason a part of this patch is missing...
I dropped it on purpose since there was another patch on the list that drops that decorator completely.
Thomas
Re: [PULL 3/5] tests/avocado: apply proper skipUnless decorator
Quoted 40 lines · Thomas Huth
Quoted 25 lines · Philippe Mathieu-Daudé
Quoted 22 lines · Thomas Huth
From: Cleber Rosa <[email protected]>
Commit
9b45cc993added many cases of skipUnless for the sake of organizing flaky tests. But, Python decorators *must* follow what they decorate, so the newlines added should *not* exist there.Signed-off-by Cleber Rosa <[email protected]>Reviewed-by Philippe Mathieu-Daudé <[email protected]>Reviewed-by Thomas Huth <[email protected]>Tested-by Marcin Juszkiewicz <[email protected]>Message-ID: <[email protected]>
Signed-off-by Thomas Huth <[email protected]>---
tests/avocado/boot_linux_console.py| 1 -
tests/avocado/intel_iommu.py | 1 -
tests/avocado/linux_initrd.py | 1 -
tests/avocado/machine_aspeed.py | 2 --
tests/avocado/machine_mips_malta.py| 2 --
tests/avocado/machine_rx_gdbsim.py | 1 -
tests/avocado/reverse_debugging.py | 4 ----
tests/avocado/smmu.py | 1 -8 files changed, 13 deletions(-)Quoted 13 lines
Quoted 11 lines
tests/avocado/machine_rx_gdbsim.py +0
-1@@ -49,7 +49,6 @@ def test_uboot(self): #exec_command_and_wait_for_pattern(self, 'version', gcc_version) @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test is unstable on GitLab') -def
test_linux_sash(self):
"""
Boots a Linux kernel and checks that the console is operational.For some weird reason a part of this patch is missing...
Quoted 1 line
I dropped it on purpose since there was another patch on the list that drops that decorator completely.
This one here, it's even yours ;-) :
https://gitlab.com/qemu-project/qemu/-/commit/8a69613e9ccac6c9eb97fb969348284469fd9395
Thomas
[PULL 1/5] target/s390x: fix build warning (gcc-12 -fsanitize=thread)
In reply to Thomas HuthFrom: Pierrick Bouvier <[email protected]>
Found on debian stable.
../target/s390x/tcg/translate.c: In function ‘get_mem_index’:../target/s390x/tcg/translate.c:398:1: error: control reaches end of non-void function [-Werror=return-type]
398 | }
Message-ID: <[email protected]>
--- target/s390x/tcg/translate.c | 1 - 1 file changed, 1 deletion(-)
target/s390x/tcg/translate.c +0 -1
@@ -392,7 +392,6 @@ static int get_mem_index(DisasContext *s)return MMU_HOME_IDX ;default : g_assert_not_reached(); - break; }#endif }
Signature · 1 line
2.46.0
Re: [PULL 1/5] target/s390x: fix build warning (gcc-12 -fsanitize=thread)
Quoted 21 lines · Thomas Huth
From: Pierrick Bouvier <[email protected]>
Found on debian stable.
../target/s390x/tcg/translate.c: In function ‘get_mem_index’:../target/s390x/tcg/translate.c:398:1: error: control reaches end of non-void function [-Werror=return-type]
398 | }Signed-off-by Pierrick Bouvier <[email protected]>Acked-by Ilya Leoshkevich <[email protected]>Message-ID: <[email protected]>
Signed-off-by Thomas Huth <[email protected]>--- target/s390x/tcg/translate.c | 1 - 1 file changed, 1 deletion(-)target/s390x/tcg/translate.c +0
-0
target/s390x/tcg/translate.c static int get_mem_index(DisasContext *s) · line 395
Quoted 4 lines
target/s390x/tcg/translate.c +0
-1@@ -392,7 +392,6 @@ static int get_mem_index(DisasContext *s)return MMU_HOME_IDX ;default :g_assert_not_reached (); -break ;
Why aren't the other cases problematic?
$ git grep -A1 g_assert_not_reached | fgrep -B1 break accel/tcg/plugin-gen.c:253: g_assert_not_reached(); accel/tcg/plugin-gen.c-254- break; -- block/ssh.c:476: g_assert_not_reached(); block/ssh.c-477- break; -- fpu/softfloat-parts.c.inc:1375: g_assert_not_reached(); fpu/softfloat-parts.c.inc-1376- break; -- fpu/softfloat-parts.c.inc:1388: g_assert_not_reached(); fpu/softfloat-parts.c.inc-1389- break; -- hw/gpio/nrf51_gpio.c:42: g_assert_not_reached(); hw/gpio/nrf51_gpio.c-43- break; -- hw/misc/imx6_ccm.c:303: g_assert_not_reached(); hw/misc/imx6_ccm.c-304- break; -- hw/misc/mac_via.c:497: g_assert_not_reached(); hw/misc/mac_via.c-498- break; -- hw/misc/mac_via.c:558: g_assert_not_reached(); hw/misc/mac_via.c-559- break; -- hw/pci-host/gt64120.c:691: g_assert_not_reached(); hw/pci-host/gt64120.c-692- break; -- hw/pci-host/gt64120.c:935: g_assert_not_reached(); hw/pci-host/gt64120.c-936- break; -- hw/scsi/virtio-scsi.c:359: g_assert_not_reached(); hw/scsi/virtio-scsi.c-360- break; -- hw/tpm/tpm_spapr.c:208: g_assert_not_reached(); hw/tpm/tpm_spapr.c-209- break; -- target/arm/hyp_gdbstub.c:160: g_assert_not_reached(); target/arm/hyp_gdbstub.c-161- break; -- target/riscv/insn_trans/trans_rvv.c.inc:3174: g_assert_not_reached(); target/riscv/insn_trans/trans_rvv.c.inc-3175- break; -- target/riscv/insn_trans/trans_rvv.c.inc:3259: g_assert_not_reached(); target/riscv/insn_trans/trans_rvv.c.inc-3260- break; -- target/riscv/monitor.c:186: g_assert_not_reached(); target/riscv/monitor.c-187- break; -- target/s390x/tcg/translate.c:394: g_assert_not_reached(); target/s390x/tcg/translate.c-395- break; -- tcg/loongarch64/tcg-target.c.inc:652: g_assert_not_reached(); tcg/loongarch64/tcg-target.c.inc-653- break; -- tests/qtest/migration-helpers.c:78: g_assert_not_reached(); tests/qtest/migration-helpers.c-79- break; -- ui/qemu-pixman.c:51: g_assert_not_reached(); ui/qemu-pixman.c-52- break;
Re: [PULL 1/5] target/s390x: fix build warning (gcc-12 -fsanitize=thread)
Quoted 17 lines · Philippe Mathieu-Daudé
Quoted 16 lines · Thomas Huth
From: Pierrick Bouvier <[email protected]>
Found on debian stable.
../target/s390x/tcg/translate.c: In function ‘get_mem_index’:../target/s390x/tcg/translate.c:398:1: error: control reaches end of non-void function [-Werror=return-type] 398 | }Signed-off-by Pierrick Bouvier <[email protected]>Acked-by Ilya Leoshkevich <[email protected]>Message-ID: <[email protected]>
Signed-off-by Thomas Huth <[email protected]>---
target/s390x/tcg/translate.c| 1 -1 file changed, 1 deletion(-)
Quoted 11 lines
Quoted 9 lines
target/s390x/tcg/translate.c +0
-0@@ -392,7 +392,6 @@ static int get_mem_index(DisasContext *s) return MMU_HOME_IDX;default:
g_assert_not_reached();
- break;Why aren't the other cases problematic?
No clue, but I guess we can tackle them once anybody runs into a problem in one of these spots.
Thomas
Re: [PULL 1/5] target/s390x: fix build warning (gcc-12 -fsanitize=thread)
In reply to Philippe Mathieu-DaudéQuoted 81 lines · Philippe Mathieu-Daudé
Quoted 21 lines · Thomas Huth
From: Pierrick Bouvier <[email protected]>
Found on debian stable.
../target/s390x/tcg/translate.c: In function ‘get_mem_index’:../target/s390x/tcg/translate.c:398:1: error: control reaches end of non-void function [-Werror=return-type]398 | }Signed-off-by Pierrick Bouvier <[email protected]>Acked-by Ilya Leoshkevich <[email protected]>Message-ID: <[email protected]>
Signed-off-by Thomas Huth <[email protected]>--- target/s390x/tcg/translate.c | 1 - 1 file changed, 1 deletion(-)target/s390x/tcg/translate.c +0
-0target/s390x/tcg/translate.c static int get_mem_index(DisasContext *s) · line 395
Quoted 4 lines
target/s390x/tcg/translate.c +0
-1@@ -392,7 +392,6 @@ static int get_mem_index(DisasContext *s)return MMU_HOME_IDX ;default :g_assert_not_reached (); -break ;Why aren't the other cases problematic?
$ git grep -A1 g_assert_not_reached | fgrep -B1 break accel/tcg/plugin-gen.c:253: g_assert_not_reached(); accel/tcg/plugin-gen.c-254- break; -- block/ssh.c:476: g_assert_not_reached(); block/ssh.c-477- break; -- fpu/softfloat-parts.c.inc:1375: g_assert_not_reached(); fpu/softfloat-parts.c.inc-1376- break; -- fpu/softfloat-parts.c.inc:1388: g_assert_not_reached(); fpu/softfloat-parts.c.inc-1389- break; -- hw/gpio/nrf51_gpio.c:42: g_assert_not_reached(); hw/gpio/nrf51_gpio.c-43- break; -- hw/misc/imx6_ccm.c:303: g_assert_not_reached(); hw/misc/imx6_ccm.c-304- break; -- hw/misc/mac_via.c:497: g_assert_not_reached(); hw/misc/mac_via.c-498- break; -- hw/misc/mac_via.c:558: g_assert_not_reached(); hw/misc/mac_via.c-559- break; -- hw/pci-host/gt64120.c:691: g_assert_not_reached(); hw/pci-host/gt64120.c-692- break; -- hw/pci-host/gt64120.c:935: g_assert_not_reached(); hw/pci-host/gt64120.c-936- break; -- hw/scsi/virtio-scsi.c:359: g_assert_not_reached(); hw/scsi/virtio-scsi.c-360- break; -- hw/tpm/tpm_spapr.c:208: g_assert_not_reached(); hw/tpm/tpm_spapr.c-209- break; -- target/arm/hyp_gdbstub.c:160: g_assert_not_reached(); target/arm/hyp_gdbstub.c-161- break; -- target/riscv/insn_trans/trans_rvv.c.inc:3174: g_assert_not_reached(); target/riscv/insn_trans/trans_rvv.c.inc-3175- break; -- target/riscv/insn_trans/trans_rvv.c.inc:3259: g_assert_not_reached(); target/riscv/insn_trans/trans_rvv.c.inc-3260- break; -- target/riscv/monitor.c:186: g_assert_not_reached(); target/riscv/monitor.c-187- break; -- target/s390x/tcg/translate.c:394: g_assert_not_reached(); target/s390x/tcg/translate.c-395- break; --
Quoted 9 lines
tcg/loongarch64/tcg-target.c.inc:652: g_assert_not_reached(); tcg/loongarch64/tcg-target.c.inc-653- break; -- tests/qtest/migration-helpers.c:78: g_assert_not_reached(); tests/qtest/migration-helpers.c-79- break; -- ui/qemu-pixman.c:51: g_assert_not_reached(); ui/qemu-pixman.c-52- break;
I'll take a look at constructions where code is present after g_assert_not_reached() and make a series out of it to clean this.
[PULL 4/5] ci: add gtk-vnc to the deps
In reply to Thomas HuthFrom: Daniel P. Berrangé <[email protected]>
The gtk-vnc package is used by the vnc-display-test qtest program. Technically only gvnc is needed, but since we already pull in the gtk3 dep, it is harmless to depend on gtk-vnc.
Message-ID: <[email protected]>
--- tests/lcitool/projects/qemu.yml | 1 + 1 file changed, 1 insertion(+)
tests/lcitool/projects/qemu.yml +1 -0
@@ -32,6 +32,7 @@ packages: - glusterfs - gnutls - gtk3 + - gtk-vnc - hostname - json-c - libaio
Signature · 1 line
2.46.0
[PULL 5/5] ci: refresh package lists with lcitool
In reply to Thomas HuthFrom: Daniel P. Berrangé <[email protected]>
Refresh with the newly added gtk-vnc package
Message-ID: <[email protected]>
--- .gitlab-ci.d/cirrus/freebsd-13.vars | 2 +- .gitlab-ci.d/cirrus/macos-13.vars | 2 +- .gitlab-ci.d/cirrus/macos-14.vars | 2 +- scripts/ci/setup/ubuntu/ubuntu-2204-aarch64.yaml | 1 + scripts/ci/setup/ubuntu/ubuntu-2204-s390x.yaml | 1 + tests/docker/dockerfiles/alpine.docker | 1 + tests/docker/dockerfiles/debian-amd64-cross.docker | 1 + tests/docker/dockerfiles/debian-arm64-cross.docker | 1 + tests/docker/dockerfiles/debian-armel-cross.docker | 1 + tests/docker/dockerfiles/debian-armhf-cross.docker | 1 + tests/docker/dockerfiles/debian-i686-cross.docker | 1 + tests/docker/dockerfiles/debian-mips64el-cross.docker | 1 + tests/docker/dockerfiles/debian-mipsel-cross.docker | 1 + tests/docker/dockerfiles/debian-ppc64el-cross.docker | 1 + tests/docker/dockerfiles/debian-s390x-cross.docker | 1 + tests/docker/dockerfiles/debian.docker | 1 + tests/docker/dockerfiles/fedora-win64-cross.docker | 1 + tests/docker/dockerfiles/fedora.docker | 1 + tests/docker/dockerfiles/opensuse-leap.docker | 1 + tests/docker/dockerfiles/ubuntu2204.docker | 1 + tests/vm/generated/freebsd.json | 1 + 21 files changed, 21 insertions(+), 3 deletions(-)
.gitlab-ci.d/cirrus/freebsd-13.vars +1 -1
@@ -11,6 +11,6 @@ MAKE='/usr/local/bin/gmake' NINJA='/usr/local/bin/ninja' PACKAGING_COMMAND='pkg' PIP3='/usr/local/bin/pip-3.8' -PKGS='alsa-lib bash bison bzip2 ca_root_nss capstone4 ccache cmocka ctags curl cyrus-sasl dbus diffutils dtc flex fusefs-libs3 gettext git glib gmake gnutls gsed gtk3 json-c libepoxy libffi libgcrypt libjpeg-turbo libnfs libslirp libspice-server libssh libtasn1 llvm lzo2 meson mtools ncurses nettle ninja opencv pixman pkgconf png py311-numpy py311-pillow py311-pip py311-sphinx py311-sphinx_rtd_theme py311-tomli py311-yaml python3 rpm2cpio sdl2 sdl2_image snappy sndio socat spice-protocol tesseract usbredir virglrenderer vte3 xorriso zstd' +PKGS='alsa-lib bash bison bzip2 ca_root_nss capstone4 ccache cmocka ctags curl cyrus-sasl dbus diffutils dtc flex fusefs-libs3 gettext git glib gmake gnutls gsed gtk-vnc gtk3 json-c libepoxy libffi libgcrypt libjpeg-turbo libnfs libslirp libspice-server libssh libtasn1 llvm lzo2 meson mtools ncurses nettle ninja opencv pixman pkgconf png py311-numpy py311-pillow py311-pip py311-sphinx py311-sphinx_rtd_theme py311-tomli py311-yaml python3 rpm2cpio sdl2 sdl2_image snappy sndio socat spice-protocol tesseract usbredir virglrenderer vte3 xorriso zstd' PYPI_PKGS='' PYTHON='/usr/local/bin/python3'
.gitlab-ci.d/cirrus/macos-13.vars +1 -1
@@ -11,6 +11,6 @@ MAKE='/opt/homebrew/bin/gmake' NINJA='/opt/homebrew/bin/ninja' PACKAGING_COMMAND='brew' PIP3='/opt/homebrew/bin/pip3' -PKGS='bash bc bison bzip2 capstone ccache cmocka ctags curl dbus diffutils dtc flex gcovr gettext git glib gnu-sed gnutls gtk+3 jemalloc jpeg-turbo json-c libepoxy libffi libgcrypt libiscsi libnfs libpng libslirp libssh libtasn1 libusb llvm lzo make meson mtools ncurses nettle ninja pixman pkg-config python3 rpm2cpio sdl2 sdl2_image snappy socat sparse spice-protocol swtpm tesseract usbredir vde vte3 xorriso zlib zstd' +PKGS='bash bc bison bzip2 capstone ccache cmocka ctags curl dbus diffutils dtc flex gcovr gettext git glib gnu-sed gnutls gtk+3 gtk-vnc jemalloc jpeg-turbo json-c libepoxy libffi libgcrypt libiscsi libnfs libpng libslirp libssh libtasn1 libusb llvm lzo make meson mtools ncurses nettle ninja pixman pkg-config python3 rpm2cpio sdl2 sdl2_image snappy socat sparse spice-protocol swtpm tesseract usbredir vde vte3 xorriso zlib zstd' PYPI_PKGS='PyYAML numpy pillow sphinx sphinx-rtd-theme tomli' PYTHON='/opt/homebrew/bin/python3'
.gitlab-ci.d/cirrus/macos-14.vars +1 -1
@@ -11,6 +11,6 @@ MAKE='/opt/homebrew/bin/gmake' NINJA='/opt/homebrew/bin/ninja' PACKAGING_COMMAND='brew' PIP3='/opt/homebrew/bin/pip3' -PKGS='bash bc bison bzip2 capstone ccache cmocka ctags curl dbus diffutils dtc flex gcovr gettext git glib gnu-sed gnutls gtk+3 jemalloc jpeg-turbo json-c libepoxy libffi libgcrypt libiscsi libnfs libpng libslirp libssh libtasn1 libusb llvm lzo make meson mtools ncurses nettle ninja pixman pkg-config python3 rpm2cpio sdl2 sdl2_image snappy socat sparse spice-protocol swtpm tesseract usbredir vde vte3 xorriso zlib zstd' +PKGS='bash bc bison bzip2 capstone ccache cmocka ctags curl dbus diffutils dtc flex gcovr gettext git glib gnu-sed gnutls gtk+3 gtk-vnc jemalloc jpeg-turbo json-c libepoxy libffi libgcrypt libiscsi libnfs libpng libslirp libssh libtasn1 libusb llvm lzo make meson mtools ncurses nettle ninja pixman pkg-config python3 rpm2cpio sdl2 sdl2_image snappy socat sparse spice-protocol swtpm tesseract usbredir vde vte3 xorriso zlib zstd' PYPI_PKGS='PyYAML numpy pillow sphinx sphinx-rtd-theme tomli' PYTHON='/opt/homebrew/bin/python3'
scripts/ci/setup/ubuntu/ubuntu-2204-aarch64.yaml +1 -0
@@ -49,6 +49,7 @@ packages: - libglusterfs-dev - libgnutls28-dev - libgtk-3-dev + - libgtk-vnc-2.0-dev - libibverbs-dev - libiscsi-dev - libjemalloc-dev
scripts/ci/setup/ubuntu/ubuntu-2204-s390x.yaml +1 -0
@@ -49,6 +49,7 @@ packages: - libglusterfs-dev - libgnutls28-dev - libgtk-3-dev + - libgtk-vnc-2.0-dev - libibverbs-dev - libiscsi-dev - libjemalloc-dev
tests/docker/dockerfiles/alpine.docker +1 -0
@@ -40,6 +40,7 @@ RUN apk update && \ glib-static \ gnutls-dev \ gtk+3.0-dev \ + gtk-vnc-dev \ json-c-dev \ libaio-dev \ libbpf-dev \
tests/docker/dockerfiles/debian-amd64-cross.docker +1 -0
@@ -30,6 +30,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ git \ hostname \ libglib2.0-dev \ + libgtk-vnc-2.0-dev \ libpcre2-dev \ libsndio-dev \ libspice-protocol-dev \
tests/docker/dockerfiles/debian-arm64-cross.docker +1 -0
@@ -30,6 +30,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ git \ hostname \ libglib2.0-dev \ + libgtk-vnc-2.0-dev \ libpcre2-dev \ libsndio-dev \ libspice-protocol-dev \
tests/docker/dockerfiles/debian-armel-cross.docker +1 -0
@@ -30,6 +30,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ git \ hostname \ libglib2.0-dev \ + libgtk-vnc-2.0-dev \ libpcre2-dev \ libsndio-dev \ libspice-protocol-dev \
tests/docker/dockerfiles/debian-armhf-cross.docker +1 -0
@@ -30,6 +30,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ git \ hostname \ libglib2.0-dev \ + libgtk-vnc-2.0-dev \ libpcre2-dev \ libsndio-dev \ libspice-protocol-dev \
tests/docker/dockerfiles/debian-i686-cross.docker +1 -0
@@ -30,6 +30,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ git \ hostname \ libglib2.0-dev \ + libgtk-vnc-2.0-dev \ libpcre2-dev \ libsndio-dev \ libspice-protocol-dev \
tests/docker/dockerfiles/debian-mips64el-cross.docker +1 -0
@@ -30,6 +30,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ git \ hostname \ libglib2.0-dev \ + libgtk-vnc-2.0-dev \ libpcre2-dev \ libsndio-dev \ libspice-protocol-dev \
tests/docker/dockerfiles/debian-mipsel-cross.docker +1 -0
@@ -30,6 +30,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ git \ hostname \ libglib2.0-dev \ + libgtk-vnc-2.0-dev \ libpcre2-dev \ libsndio-dev \ libspice-protocol-dev \
tests/docker/dockerfiles/debian-ppc64el-cross.docker +1 -0
@@ -30,6 +30,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ git \ hostname \ libglib2.0-dev \ + libgtk-vnc-2.0-dev \ libpcre2-dev \ libsndio-dev \ libspice-protocol-dev \
tests/docker/dockerfiles/debian-s390x-cross.docker +1 -0
@@ -30,6 +30,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ git \ hostname \ libglib2.0-dev \ + libgtk-vnc-2.0-dev \ libpcre2-dev \ libsndio-dev \ libspice-protocol-dev \
tests/docker/dockerfiles/debian.docker +1 -0
@@ -55,6 +55,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ libglusterfs-dev \ libgnutls28-dev \ libgtk-3-dev \ + libgtk-vnc-2.0-dev \ libibverbs-dev \ libiscsi-dev \ libjemalloc-dev \
tests/docker/dockerfiles/fedora-win64-cross.docker +1 -0
@@ -34,6 +34,7 @@ exec "$@"\n' > /usr/bin/nosync && \ git \ glib2-devel \ glibc-langpack-en \ + gtk-vnc2-devel \ hostname \ llvm \ make \
tests/docker/dockerfiles/fedora.docker +1 -0
@@ -50,6 +50,7 @@ exec "$@"\n' > /usr/bin/nosync && \ glibc-static \ glusterfs-api-devel \ gnutls-devel \ + gtk-vnc2-devel \ gtk3-devel \ hostname \ jemalloc-devel \
tests/docker/dockerfiles/opensuse-leap.docker +1 -0
@@ -33,6 +33,7 @@ RUN zypper update -y && \ glibc-locale \ glibc-static \ glusterfs-devel \ + gtk-vnc-devel \ gtk3-devel \ hostname \ jemalloc-devel \
tests/docker/dockerfiles/ubuntu2204.docker +1 -0
@@ -55,6 +55,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ libglusterfs-dev \ libgnutls28-dev \ libgtk-3-dev \ + libgtk-vnc-2.0-dev \ libibverbs-dev \ libiscsi-dev \ libjemalloc-dev \
tests/vm/generated/freebsd.json +1 -0
@@ -29,6 +29,7 @@ "gmake", "gnutls", "gsed", + "gtk-vnc", "gtk3", "json-c", "libepoxy",
Signature · 1 line
2.46.0
[PULL 2/5] meson.build: Check for the availability of __attribute__((gcc_struct)) on MSYS2
In reply to Thomas HuthSince quite a while MSYS2 now supports Clang as a compiler, too. Unfortunately, this compiler is lacking the __attribute__((gcc_struct)) that we need for compiling on Windows. But since the compiler is available now, some people started to use it to compile QEMU on MSYS2, apparently ignoring the compiler warnings (see for example the ticket at
https://gitlab.com/qemu-project/qemu/-/issues/2476 ). These builds are likely broken in a couple of spots, so let's make sure that we rather bail out early in the configuration phase instead of allowing the build to succeed with warnings.
Message-ID: <[email protected]>
--- meson.build | 5 +++++ 1 file changed, 5 insertions(+)
meson.build +5 -0
@@ -315,6 +315,11 @@ elif host_os == 'sunos' qemu_common_flags += '-D__EXTENSIONS__' elif host_os == 'haiku' qemu_common_flags += ['-DB_USE_POSITIVE_POSIX_ERRORS', '-D_BSD_SOURCE', '-fPIC'] +elif host_os == 'windows' + if not compiler.compiles('struct x { int y; } __attribute__((gcc_struct));', + args: '-Werror') + error('Your compiler does not support __attribute__((gcc_struct)) - please use GCC instead of Clang') + endif endif # __sync_fetch_and_and requires at least -march=i486. Many toolchains
Signature · 1 line
2.46.0
Richard Henderson
AppliedQuoted 12 lines · Thomas Huth
Hi Richard!
The following changes since commit
b0d6c037ea0a825192285f149af72a73a1baaa04:Update version for v9.1.0-rc2 release (2024-08-15 20:32:37 +1000)are available in the Git repository at:
https://gitlab.com/thuth/qemu.git tags/pull-request-2024-08-16for you to fetch changes up to
b4be15a9f9e73fa2e7c46da559f10afc94018984:
Quoted 7 lines
ci: refresh package lists with lcitool (2024-08-16 09:16:03 +0200)
----------------------------------------------------------------
* Fix a potential build warning in the s390x target code
* Check for the availability of __attribute__((gcc_struct)) on MSYS2
* Fix skipUnless decorators in Avocado tests
* Add missing gtk-vnc package to the CI jobs
Applied, thanks. Please update https://wiki.qemu.org/ChangeLog/9.1 as appropriate.
r~