gtk3 failed to build from source in Fedora rawhide/f36 https://koji.fedoraproject.org/koji/taskinfo?taskID=81785554 For details on the mass rebuild see: https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild Please fix gtk3 at your earliest convenience and set the bug's status to ASSIGNED when you start fixing it. If the bug remains in NEW state for 8 weeks, gtk3 will be orphaned. Before branching of Fedora 37, gtk3 will be retired, if it still fails to build. For more details on the FTBFS policy, please visit: https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/
Created attachment 1854917 [details] build.log file build.log too big, will only attach last 32768 bytes
Created attachment 1854918 [details] root.log file root.log too big, will only attach last 32768 bytes
Created attachment 1854919 [details] state.log
This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle. Changing version to 36.
It dies on errors like this: FAILED: gtk/libgtk-3.so.0.2404.27.p/gtkimagedefinition.c.o gcc -Igtk/libgtk-3.so.0.2404.27.p -Igtk -I../gtk -I. -I.. -Igdk -I../gdk -Igdk/x11 -I../gdk/x11 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/gio-unix-2.0 -I/usr/ include/libmount -I/usr/include/blkid -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/fribidi -I/usr/include/libxml2 -I/usr/include/cairo -I/usr/ include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/at-spi-2.0 -I/usr/include/cloudproviders -I/usr/include/tracker-3.0 -I/usr/include/tracker-3.0/libtracker-sparql -I/usr/include/json-glib-1.0 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -DG_LOG_USE_STRUCTURED=1 -DGLIB_MIN_RE QUIRED_VERSION=GLIB_VERSION_2_56 -DGLIB_MAX_ALLOWED_VERSION=GLIB_VERSION_2_58 '-DGTK_VERSION="3.24.31"' -D_GNU_SOURCE -fno-strict-aliasing -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 - mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -pthread -DGTK_COMPILATION '-DG_LOG_DOMAIN="Gtk"' -DGTK_PRINT_BACKEND_ENABLE_UNSUPPORTED '-DGTK_BINARY_VERSION="3.0.0"' '-DGTK_HOST="linux"' '-DGTK_DATA_PREFIX="/usr"' '-DGTK_LIBDIR="/usr/lib64"' '-DGTK_LOCALEDIR="/usr/share/locale"' '-DGTK_DATADIR="/usr/share"' '-DGTK_SYSCONFDIR="/etc"' '-DX11_DATA_PREFIX="/usr"' -DINCLUDE_IM_w ayland -DINCLUDE_IM_waylandgtk -fno-strict-aliasing -Wpointer-arith -Wimplicit-function-declaration -Wformat=2 -Wformat-security -Wnested-externs -Wold-style-definition -Wundef -Wunused -Wcast-align -Wmissing-n oreturn -Wmissing-format-attribute -Wmissing-include-dirs -Wlogical-op -Wignored-qualifiers -Wno-discarded-qualifiers -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werr or=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=empty-body -Werror=write-string s -fvisibility=hidden -MD -MQ gtk/libgtk-3.so.0.2404.27.p/gtkimagedefinition.c.o -MF gtk/libgtk-3.so.0.2404.27.p/gtkimagedefinition.c.o.d -o gtk/libgtk-3.so.0.2404.27.p/gtkimagedefinition.c.o -c ../gtk/gtkimage definition.c In function ‘gtk_image_definition_ref’, inlined from ‘gtk_image_definition_new_empty’ at ../gtk/gtkimagedefinition.c:107:10: ../gtk/gtkimagedefinition.c:241:13: error: array subscript ‘union GtkImageDefinition[0]’ is partly outside array bounds of ‘struct GtkImageDefinitionEmpty[1]’ [-Werror=array-bounds] 241 | def->empty.ref_count++; | ~~~~~~~~~~^~~~~~~~~~ ../gtk/gtkimagedefinition.c: In function ‘gtk_image_definition_new_empty’: ../gtk/gtkimagedefinition.c:105:34: note: object ‘empty.4’ of size 8 105 | static GtkImageDefinitionEmpty empty = { GTK_IMAGE_EMPTY, 1 }; | ^~~~~ In function ‘gtk_image_definition_ref’, inlined from ‘gtk_image_definition_new_empty’ at ../gtk/gtkimagedefinition.c:107:10: ../gtk/gtkimagedefinition.c:241:23: error: array subscript ‘union GtkImageDefinition[0]’ is partly outside array bounds of ‘struct GtkImageDefinitionEmpty[1]’ [-Werror=array-bounds] 241 | def->empty.ref_count++; | ~~~~~~~~~~~~~~~~~~~~^~ ../gtk/gtkimagedefinition.c: In function ‘gtk_image_definition_new_empty’: ../gtk/gtkimagedefinition.c:105:34: note: object ‘empty.4’ of size 8 105 | static GtkImageDefinitionEmpty empty = { GTK_IMAGE_EMPTY, 1 }; | ^~~~~
A difference between passing and failing build roots is at <https://koschei.fedoraproject.org/build/11876410>. An upgrade of GCC from 11 to 12 looks suspicious.
(In reply to Petr Pisar from comment #6) > A difference between passing and failing build roots is at > <https://koschei.fedoraproject.org/build/11876410>. An upgrade of GCC from > 11 to 12 looks suspicious. Yes, this is exactly the reason, as mentioned in the upstream merge request, which is still waiting further review.