diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2024-06-03 11:48:33 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-03 11:48:33 -0300 |
commit | 953d47565e1b2fa8735fbdc5b748e05b2d3fa7c7 (patch) | |
tree | 87f784b65938bd1a67f21336d91e49b7b45da0d3 | |
parent | 7bc77fd26ec73e50154b920b808302f8cc4ad6ac (diff) | |
parent | 2dd7d0824d56932f090600680f797c4d5eb9c9f8 (diff) | |
download | meta-freescale-953d47565e1b2fa8735fbdc5b748e05b2d3fa7c7.tar.gz |
Merge pull request #1832 from MaxKrummenacher/master
Fixes as GCC-14 by default errors out on more what used to be warnings
6 files changed, 63 insertions, 1 deletions
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.22.5.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.22.5.imx.bb index 3366a627..39c1bfe1 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.22.5.imx.bb +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.22.5.imx.bb | |||
@@ -211,6 +211,13 @@ PACKAGECONFIG_G2D:imxgpu2d ??= "g2d" | |||
211 | PACKAGECONFIG[g2d] = ",,virtual/libg2d" | 211 | PACKAGECONFIG[g2d] = ",,virtual/libg2d" |
212 | PACKAGECONFIG[tinycompress] = "-Dtinycompress=enabled,-Dtinycompress=disabled,tinycompress" | 212 | PACKAGECONFIG[tinycompress] = "-Dtinycompress=enabled,-Dtinycompress=disabled,tinycompress" |
213 | 213 | ||
214 | # GCC-14 otherwise errors out | ||
215 | CFLAGS += " \ | ||
216 | -Wno-error=implicit-function-declaration \ | ||
217 | -Wno-error=incompatible-pointer-types \ | ||
218 | -Wno-error=return-mismatch \ | ||
219 | -Wno-error=int-conversion \ | ||
220 | " | ||
214 | EXTRA_OEMESON += " \ | 221 | EXTRA_OEMESON += " \ |
215 | -Dc_args="${CFLAGS} -I${STAGING_INCDIR_IMX}" \ | 222 | -Dc_args="${CFLAGS} -I${STAGING_INCDIR_IMX}" \ |
216 | " | 223 | " |
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.22.5.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.22.5.imx.bb index dd7869a9..944cf8f5 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.22.5.imx.bb +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_1.22.5.imx.bb | |||
@@ -135,6 +135,8 @@ PACKAGECONFIG_G2D:imxgpu2d ??= "g2d" | |||
135 | PACKAGECONFIG[g2d] = ",,virtual/libg2d" | 135 | PACKAGECONFIG[g2d] = ",,virtual/libg2d" |
136 | PACKAGECONFIG[viv-fb] = ",,virtual/libgles2" | 136 | PACKAGECONFIG[viv-fb] = ",,virtual/libgles2" |
137 | 137 | ||
138 | # GCC-14 otherwise errors out | ||
139 | CFLAGS += "-Wno-error=incompatible-pointer-types" | ||
138 | EXTRA_OEMESON += "-Dc_args="${CFLAGS} -I${STAGING_INCDIR_IMX}"" | 140 | EXTRA_OEMESON += "-Dc_args="${CFLAGS} -I${STAGING_INCDIR_IMX}"" |
139 | 141 | ||
140 | # links with imx-gpu libs which are pre-built for glibc | 142 | # links with imx-gpu libs which are pre-built for glibc |
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.22.5.imx.bb b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.22.5.imx.bb index 9e09ef93..1234f3ad 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.22.5.imx.bb +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-good_1.22.5.imx.bb | |||
@@ -120,6 +120,11 @@ GLIBC_64BIT_TIME_FLAGS:mx7-nxp-bsp = "" | |||
120 | INSANE_SKIP:mx6-nxp-bsp:append = " 32bit-time" | 120 | INSANE_SKIP:mx6-nxp-bsp:append = " 32bit-time" |
121 | INSANE_SKIP:mx7-nxp-bsp:append = " 32bit-time" | 121 | INSANE_SKIP:mx7-nxp-bsp:append = " 32bit-time" |
122 | 122 | ||
123 | # GCC-14 otherwise errors out | ||
124 | CFLAGS += " \ | ||
125 | -Wno-error=implicit-function-declaration \ | ||
126 | -Wno-error=incompatible-pointer-types \ | ||
127 | " | ||
123 | S = "${WORKDIR}/git" | 128 | S = "${WORKDIR}/git" |
124 | 129 | ||
125 | COMPATIBLE_MACHINE = "(imx-nxp-bsp)" | 130 | COMPATIBLE_MACHINE = "(imx-nxp-bsp)" |
diff --git a/recipes-multimedia/gstreamer/imx-gst1.0-plugin_git.bb b/recipes-multimedia/gstreamer/imx-gst1.0-plugin_git.bb index a13cf30a..7a94b42f 100644 --- a/recipes-multimedia/gstreamer/imx-gst1.0-plugin_git.bb +++ b/recipes-multimedia/gstreamer/imx-gst1.0-plugin_git.bb | |||
@@ -67,6 +67,13 @@ PLATFORM:mx8-nxp-bsp = "MX8" | |||
67 | PLATFORM:mx9-nxp-bsp = "MX9" | 67 | PLATFORM:mx9-nxp-bsp = "MX9" |
68 | 68 | ||
69 | CFLAGS:append:toolchain-clang = " -Wno-implicit-int -Wno-int-conversion -Wno-incompatible-function-pointer-types" | 69 | CFLAGS:append:toolchain-clang = " -Wno-implicit-int -Wno-int-conversion -Wno-incompatible-function-pointer-types" |
70 | # GCC-14 otherwise errors out | ||
71 | CFLAGS += " \ | ||
72 | -Wno-error=int-conversion \ | ||
73 | -Wno-error=incompatible-pointer-types \ | ||
74 | -Wno-error=return-mismatch \ | ||
75 | -Wno-error=implicit-function-declaration \ | ||
76 | " | ||
70 | 77 | ||
71 | # Todo add a mechanism to map possible build targets | 78 | # Todo add a mechanism to map possible build targets |
72 | EXTRA_OEMESON = "-Dplatform=${PLATFORM} \ | 79 | EXTRA_OEMESON = "-Dplatform=${PLATFORM} \ |
diff --git a/recipes-multimedia/imx-opencl-converter/imx-opencl-converter/0001-src-ocl.c-fix-wrong-integer-type.patch b/recipes-multimedia/imx-opencl-converter/imx-opencl-converter/0001-src-ocl.c-fix-wrong-integer-type.patch new file mode 100644 index 00000000..deb81046 --- /dev/null +++ b/recipes-multimedia/imx-opencl-converter/imx-opencl-converter/0001-src-ocl.c-fix-wrong-integer-type.patch | |||
@@ -0,0 +1,38 @@ | |||
1 | From e78af6d0c9cd1a655f6bc17173f6c411b8b34d2f Mon Sep 17 00:00:00 2001 | ||
2 | From: Max Krummenacher <max.krummenacher@toradex.com> | ||
3 | Date: Sat, 1 Jun 2024 11:07:13 +0000 | ||
4 | Subject: [PATCH] src/ocl.c: fix wrong integer type | ||
5 | |||
6 | Fixes: | ||
7 | | .../ocl.c:258:22: error: passing argument 6 of 'clGetProgramBuildInfo' from incompatible pointer type [-Wincompatible-pointer-types] | ||
8 | 258 | 0, NULL, &log_size); | ||
9 | | ^~~~~~~~~ | ||
10 | | | | ||
11 | | int * | ||
12 | In file included from .../recipe-sysroot/usr/include/CL/cl_ext.h:27, | ||
13 | from .../ocl.c:21: | ||
14 | /recipe-sysroot/usr/include/CL/cl.h:1348:45: note: expected 'size_t *' {aka 'long unsigned int *'} but argument is of type 'int *' | ||
15 | 1348 | size_t * param_value_size_ret) CL_API_SUFFIX__VERSION_1_0; | ||
16 | | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ | ||
17 | |||
18 | Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> | ||
19 | --- | ||
20 | src/ocl.c | 2 +- | ||
21 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
22 | |||
23 | diff --git a/src/ocl.c b/src/ocl.c | ||
24 | index f56d9cb..b2b0c52 100644 | ||
25 | --- a/src/ocl.c | ||
26 | +++ b/src/ocl.c | ||
27 | @@ -253,7 +253,7 @@ static OCL_RESULT CreateProgram(ImxOcl* ocl, const char* binName, const char* sr | ||
28 | cl_ret = clBuildProgram (program, 1, &ocl->device, "", NULL, NULL); | ||
29 | if (cl_ret < 0) | ||
30 | { | ||
31 | - int log_size; | ||
32 | + size_t log_size; | ||
33 | cl_ret = clGetProgramBuildInfo(program, ocl->device, CL_PROGRAM_BUILD_LOG, | ||
34 | 0, NULL, &log_size); | ||
35 | |||
36 | -- | ||
37 | 2.42.0 | ||
38 | |||
diff --git a/recipes-multimedia/imx-opencl-converter/imx-opencl-converter_0.2.0.bb b/recipes-multimedia/imx-opencl-converter/imx-opencl-converter_0.2.0.bb index 3dc0a7ea..f3e33e0d 100644 --- a/recipes-multimedia/imx-opencl-converter/imx-opencl-converter_0.2.0.bb +++ b/recipes-multimedia/imx-opencl-converter/imx-opencl-converter_0.2.0.bb | |||
@@ -5,7 +5,10 @@ SECTION = "multimedia" | |||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=44a8052c384584ba09077e85a3d1654f" | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=44a8052c384584ba09077e85a3d1654f" |
6 | DEPENDS = "opencl-headers" | 6 | DEPENDS = "opencl-headers" |
7 | 7 | ||
8 | SRC_URI = "${FSL_MIRROR}/${BP}.bin;fsl-eula=true" | 8 | SRC_URI = " \ |
9 | ${FSL_MIRROR}/${BP}.bin;fsl-eula=true \ | ||
10 | file://0001-src-ocl.c-fix-wrong-integer-type.patch \ | ||
11 | " | ||
9 | SRC_URI[md5sum] = "dc668682189ce740fb46073e62f58066" | 12 | SRC_URI[md5sum] = "dc668682189ce740fb46073e62f58066" |
10 | SRC_URI[sha256sum] = "9f283df500c57421b87d96d9af7022ab490bc241aa28d00755beaadabbcd754b" | 13 | SRC_URI[sha256sum] = "9f283df500c57421b87d96d9af7022ab490bc241aa28d00755beaadabbcd754b" |
11 | 14 | ||