Skip to contentSkip to conversation

dev86: use gnu17 and ignore incompatible-pointer-types to allow building with gcc-15

PATCH In review [email protected] 2 participants 2 messages May 4, 2025 – May 6, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dev86: use gnu17 and ignore incompatible-pointer-types to allow building with gcc-15

From: Martin Jansa <[email protected]>

The repo from SRC_URI is no longer accessible add temporary work around to allow building with gcc-15.

---
 recipes-extended/dev86/dev86_git.bb | 7 +++++++
 1 file changed, 7 insertions(+)
recipes-extended/dev86/dev86_git.bb +7 -0
index 6414ecfb..d43d1200 100644
@@ -57,4 +57,11 @@ FILES:${PN} += "${libdir}/bcc"
 # unproto.c:188:51: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
 CFLAGS += "-Wno-error=implicit-int -Wno-error=implicit-function-declaration"
 
+# http://errors.yoctoproject.org/Errors/Details/853302/
+CFLAGS += "-std=gnu17"
+
+# http://errors.yoctoproject.org/Errors/Details/853303/
+# ar.c:615:23: error: passing argument 1 of 'ctime' from incompatible pointer type [-Wincompatible-pointer-types]
+CFLAGS += "-Wno-error=incompatible-pointer-types"
+
 EXTRA_OEMAKE += "CFLAGS='${CFLAGS}'"
#1 lore raw

Thanks Martin,

All of the gcc-15 patches are now on master.

Bruce

In message: [meta-virtualization] [PATCH] dev86: use gnu17 and ignore incompatible-pointer-types to allow building with gcc-15

Quoted 36 lines · on 04/05/2025 Martin Jansa via lists.yoctoproject.org wrote:

From: Martin Jansa <[email protected]>

The repo from SRC_URI is no longer accessible add temporary work around to allow building with gcc-15.

---
 recipes-extended/dev86/dev86_git.bb | 7 +++++++
 1 file changed, 7 insertions(+)
recipes-extended/dev86/dev86_git.bb +7 -1
index 6414ecfb..d43d1200 100644
@@ -57,4 +57,11 @@ FILES:${PN} += "${libdir}/bcc"
 # unproto.c:188:51: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
 CFLAGS += "-Wno-error=implicit-int -Wno-error=implicit-function-declaration"
 
+# http://errors.yoctoproject.org/Errors/Details/853302/
+CFLAGS += "-std=gnu17"
+
+# http://errors.yoctoproject.org/Errors/Details/853303/
+# ar.c:615:23: error: passing argument 1 of 'ctime' from incompatible pointer type [-Wincompatible-pointer-types]
+CFLAGS += "-Wno-error=incompatible-pointer-types"
+
 EXTRA_OEMAKE += "CFLAGS='${CFLAGS}'"
 
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#9241): https://lists.yoctoproject.org/g/meta-virtualization/message/9241
Mute This Topic: https://lists.yoctoproject.org/mt/112618426/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-