FTBFS due to missing auto-generated .cl.h files
For some reason in my system it fails to produce the .cl.h files in opencl/ before building the .c files in gegl/opencl; adding the header files as dependencies manually results in the buildsystem complaining that the files don't exist.
Output:
<...>
[255/765] Generating module_common_gpl3.c with a custom command (wrapped by meson to capture output)
[256/765] Compiling C object gegl/libgegl-0.4.so.0.429.1.p/operation_gegl-operation-handlers.c.o
[257/765] Compiling C object gegl/libgegl-0.4.so.0.429.1.p/opencl_gegl-cl-init.c.o
FAILED: gegl/libgegl-0.4.so.0.429.1.p/opencl_gegl-cl-init.c.o
ccache cc -Igegl/libgegl-0.4.so.0.429.1.p -Igegl -I../gegl -I. -I.. -Igegl/buffer -I../gegl/buffer -Igegl/graph -I../gegl/graph -Igegl/module -I../gegl/module -Igegl/opencl -I../gegl/opencl -Igegl/operation -I../g
egl/operation -Igegl/process -I../gegl/process -Igegl/property-types -I../gegl/property-types -I/usr/include/babl-0.1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libmount -I/usr/include/blki
d -I/usr/include/gio-unix-2.0 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu11 -DHAVE_CONFIG_H -Winit-self -Wmissing-declarations -Wpointer-arith -Wno-deprecated-declarations -Wmiss
ing-prototypes -Wold-style-definition -march=native -mtune=native -m64 -pipe -fPIC -ffast-math -funroll-loops -Os -fPIC -pthread '-DLIBDIR="/usr/lib"' '-DG_LOG_DOMAIN="GEGL"' '-DGEGL_LOCALEDIR="/usr/share/locale"'
-MD -MQ gegl/libgegl-0.4.so.0.429.1.p/opencl_gegl-cl-init.c.o -MF gegl/libgegl-0.4.so.0.429.1.p/opencl_gegl-cl-init.c.o.d -o gegl/libgegl-0.4.so.0.429.1.p/opencl_gegl-cl-init.c.o -c ../gegl/opencl/gegl-cl-init.c
../gegl/opencl/gegl-cl-init.c:38:10: fatal error: opencl/random.cl.h: No such file or directory
38 | #include "opencl/random.cl.h"
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
[258/765] Compiling C object gegl/libgegl-0.4.so.0.429.1.p/operation_gegl-operation-meta.c.o
[259/765] Compiling C object gegl/libgegl-0.4.so.0.429.1.p/opencl_gegl-cl-color.c.o
FAILED: gegl/libgegl-0.4.so.0.429.1.p/opencl_gegl-cl-color.c.o
ccache cc -Igegl/libgegl-0.4.so.0.429.1.p -Igegl -I../gegl -I. -I.. -Igegl/buffer -I../gegl/buffer -Igegl/graph -I../gegl/graph -Igegl/module -I../gegl/module -Igegl/opencl -I../gegl/opencl -Igegl/operation -I../g
egl/operation -Igegl/process -I../gegl/process -Igegl/property-types -I../gegl/property-types -I/usr/include/babl-0.1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libmount -I/usr/include/blki
d -I/usr/include/gio-unix-2.0 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu11 -DHAVE_CONFIG_H -Winit-self -Wmissing-declarations -Wpointer-arith -Wno-deprecated-declarations -Wmiss
ing-prototypes -Wold-style-definition -march=native -mtune=native -m64 -pipe -fPIC -ffast-math -funroll-loops -Os -fPIC -pthread '-DLIBDIR="/usr/lib"' '-DG_LOG_DOMAIN="GEGL"' '-DGEGL_LOCALEDIR="/usr/share/locale"'
-MD -MQ gegl/libgegl-0.4.so.0.429.1.p/opencl_gegl-cl-color.c.o -MF gegl/libgegl-0.4.so.0.429.1.p/opencl_gegl-cl-color.c.o.d -o gegl/libgegl-0.4.so.0.429.1.p/opencl_gegl-cl-color.c.o -c ../gegl/opencl/gegl-cl-colo
r.c
../gegl/opencl/gegl-cl-color.c:32:10: fatal error: opencl/colors.cl.h: No such file or directory
32 | #include "opencl/colors.cl.h"
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
[260/765] Compiling C object gegl/libgegl-0.4.so.0.429.1.p/operation_gegl-operation-meta-json.c.o
[261/765] Compiling C object gegl/libgegl-0.4.so.0.429.1.p/operation_gegl-operation-point-composer.c.o
[262/765] Compiling C object gegl/libgegl-0.4.so.0.429.1.p/operation_gegl-operation-point-filter.c.o
[263/765] Compiling C object gegl/libgegl-0.4.so.0.429.1.p/operation_gegl-operation-point-composer3.c.o
[264/765] Compiling C object gegl/libgegl-0.4.so.0.429.1.p/operation_gegl-operation-property-keys.c.o
[265/765] Compiling C object gegl/libgegl-0.4.so.0.429.1.p/operation_gegl-operation-point-render.c.o
[266/765] Compiling C object gegl/libgegl-0.4.so.0.429.1.p/operation_gegl-operation-sink.c.o
ninja: build stopped: subcommand failed.
Edited by Ismael Luceno