[Bug 1223892] New: Gimp does not build with GCC 14 because of use of incompatible pointer types
https://bugzilla.suse.com/show_bug.cgi?id=1223892 Bug ID: 1223892 Summary: Gimp does not build with GCC 14 because of use of incompatible pointer types Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other Assignee: screening-team-bugs@suse.de Reporter: mjambor@suse.com QA Contact: qa-bugs@suse.de Blocks: 1220571 Target Milestone: --- Found By: --- Blocker: --- Gimp fails when built with GCC 14 because of use incompatible pointer types, which used to be warnings in previous versions of GCC but are errors by default in GCC 14. For more information, see https://gcc.gnu.org/gcc-14/porting_to.html Upstream issues seem to be: - https://gitlab.gnome.org/GNOME/gimp/-/issues/8807 and - https://gitlab.gnome.org/GNOME/gimp/-/issues/8649 but perhaps there are others. Corresponding Gentoo bug is https://bugs.gentoo.org/875413 Failed build log is available at: https://build.opensuse.org/package/live_build_log/home:rguenther:plgrnd/gimp... -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1223892
Chenzi Cao
https://bugzilla.suse.com/show_bug.cgi?id=1223892
https://bugzilla.suse.com/show_bug.cgi?id=1223892#c1
Dominique Leuenberger
https://bugzilla.suse.com/show_bug.cgi?id=1223892
https://bugzilla.suse.com/show_bug.cgi?id=1223892#c2
Paolo Stivanin
https://bugzilla.suse.com/show_bug.cgi?id=1223892
https://bugzilla.suse.com/show_bug.cgi?id=1223892#c3
Paolo Stivanin
https://bugzilla.suse.com/show_bug.cgi?id=1223892
https://bugzilla.suse.com/show_bug.cgi?id=1223892#c4
--- Comment #4 from Martin Jambor
@Martin: can you please try with the patch I added here https://build.opensuse.org/package/show/home:polslinux:branches:graphics/ gimp ? thanks
You can try yourself with osc build --alternative-project home:rguenther:nextgcc Because it may take a me day or three before I get to it. Thanks for dealing with this! -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1223892
https://bugzilla.suse.com/show_bug.cgi?id=1223892#c5
Paolo Stivanin
https://bugzilla.suse.com/show_bug.cgi?id=1223892
https://bugzilla.suse.com/show_bug.cgi?id=1223892#c6
Paolo Stivanin
https://bugzilla.suse.com/show_bug.cgi?id=1223892
https://bugzilla.suse.com/show_bug.cgi?id=1223892#c7
Martin Jambor
Tested on tumbleweed, all good: https://build.opensuse.org/request/show/1175538
compiles fine now with gcc14
Unfortunately, it does not: https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:G... You can try locally with: osc build --clean --alternative-project home:rguenther:nextgcc standard The failure stopping the build is: [ 178s] file-tiff-load.c: In function ‘load_image’: [ 178s] file-tiff-load.c:572:7: warning: ‘uint16’ is deprecated [-Wdeprecated-declarations] [ 178s] 572 | uint16 planar = PLANARCONFIG_CONTIG; [ 178s] | ^~~~~~ [ 178s] file-tiff-load.c:1239:9: warning: ‘uint32’ is deprecated [-Wdeprecated-declarations] [ 178s] 1239 | uint32 count = 0; [ 178s] | ^~~~~~ [ 178s] file-tiff-load.c:1372:56: error: passing argument 2 of ‘gimp_image_get_resolution’ from incompatible pointer type [-Wincompatible-pointer-types] [ 178s] 1372 | gimp_image_get_resolution (*image, &xres, &yres); [ 178s] | ^~~~~ [ 178s] | | [ 178s] | gfloat * {aka float *} [ 178s] In file included from ../../libgimp/gimp_pdb_headers.h:55, [ 178s] from ../../libgimp/gimp.h:66, [ 178s] from file-tiff-load.c:52: [ 178s] ../../libgimp/gimpimage_pdb.h:179:86: note: expected ‘gdouble *’ {aka ‘double *’} but argument is of type ‘gfloat *’ {aka ‘float *’} [ 178s] 179 | gdouble *xresolution, [ 178s] | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ [ 178s] file-tiff-load.c:1372:63: error: passing argument 3 of ‘gimp_image_get_resolution’ from incompatible pointer type [-Wincompatible-pointer-types] [ 178s] 1372 | gimp_image_get_resolution (*image, &xres, &yres); [ 178s] | ^~~~~ [ 178s] | | [ 178s] | gfloat * {aka float *} [ 178s] ../../libgimp/gimpimage_pdb.h:180:86: note: expected ‘gdouble *’ {aka ‘double *’} but argument is of type ‘gfloat *’ {aka ‘float *’} [ 178s] 180 | gdouble *yresolution); [ 178s] | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1223892
https://bugzilla.suse.com/show_bug.cgi?id=1223892#c8
Paolo Stivanin
https://bugzilla.suse.com/show_bug.cgi?id=1223892
https://bugzilla.suse.com/show_bug.cgi?id=1223892#c9
Martin Jambor
https://bugzilla.suse.com/show_bug.cgi?id=1223892
https://bugzilla.suse.com/show_bug.cgi?id=1223892#c10
--- Comment #10 from Paolo Stivanin
https://bugzilla.suse.com/show_bug.cgi?id=1223892
https://bugzilla.suse.com/show_bug.cgi?id=1223892#c11
Martin Jambor
That's because you are missing the fix itself. The fix was pushed on the 21st of May:
------------------------------------------------------------------- Tue May 21 08:45:44 UTC 2024 - Paolo Stivanin
- Add fix-gcc14-build.patch (fix bsc#1223892)
I did the (clean) package check-out from Factory yesterday and did not get the fix though. I see that there is a submit request to factory, so hopefully after it is accepted, the fix will be there as well. Thanks. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com