cmpi-bindings: ignore incompatible-pointer-types errors for now.
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
Quoted 46 lines
-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of leimaohui via lists.openembedded.org
Sent: Wednesday, June 5, 2024 2:40 PM
To: [email protected]
Cc: Lei, Maohui <[email protected]>
Subject: [oe] [PATCH 1/2] cmpi-bindings: ignore incompatible-pointer-types errors for now.From: Lei Maohui <[email protected]>
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 <[email protected]>--- meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_1.0.4.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_1.0.4.bb +0
-0@@ -27,7 +27,7 @@ EXTRA_OECMAKE = "-DLIB='${baselib}' \ # With Ninjait fails with:
# ninja: error: build.ninja:282: bad $-escape (literal $ must be written as $$)OECMAKE_GENERATOR= "Unix Makefiles"meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_1.0.4.bb +1
-1- +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
There is already patch covering all such cases detected in my world builds, see "pidgin pidgin-sipe pidgin uw-imap rrdtool cmpi-bindings libdbd-mysql-perl daq" and
"catch2 openldap microsoft-gsl scsirastools pam-ssh-agent-auth sblim-sfcb cker.."
commits in:
https://git.openembedded.org/meta-openembedded/log/?h=master-next
They weren't merged because I think khem wants to motivate people to fix these issues instead of just ignoring them and these 2 are just to keep world builds cleaner while incrementally working on detected issues.
Please check if upstream already has a fix in newer version and backport that or submit fix to upstream and add it to meta-oe.
Major distributions are now switching to gcc-14 as well so it is getting easier to find already created patches in upstream or distros, e.g. gentoo tracker:
https://bugs.gentoo.org/showdependencytree.cgi?id=870412
Quoted 68 lines · leimaohui via lists.openembedded.org
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
LeiQuoted 44 lines
-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of leimaohui via lists.openembedded.org
Sent: Wednesday, June 5, 2024 2:40 PM
To: [email protected]
Cc: Lei, Maohui <[email protected]>
Subject: [oe] [PATCH 1/2] cmpi-bindings: ignore incompatible-pointer-types errors for now.From: Lei Maohui <[email protected]>
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 <[email protected]>--- meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_1.0.4.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_1.0.4.bb +0
-0@@ -27,7 +27,7 @@ EXTRA_OECMAKE = "-DLIB='${baselib}' \ # With Ninjait fails with:
# ninja: error: build.ninja:282: bad $-escape (literal $ must be written as $$)OECMAKE_GENERATOR= "Unix Makefiles"meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_1.0.4.bb +1
-1- +CFLAGS += "-Wno-error=incompatible-pointer-types" FILES:${PN} =+"${libdir}/cmpi/libpy3CmpiProvider.so${PYTHON_SITEPACKAGES_DIR}/*"
FILES:${PN}-dbg =+ "${libdir}/cmpi/.debug/libpyCmpiProvider.so"Quoted 2 lines
--
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/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Thank you very much, I got it. I'll get methods from upstream instead of ignore the error.
Quoted 105 lines
-----Original Message-----
From: Martin Jansa <[email protected]>
Sent: Wednesday, June 5, 2024 5:11 PM
To: Lei, Maohui <[email protected]>
Cc: [email protected]
Subject: Re: [oe] [PATCH 1/2] cmpi-bindings: ignore incompatible-pointer-types errors for now.There is already patch covering all such cases detected in my world builds, see "pidgin pidgin-sipe pidgin uw-imap rrdtool cmpi-bindings libdbd-mysql-perl daq" and
"catch2 openldap microsoft-gsl scsirastools pam-ssh-agent-auth sblim-sfcb cker.."
commits in:
https://git.openembedded.org/meta-openembedded/log/?h=master-nextThey weren't merged because I think khem wants to motivate people to fix these issues instead of just ignoring them and these 2 are just to keep world builds cleaner while incrementally working on detected issues.
Please check if upstream already has a fix in newer version and backport that or submit fix to upstream and add it to meta-oe.
Major distributions are now switching to gcc-14 as well so it is getting easier to find already created patches in upstream or distros, e.g. gentoo tracker:
https://bugs.gentoo.org/showdependencytree.cgi?id=870412Quoted 4 lines · leimaohui via lists.openembedded.org
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.
Quoted 1 line
One is ignore incompatible-pointer-types, the other is submitting a patch of
source code.
Quoted 54 lines
I'm not sure which method is more popular...
Best regards
LeiQuoted 47 lines
-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of leimaohui via lists.openembedded.org
Sent: Wednesday, June 5, 2024 2:40 PM
To: [email protected]
Cc: Lei, Maohui <[email protected]>
Subject: [oe] [PATCH 1/2] cmpi-bindings: ignore incompatible-pointer-types errors for now.From: Lei Maohui <[email protected]>
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 <[email protected]>--- 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..d062e46bb9100644meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_1.0.4.bb +0
-0@@ -27,7 +27,7 @@ EXTRA_OECMAKE = "-DLIB='${baselib}' \ # WithNinja it fails with:
# ninja: error: build.ninja:282: bad $-escape (literal $ must be
written as $$)OECMAKE_GENERATOR= "Unix Makefiles"meta-oe/recipes-extended/cmpi-bindings/cmpi-bindings_1.0.4.bb +1
-1- +CFLAGS += "-Wno-error=incompatible-pointer-types" FILES:${PN} =+"${libdir}/cmpi/libpy3CmpiProvider.so${PYTHON_SITEPACKAGES_DIR}/*"
FILES:${PN}-dbg =+ "${libdir}/cmpi/.debug/libpyCmpiProvider.so"Quoted 11 lines
Quoted 2 lines
--
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/3617156
Group Owner: [email protected] Unsubscribe:https://lists.openembedded.org/g/openembedded-devel/unsub
Quoted 3 lines
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-