Skip to contentSkip to conversation

cpuloadgen: force older GNU/C standard

PATCH New Denys Dmytriyenko 1 participant 2 messages May 6, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 cpuloadgen: force older GNU/C standard

From: Denys Dmytriyenko <[email protected]>

This is an old code base based on Dhrystone and hasn't been updated in a very long time. It now fails to compile with gcc-15 (C23 standard). Force compilation with GNU/C11 standard instead.

---
 meta-arago-test/recipes-devtools/cpuloadgen/cpuloadgen_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arago-test/recipes-devtools/cpuloadgen/cpuloadgen_git.bb +1 -1
index 751f91c0..12d0905d 100644
@@ -15,7 +15,7 @@ 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}" CFLAGS="${CFLAGS}""
-CFLAGS += "-fpermissive"
+CFLAGS += "-fpermissive -std=gnu11"
 
 do_install () {
     install -d ${D}${bindir}
Signature · 1 line
2.25.1
#1 lore raw

PATCH 2/2 arm-benchmarks: force older GNU/C standard

From: Denys Dmytriyenko <[email protected]>

This is an old code base based on Dhrystone and hasn't been updated in a very long time. It now fails to compile with gcc-15 (C23 standard). Force compilation with GNU/C11 standard instead.

---
 .../recipes-benchmark/arm-benchmarks/arm-benchmarks_1.3.bb      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-arago-test/recipes-benchmark/arm-benchmarks/arm-benchmarks_1.3.bb +1 -1
index 3e67b960..208f65dd 100644
@@ -15,7 +15,7 @@ S = "${WORKDIR}/git"
 
 do_compile() {
 	export CROSS_COMPILE=${TARGET_PREFIX}
-	export CFLAGS='${TARGET_CC_ARCH}'
+	export CFLAGS='${TARGET_CC_ARCH} -std=gnu11'
 	# build the release version
 	oe_runmake release CC="${CC}"
 }
Signature · 1 line
2.25.1