Bug 2045690 - gtk3: FTBFS in Fedora rawhide/f36: gtkimagedefinition.c:241:13: error: array subscript ‘union GtkImageDefinition[0]’ is partly outside array bounds of ‘struct GtkImageDefinitionEmpty[1]’
Summary: gtk3: FTBFS in Fedora rawhide/f36: gtkimagedefinition.c:241:13: error: array ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gtk3
Version: 36
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: David King
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F36FTBFS F37FTBFS 2071851
TreeView+ depends on / blocked
 
Reported: 2022-01-25 18:23 UTC by Fedora Release Engineering
Modified: 2022-05-17 12:26 UTC (History)
5 users (show)

Fixed In Version: gtk3-3.24.33-1.fc36
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-05-17 12:26:02 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
build.log (32.00 KB, text/plain)
2022-01-25 18:23 UTC, Fedora Release Engineering
no flags Details
root.log (32.00 KB, text/plain)
2022-01-25 18:23 UTC, Fedora Release Engineering
no flags Details
state.log (960 bytes, text/plain)
2022-01-25 18:23 UTC, Fedora Release Engineering
no flags Details


Links
System ID Private Priority Status Summary Last Updated
GNOME Gitlab GNOME gtk merge_requests 4537 0 None None None 2022-03-04 10:28:29 UTC

Description Fedora Release Engineering 2022-01-25 18:23:27 UTC
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/

Comment 1 Fedora Release Engineering 2022-01-25 18:23:30 UTC
Created attachment 1854917 [details]
build.log

file build.log too big, will only attach last 32768 bytes

Comment 2 Fedora Release Engineering 2022-01-25 18:23:31 UTC
Created attachment 1854918 [details]
root.log

file root.log too big, will only attach last 32768 bytes

Comment 3 Fedora Release Engineering 2022-01-25 18:23:32 UTC
Created attachment 1854919 [details]
state.log

Comment 4 Ben Cotton 2022-02-08 20:48:50 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 36 development cycle.
Changing version to 36.

Comment 5 Petr Pisar 2022-04-05 13:11:33 UTC
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 };
      |                                  ^~~~~

Comment 6 Petr Pisar 2022-04-05 13:13:20 UTC
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.

Comment 7 David King 2022-04-05 14:04:13 UTC
(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.


Note You need to log in before you can comment on or make changes to this bug.