Skip to contentSkip to conversation

recipes: Update for gcc v14 support

PATCH New Ryan Eatmon 1 participant 1 message May 31, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 recipes: Update for gcc v14 support

One of the changes in gcc v14 is making implicit-function-declaration an error. For some older software packages the easiest fix is to add -fpermissive to the compile line.

---
 meta-arago-extras/recipes-support/cclink/ccief-basic_git.bb   | 2 ++
 meta-arago-test/recipes-devtools/cpuloadgen/cpuloadgen_git.bb | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)
meta-arago-extras/recipes-support/cclink/ccief-basic_git.bb +2 -0
index a2ade425..a39f8df8 100644
@@ -20,6 +20,8 @@ S = "${WORKDIR}/git"
 
 TARGET_CC_ARCH += "${LDFLAGS}"
 
+EXTRA_OEMAKE = "CC="${CC} -fpermissive""
+
 do_compile() {
 # build Master sample application
     cd ${S}/CCIEF-BASIC_Master/build/linux
meta-arago-test/recipes-devtools/cpuloadgen/cpuloadgen_git.bb +2 -1
index 7f734558..751f91c0 100644
@@ -14,7 +14,8 @@ SRC_URI = "git://github.com/ptitiano/cpuloadgen.git;protocol=https;branch=${BRAN
 
 S = "${WORKDIR}/git"
 
-EXTRA_OEMAKE = "DESTDIR=${D}${bindir} CROSS_COMPILE=${TARGET_PREFIX} CC="${CC}""
+EXTRA_OEMAKE = "DESTDIR=${D}${bindir} CROSS_COMPILE=${TARGET_PREFIX} CC="${CC}" CFLAGS="${CFLAGS}""
+CFLAGS += "-fpermissive"
 
 do_install () {
     install -d ${D}${bindir}
Signature · 1 line
2.17.1