Build type: native build
Project name: file-avif
Project version: undefined
C compiler for the host machine: ccache cc (gcc 10.1.0 "cc (GCC) 10.1.0")
C linker for the host machine: cc ld.bfd 2.34.0
C++ compiler for the host machine: ccache c++ (gcc 10.1.0 "c++ (GCC) 10.1.0")
C++ linker for the host machine: c++ ld.bfd 2.34.0
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (1.7.3)
Run-time dependency libavif found: YES 0.7.3
Run-time dependency gimpui-3.0 found: YES 2.99.1
Run-time dependency exiv2 found: YES 0.27.2
Run-time dependency gexiv2 found: YES 0.12.1
Run-time dependency lcms2 found: YES 2.11
Message: We will use dynamic linking with libavif
Build targets in project: 1
Found ninja-1.10.0 at /usr/bin/ninja
[5/6] Compiling C object 'file-avif@exe/file-avif.c.o'
FAILED: file-avif@exe/file-avif.c.o
ccache cc -Ifile-avif@exe -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/gimp-3.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/gegl-0.4 -I/usr/include/gio-unix-2.0 -I/usr/include/json-glib-1.0 -I/usr/include/babl-0.1 -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/at-spi-2.0 -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O3 -pthread -MD -MQ 'file-avif@exe/file-avif.c.o' -MF 'file-avif@exe/file-avif.c.o.d' -o 'file-avif@exe/file-avif.c.o' -c ../file-avif.c
../file-avif.c: In function ‘avif_create_procedure’:
../file-avif.c:166:45: warning: passing argument 4 of ‘gimp_save_procedure_new’ from incompatible pointer type [-Wincompatible-pointer-types]
166 | avif_save, NULL, NULL );
| ^~~~~~~~~
| |
| GimpValueArray * (*)(GimpProcedure *, GimpRunMode, GimpImage *, gint, GimpDrawable **, GFile *, const GimpValueArray *, void *) {aka struct _GimpValueArray * (*)(struct _GimpProcedure *, GimpRunMode, struct _GimpImage *, int, struct _GimpDrawable **, struct _GFile *, const struct _GimpValueArray *, void *)}
In file included from /usr/include/gimp-3.0/libgimp/gimp.h:60,
from ../file-avif.c:49:
/usr/include/gimp-3.0/libgimp/gimpsaveprocedure.h:88:64: note: expected ‘GimpRunSaveFunc’ {aka ‘struct _GimpValueArray * (*)(struct _GimpProcedure *, GimpRunMode, struct _GimpImage *, struct _GimpDrawable *, struct _GFile *, const struct _GimpValueArray *, void *)’} but argument is of type ‘GimpValueArray * (*)(GimpProcedure *, GimpRunMode, GimpImage *, gint, GimpDrawable **, GFile *, const GimpValueArray *, void *)’ {aka ‘struct _GimpValueArray * (*)(struct _GimpProcedure *, GimpRunMode, struct _GimpImage *, int, struct _GimpDrawable **, struct _GFile *, const struct _GimpValueArray *, void *)’}
88 | GimpRunSaveFunc run_func,
| ~~~~~~~~~~~~~~~~~^~~~~~~~
../file-avif.c: In function ‘avif_save’:
../file-avif.c:359:44: warning: passing argument 2 of ‘gimp_export_image’ from incompatible pointer type [-Wincompatible-pointer-types]
359 | export = gimp_export_image ( &image, &n_drawables, &drawables, "AVIF",
| ^~~~~~~~~~~~
| |
| gint * {aka int *}
In file included from /usr/include/gimp-3.0/libgimp/gimpui.h:33,
from ../file-avif.c:50:
/usr/include/gimp-3.0/libgimp/gimpexport.h:84:81: note: expected ‘GimpDrawable **’ {aka ‘struct _GimpDrawable **’} but argument is of type ‘gint *’ {aka ‘int *’}
84 | GimpDrawable **drawable,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
../file-avif.c:359:58: warning: passing argument 3 of ‘gimp_export_image’ from incompatible pointer type [-Wincompatible-pointer-types]
359 | export = gimp_export_image ( &image, &n_drawables, &drawables, "AVIF",
| ^~~~~~~~~~
| |
| GimpDrawable *** {aka struct _GimpDrawable ***}
In file included from /usr/include/gimp-3.0/libgimp/gimpui.h:33,
from ../file-avif.c:50:
/usr/include/gimp-3.0/libgimp/gimpexport.h:85:81: note: expected ‘const gchar *’ {aka ‘const char *’} but argument is of type ‘GimpDrawable ***’ {aka ‘struct _GimpDrawable ***’}
85 | const gchar *format_name,
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
../file-avif.c:359:70: error: incompatible type for argument 4 of ‘gimp_export_image’
359 | export = gimp_export_image ( &image, &n_drawables, &drawables, "AVIF",
| ^~~~~~
| |
| char *
In file included from /usr/include/gimp-3.0/libgimp/gimpui.h:33,
from ../file-avif.c:50:
/usr/include/gimp-3.0/libgimp/gimpexport.h:86:81: note: expected ‘GimpExportCapabilities’ but argument is of type ‘char *’
86 | GimpExportCapabilities capabilities);
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
../file-avif.c:359:16: error: too many arguments to function ‘gimp_export_image’
359 | export = gimp_export_image ( &image, &n_drawables, &drawables, "AVIF",
| ^~~~~~~~~~~~~~~~~
In file included from /usr/include/gimp-3.0/libgimp/gimpui.h:33,
from ../file-avif.c:50:
/usr/include/gimp-3.0/libgimp/gimpexport.h:83:20: note: declared here
83 | GimpExportReturn gimp_export_image (GimpImage **image,
| ^~~~~~~~~~~~~~~~~
ninja: build stopped: subcommand failed.
Error: we failed to compile file-avif!