Hi

It seems there are many recipes have the same issue. I found there are two 
methods that fix this issue from git log of poky.
One is ignore incompatible-pointer-types, the other is submitting a patch of 
source code.
I'm not sure which method is more popular...


Best regards
Lei


> -----Original Message-----
> From: openembedded-devel@lists.openembedded.org
> <openembedded-devel@lists.openembedded.org> On Behalf Of leimaohui via
> lists.openembedded.org
> Sent: Wednesday, June 5, 2024 2:40 PM
> To: openembedded-devel@lists.openembedded.org
> Cc: Lei, Maohui <leimao...@fujitsu.com>
> Subject: [oe] [PATCH 1/2] cmpi-bindings: ignore incompatible-pointer-types
> errors for now.
> 
> From: Lei Maohui <leimao...@fujitsu.com>
> 
> GCC 14 implicitly turns a warning into a compiler error:
> 
> |
> /build-ubinux-daily/tmp/work/aarch64-ubinux-linux/cmpi-bindings/1.0.4/git/
> swig/python/../../src/target_python.c:168:21: error: passing argument 1 of
> 'Py_SetProgramName' from incompatible pointer type
> [-Wincompatible-pointer-types]
> |   168 |   Py_SetProgramName("cmpi_swig");
> |       |                     ^~~~~~~~~~~
> |       |                     |
> |       |                     char *
> 
> Signed-off-by: Lei Maohui <leimao...@fujitsu.com>
> ---
>  meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_1.0.4.bb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_1.0.4.bb
> b/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_1.0.4.bb
> index 781dc83da9..d062e46bb9 100644
> --- a/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_1.0.4.bb
> +++ b/meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_1.0.4.bb
> @@ -27,7 +27,7 @@ EXTRA_OECMAKE = "-DLIB='${baselib}' \  # With Ninja
> it fails with:
>  # ninja: error: build.ninja:282: bad $-escape (literal $ must be written as 
> $$)
> OECMAKE_GENERATOR = "Unix Makefiles"
> -
> +CFLAGS += "-Wno-error=incompatible-pointer-types"
>  FILES:${PN} =+"${libdir}/cmpi/libpy3CmpiProvider.so
> ${PYTHON_SITEPACKAGES_DIR}/*"
>  FILES:${PN}-dbg =+ "${libdir}/cmpi/.debug/libpyCmpiProvider.so"
> 
> --
> 2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#110701): 
https://lists.openembedded.org/g/openembedded-devel/message/110701
Mute This Topic: https://lists.openembedded.org/mt/106498591/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to