LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   regression on -current with gtk4 (gcc-12.1.0) (https://www.linuxquestions.org/questions/slackware-14/regression-on-current-with-gtk4-gcc-12-1-0-a-4175712132/)

nobodino 05-15-2022 12:26 AM

regression on -current with gtk4 (gcc-12.1.0)
 
gtk4 doesn't build with gcc-12.1.0:

Code:

In function ‘gtk_image_definition_ref’,
    inlined from ‘gtk_image_definition_new_empty’ at ../gtk/gtkimagedefinition.c:67:10:
../gtk/gtkimagedefinition.c:135:23: error: array subscript ‘GtkImageDefinition {aka union _GtkImageDefinition}[0]’ is partly outside array bounds of ‘GtkImageDefinitionEmpty[1]’ {aka ‘struct _GtkImageDefinitionEmpty[1]’} [-Werror=array-bounds]
  135 |  def->empty.ref_count++;
      |  ~~~~~~~~~~~~~~~~~~~~^~
../gtk/gtkimagedefinition.c: In function ‘gtk_image_definition_new_empty’:
../gtk/gtkimagedefinition.c:65:34: note: object ‘empty’ of size 8
  65 |  static GtkImageDefinitionEmpty empty = { GTK_IMAGE_EMPTY, 1 };
      |                                  ^~~~~
cc1: some warnings being treated as errors
[712/1262] Compiling C object gtk/libgtk.a.p/gtkbitset.c.o
ninja: build stopped: subcommand failed.

It doesn't build neither with gtk4-4.4.2.

nobodino 05-16-2022 01:24 AM

It builds fine with the new version gtk4-4.6.4 without any patch.

nobodino 06-18-2022 01:09 AM

it still doesn't build on -current with gcc-12.1.0.

reddog83 06-19-2022 09:01 AM

It builds fine with the new version gtk4-4.7.0 without any patch.

nobodino 07-14-2022 12:43 AM

fixed in -current.


All times are GMT -5. The time now is 05:15 PM.