Opened 4 weeks ago

Last modified 9 days ago

#70738 assigned defect

gimp2 fails to build with gcc14: error: passing argument 2 of 'gimp_image_get_resolution' from incompatible pointer type

Reported by: barracuda156 Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version: 2.10.1
Keywords: Cc: cooljeanius (Eric Gallager)
Port: gimp2

Description

:info:build /bin/sh ../../libtool  --tag=CC   --mode=link ccache /opt/local/bin/gcc-mp-14  -pipe -Os -Wno-deprecated-declarations -std=gnu11 -arch ppc -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Werror=missing-prototypes -Wstrict-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -Wold-style-definition -Wmissing-format-attribute -Wformat-security -Wlogical-op -Wtype-limits -fno-common -fdiagnostics-show-option -Wreturn-type    -L/opt/local/lib -Wl,-headerpad_max_install_names -arch ppc -o file-sgi sgi.o sgi-lib.o ../../libgimp/libgimpui-2.0.la ../../libgimpwidgets/libgimpwidgets-2.0.la ../../libgimpconfig/libgimpconfig-2.0.la ../../libgimpmath/libgimpmath-2.0.la ../../libgimp/libgimp-2.0.la ../../libgimpcolor/libgimpcolor-2.0.la ../../libgimpbase/libgimpbase-2.0.la -L/opt/local/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage -lXfixes -lX11 -lXext -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lintl -lharfbuzz -lfontconfig -lfreetype -L/opt/local/lib -lgegl-0.4 -lgegl-npd-0.4 -lgmodule-2.0 -ljson-glib-1.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lintl -lbabl-0.1  -lintl  -Wl,-framework -Wl,CoreFoundation  -ljpeg 
:info:build libtool: link: ccache /opt/local/bin/gcc-mp-14 -pipe -Os -Wno-deprecated-declarations -std=gnu11 -arch ppc -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Werror=missing-prototypes -Wstrict-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -Wold-style-definition -Wmissing-format-attribute -Wformat-security -Wlogical-op -Wtype-limits -fno-common -fdiagnostics-show-option -Wreturn-type -Wl,-headerpad_max_install_names -arch ppc -o .libs/file-sgi sgi.o sgi-lib.o -Wl,-framework -Wl,CoreFoundation  -L/opt/local/lib ../../libgimp/.libs/libgimpui-2.0.dylib /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_gimp2/gimp2/work/gimp-2.10.38/libgimp/.libs/libgimp-2.0.dylib /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_gimp2/gimp2/work/gimp-2.10.38/libgimpwidgets/.libs/libgimpwidgets-2.0.dylib /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_gimp2/gimp2/work/gimp-2.10.38/libgimpmodule/.libs/libgimpmodule-2.0.dylib ../../libgimpwidgets/.libs/libgimpwidgets-2.0.dylib ../../libgimpconfig/.libs/libgimpconfig-2.0.dylib ../../libgimpmath/.libs/libgimpmath-2.0.dylib ../../libgimp/.libs/libgimp-2.0.dylib /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_gimp2/gimp2/work/gimp-2.10.38/libgimpconfig/.libs/libgimpconfig-2.0.dylib /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_gimp2/gimp2/work/gimp-2.10.38/libgimpmath/.libs/libgimpmath-2.0.dylib /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_gimp2/gimp2/work/gimp-2.10.38/libgimpcolor/.libs/libgimpcolor-2.0.dylib ../../libgimpcolor/.libs/libgimpcolor-2.0.dylib /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_gimp2/gimp2/work/gimp-2.10.38/libgimpbase/.libs/libgimpbase-2.0.dylib /opt/local/lib/liblcms2.dylib ../../libgimpbase/.libs/libgimpbase-2.0.dylib -lgexiv2 -lm /opt/local/lib/libgtk-x11-2.0.dylib /opt/local/lib/libgdk-x11-2.0.dylib -lpangocairo-1.0 /opt/local/lib/libXrender.dylib /opt/local/lib/libXinerama.dylib /opt/local/lib/libXi.dylib /opt/local/lib/libXrandr.dylib /opt/local/lib/libXcursor.dylib /opt/local/lib/libXcomposite.dylib /opt/local/lib/libXdamage.dylib /opt/local/lib/libXfixes.dylib /opt/local/lib/libX11.dylib /opt/local/lib/libXext.dylib -latk-1.0 /opt/local/lib/libcairo.dylib -lgdk_pixbuf-2.0 -lpangoft2-1.0 -lpango-1.0 /opt/local/lib/libharfbuzz.dylib /opt/local/lib/libfontconfig.dylib /opt/local/lib/libfreetype.dylib -lgegl-0.4 -lgegl-npd-0.4 -lgmodule-2.0 -ljson-glib-1.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lbabl-0.1 -lintl -ljpeg -framework ApplicationServices -pthread -framework Cocoa
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_gimp2/gimp2/work/gimp-2.10.38/plug-ins/file-sgi'
:info:build Making all in file-tiff
:info:build make[3]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_gimp2/gimp2/work/gimp-2.10.38/plug-ins/file-tiff'
:info:build ccache /opt/local/bin/gcc-mp-14 -DHAVE_CONFIG_H -I. -I../..  -I../.. -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/pango-1.0 -I/opt/local/include/gio-unix-2.0 -I/opt/local/include/cairo -I/opt/local/include/atk-1.0 -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz -I/opt/local/include/pango-1.0 -I/opt/local/include/fribidi -I/opt/local/include/cairo -I/opt/local/include/pixman-1 -I/opt/local/include/harfbuzz -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/freetype2 -I/opt/local/include/libpng16   -I/opt/local/include/gegl-0.4 -I/opt/local/include/gio-unix-2.0 -I/opt/local/include/json-glib-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/babl-0.1 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include -DGIMP_DISABLE_DEPRECATED -DBABL_DISABLE_DEPRECATED -DGSEAL_ENABLE -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE  -pipe -Os -Wno-deprecated-declarations -std=gnu11 -arch ppc -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Werror=missing-prototypes -Wstrict-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -Wold-style-definition -Wmissing-format-attribute -Wformat-security -Wlogical-op -Wtype-limits -fno-common -fdiagnostics-show-option -Wreturn-type   -MT file-tiff.o -MD -MP -MF .deps/file-tiff.Tpo -c -o file-tiff.o file-tiff.c
:info:build ccache /opt/local/bin/gcc-mp-14 -DHAVE_CONFIG_H -I. -I../..  -I../.. -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/pango-1.0 -I/opt/local/include/gio-unix-2.0 -I/opt/local/include/cairo -I/opt/local/include/atk-1.0 -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz -I/opt/local/include/pango-1.0 -I/opt/local/include/fribidi -I/opt/local/include/cairo -I/opt/local/include/pixman-1 -I/opt/local/include/harfbuzz -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/freetype2 -I/opt/local/include/libpng16   -I/opt/local/include/gegl-0.4 -I/opt/local/include/gio-unix-2.0 -I/opt/local/include/json-glib-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/babl-0.1 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include -DGIMP_DISABLE_DEPRECATED -DBABL_DISABLE_DEPRECATED -DGSEAL_ENABLE -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE  -pipe -Os -Wno-deprecated-declarations -std=gnu11 -arch ppc -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Werror=missing-prototypes -Wstrict-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -Wold-style-definition -Wmissing-format-attribute -Wformat-security -Wlogical-op -Wtype-limits -fno-common -fdiagnostics-show-option -Wreturn-type   -MT file-tiff-io.o -MD -MP -MF .deps/file-tiff-io.Tpo -c -o file-tiff-io.o file-tiff-io.c
:info:build ccache /opt/local/bin/gcc-mp-14 -DHAVE_CONFIG_H -I. -I../..  -I../.. -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/pango-1.0 -I/opt/local/include/gio-unix-2.0 -I/opt/local/include/cairo -I/opt/local/include/atk-1.0 -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz -I/opt/local/include/pango-1.0 -I/opt/local/include/fribidi -I/opt/local/include/cairo -I/opt/local/include/pixman-1 -I/opt/local/include/harfbuzz -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/freetype2 -I/opt/local/include/libpng16   -I/opt/local/include/gegl-0.4 -I/opt/local/include/gio-unix-2.0 -I/opt/local/include/json-glib-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/babl-0.1 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include -DGIMP_DISABLE_DEPRECATED -DBABL_DISABLE_DEPRECATED -DGSEAL_ENABLE -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE  -pipe -Os -Wno-deprecated-declarations -std=gnu11 -arch ppc -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Werror=missing-prototypes -Wstrict-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -Wold-style-definition -Wmissing-format-attribute -Wformat-security -Wlogical-op -Wtype-limits -fno-common -fdiagnostics-show-option -Wreturn-type   -MT file-tiff-load.o -MD -MP -MF .deps/file-tiff-load.Tpo -c -o file-tiff-load.o file-tiff-load.c
:info:build ccache /opt/local/bin/gcc-mp-14 -DHAVE_CONFIG_H -I. -I../..  -I../.. -I/opt/local/include/gtk-2.0 -I/opt/local/lib/gtk-2.0/include -I/opt/local/include/pango-1.0 -I/opt/local/include/gio-unix-2.0 -I/opt/local/include/cairo -I/opt/local/include/atk-1.0 -I/opt/local/include/gdk-pixbuf-2.0 -I/opt/local/include/pango-1.0 -I/opt/local/include/harfbuzz -I/opt/local/include/pango-1.0 -I/opt/local/include/fribidi -I/opt/local/include/cairo -I/opt/local/include/pixman-1 -I/opt/local/include/harfbuzz -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/freetype2 -I/opt/local/include/libpng16   -I/opt/local/include/gegl-0.4 -I/opt/local/include/gio-unix-2.0 -I/opt/local/include/json-glib-1.0 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/babl-0.1 -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include -I/opt/local/include -DGIMP_DISABLE_DEPRECATED -DBABL_DISABLE_DEPRECATED -DGSEAL_ENABLE -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE -DGTK_MULTIHEAD_SAFE  -pipe -Os -Wno-deprecated-declarations -std=gnu11 -arch ppc -Wall -Wdeclaration-after-statement -Wmissing-prototypes -Werror=missing-prototypes -Wstrict-prototypes -Wmissing-declarations -Winit-self -Wpointer-arith -Wold-style-definition -Wmissing-format-attribute -Wformat-security -Wlogical-op -Wtype-limits -fno-common -fdiagnostics-show-option -Wreturn-type   -MT file-tiff-save.o -MD -MP -MF .deps/file-tiff-save.Tpo -c -o file-tiff-save.o file-tiff-save.c
:info:build file-tiff-load.c: In function 'load_image':
:info:build file-tiff-load.c:1372:56: error: passing argument 2 of 'gimp_image_get_resolution' from incompatible pointer type [-Wincompatible-pointer-types]
:info:build  1372 |                     gimp_image_get_resolution (*image, &xres, &yres);
:info:build       |                                                        ^~~~~
:info:build       |                                                        |
:info:build       |                                                        gfloat * {aka float *}
:info:build In file included from ../../libgimp/gimp_pdb_headers.h:55,
:info:build                  from ../../libgimp/gimp.h:66,
:info:build                  from file-tiff-load.c:52:
:info:build ../../libgimp/gimpimage_pdb.h:179:86: note: expected 'gdouble *' {aka 'double *'} but argument is of type 'gfloat *' {aka 'float *'}
:info:build   179 |                                                                 gdouble             *xresolution,
:info:build       |                                                                 ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
:info:build file-tiff-load.c:1372:63: error: passing argument 3 of 'gimp_image_get_resolution' from incompatible pointer type [-Wincompatible-pointer-types]
:info:build  1372 |                     gimp_image_get_resolution (*image, &xres, &yres);
:info:build       |                                                               ^~~~~
:info:build       |                                                               |
:info:build       |                                                               gfloat * {aka float *}
:info:build ../../libgimp/gimpimage_pdb.h:180:86: note: expected 'gdouble *' {aka 'double *'} but argument is of type 'gfloat *' {aka 'float *'}
:info:build   180 |                                                                 gdouble             *yresolution);
:info:build       |                                                                 ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
:info:build make[3]: *** [file-tiff-load.o] Error 1
:info:build make[3]: *** Waiting for unfinished jobs....
:info:build mv -f .deps/file-tiff.Tpo .deps/file-tiff.Po
:info:build mv -f .deps/file-tiff-io.Tpo .deps/file-tiff-io.Po
:info:build mv -f .deps/file-tiff-save.Tpo .deps/file-tiff-save.Po
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_gimp2/gimp2/work/gimp-2.10.38/plug-ins/file-tiff'
:info:build make[2]: *** [all-recursive] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_gimp2/gimp2/work/gimp-2.10.38/plug-ins'
:info:build make[1]: *** [all-recursive] Error 1

Attachments (1)

main.log (3.5 MB) - added by barracuda156 4 weeks ago.

Change History (3)

Changed 4 weeks ago by barracuda156

Attachment: main.log added

comment:1 Changed 4 weeks ago by barracuda156

Port: gimp2 added; gegl removed
Summary: gegl fails to build with gcc14: error: passing argument 2 of 'gimp_image_get_resolution' from incompatible pointer typegimp2 fails to build with gcc14: error: passing argument 2 of 'gimp_image_get_resolution' from incompatible pointer type

comment:2 Changed 9 days ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added
Note: See TracTickets for help on using tickets.