Message ID | 20240531194607.24199-1-reatmon@ti.com |
---|---|
State | Accepted |
Delegated to: | Ryan Eatmon |
Headers | show |
Series | [meta-arago,master] recipes: Update for gcc v14 support | expand |
diff --git a/meta-arago-extras/recipes-support/cclink/ccief-basic_git.bb b/meta-arago-extras/recipes-support/cclink/ccief-basic_git.bb index a2ade425..a39f8df8 100644 --- a/meta-arago-extras/recipes-support/cclink/ccief-basic_git.bb +++ b/meta-arago-extras/recipes-support/cclink/ccief-basic_git.bb @@ -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 diff --git a/meta-arago-test/recipes-devtools/cpuloadgen/cpuloadgen_git.bb b/meta-arago-test/recipes-devtools/cpuloadgen/cpuloadgen_git.bb index 7f734558..751f91c0 100644 --- a/meta-arago-test/recipes-devtools/cpuloadgen/cpuloadgen_git.bb +++ b/meta-arago-test/recipes-devtools/cpuloadgen/cpuloadgen_git.bb @@ -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}
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. Signed-off-by: Ryan Eatmon <reatmon@ti.com> --- 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(-)