New issue by mhmdanas on void-packages repository https://github.com/void-linux/void-packages/issues/44176 Description: ### Is this a new report? Yes ### System Info Void 6.1.29_1 x86_64 GenuineIntel uptodate rFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF ### Package(s) Affected qemu-7.1.0_2 ### Does a report exist for this bug with the project's home (upstream) and/or another distro? https://gitlab.com/qemu-project/qemu/-/issues/1541 ### Expected behaviour The package builds successfully. ### Actual behaviour The package fails to compile with the following error: ``` [988/9799] Compiling C object libcommon.fa.p/ui_cursor.c.o [989/9799] Compiling C++ object libcommon.fa.p/disas_nanomips.cpp.o FAILED: libcommon.fa.p/disas_nanomips.cpp.o g++ -m64 -mcx16 -Ilibcommon.fa.p -I../common-user/host/x86_64 -I../linux-user/include/host/x86_64 -I../linux-user/include -I/usr/include/capstone -I/usr/include/pixman-1 -I/usr/include/libpng16 -I/usr/include/spice-server -I/usr/include/cacard -I/usr/include/nss -I/usr/include/nspr -I/usr/include/PCSC -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/spice-1 -I/usr/include/p11-kit-1 -I/usr/include/SDL2 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gio-unix-2.0 -I/usr/include/slirp -I/usr/include/virgl -I/usr/include/libusb-1.0 -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/fribidi -I/usr/include/atk-1.0 -I/usr/include/freetype2 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/vte-2.91 -fdiagnostics-color=auto -Wall -Winvalid-pch -Wnon-virtual-dtor -std=gnu++11 -O2 -g -isystem /builddir/qemu-7.1.0/linux-headers -isystem linux-headers -iquote . -iquote /builddir/qemu-7.1.0 -iquote /builddir/qemu-7.1.0/include -iquote /builddir/qemu-7.1.0/tcg/i386 -pthread -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -U_FORTIFY_SOURCE -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wundef -Wwrite-strings -fno-strict-aliasing -fno-common -fwrapv -Wtype-limits -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wempty-body -Wendif-labels -Wexpansion-to-defined -Wimplicit-fallthrough=2 -Wno-missing-include-dirs -Wno-shift-negative-value -Wno-psabi -fstack-protector-strong -fstack-clash-protection -D_FORTIFY_SOURCE=2 -mtune=generic -O2 -pipe -ffile-prefix-map=/builddir/qemu-7.1.0=. -fPIE -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -DNCURSES_WIDECHAR=1 -D_REENTRANT -Wno-undef -DSTRUCT_IOVEC_DEFINED -MD -MQ libcommon.fa.p/disas_nanomips.cpp.o -MF libcommon.fa.p/disas_nanomips.cpp.o.d -o libcommon.fa.p/disas_nanomips.cpp.o -c ../disas/nanomips.cpp In file included from /usr/lib64/glib-2.0/include/glibconfig.h:9, from /usr/include/glib-2.0/glib/gtypes.h:34, from /usr/include/glib-2.0/glib/galloca.h:34, from /usr/include/glib-2.0/glib.h:32, from ../include/glib-compat.h:32, from ../include/qemu/osdep.h:144, from ../disas/nanomips.cpp:30: /usr/include/glib-2.0/glib/gmacros.h:1076:21: error: standard attributes in middle of decl-specifiers 1076 | # define G_NORETURN [[noreturn]] | ^ ../include/qemu/osdep.h:180:8: note: in expansion of macro 'G_NORETURN' 180 | extern G_NORETURN | ^~~~~~~~~~ /usr/include/glib-2.0/glib/gmacros.h:1076:21: note: standard attributes must precede the decl-specifiers to apply to the declaration, or follow them to apply to the type 1076 | # define G_NORETURN [[noreturn]] | ^ ../include/qemu/osdep.h:180:8: note: in expansion of macro 'G_NORETURN' 180 | extern G_NORETURN | ^~~~~~~~~~ /usr/include/glib-2.0/glib/gmacros.h:1076:21: warning: attribute ignored [-Wattributes] 1076 | # define G_NORETURN [[noreturn]] | ^ ../include/qemu/osdep.h:180:8: note: in expansion of macro 'G_NORETURN' 180 | extern G_NORETURN | ^~~~~~~~~~ /usr/include/glib-2.0/glib/gmacros.h:1076:21: note: an attribute that appertains to a type-specifier is ignored 1076 | # define G_NORETURN [[noreturn]] | ^ ../include/qemu/osdep.h:180:8: note: in expansion of macro 'G_NORETURN' 180 | extern G_NORETURN | ^~~~~~~~~~ [990/9799] Compiling C object libcommon.fa.p/ui_input-keymap.c.o [991/9799] Compiling C object libcommon.fa.p/ui_console.c.o ninja: build stopped: subcommand failed. make[1]: *** [Makefile:162: run-ninja] Error 1 make[1]: Leaving directory '/builddir/qemu-7.1.0/build' make: *** [GNUmakefile:11: all] Error 2 ``` ### Steps to reproduce 1. `./xbps-src pkg qemu`