summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2024-05-21 08:35:57 +0200
committerSteve Sakoman <steve@sakoman.com>2024-10-12 05:17:58 -0700
commit3a89e6d7cbbb26e10fe7d783a926b3f611881b63 (patch)
tree284ba149848ca91fdf3cda435de66d14facfdc26
parent592f0221d1672871d3b7d3602821f50a389d5b11 (diff)
downloadpoky-3a89e6d7cbbb26e10fe7d783a926b3f611881b63.tar.gz
cdrtools-native: fix build with gcc-14
Fixes: http://errors.yoctoproject.org/Errors/Details/770525/ | checking whether the C compiler (gcc -isystem/OE/build/oe-core/tmp-glibc/work/x86_64-linux/cdrtools-native/3.01/recipe-sysroot-native/usr/include -O2 -pipe ) works... no | configure: error: installation or configuration problem: C compiler cannot create executables. | RULES/rules.cnf:70: incs/amd-ryzen-threadripper-3970x-32-core-processor-linux-cc/rules.cnf: No such file or directory | make: *** [RULES/rules.cnf:59: incs/amd-ryzen-threadripper-3970x-32-core-processor-linux-cc/rules.cnf] Error 1 | make: *** Waiting for unfinished jobs.... where config.log show it's caused by gcc-14: configure:1189: checking whether the C compiler (gcc -isystem/OE/build/oe-core/tmp-glibc/work/x86_64-linux/cdrtools-native/3.01/recipe-sysroot-native/usr/include -O2 -pipe ) works configure:1211: gcc -o conftest -isystem/OE/build/oe-core/tmp-glibc/work/x86_64-linux/cdrtools-native/3.01/recipe-sysroot-native/usr/include -O2 -pipe -D_GNU_SOURCE conftest.c 1>&5 configure:1208:1: error: return type defaults to 'int' [-Wimplicit-int] configure: failed program was: main(){return(0);} (From OE-Core rev: 6fd1bc0620e6d6ce9b940eaeb68474f4d0b9369b) Signed-off-by: Martin Jansa <martin.jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 094273bd7d1768e14fbdcd2f239bee14c630a625) Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--meta/recipes-devtools/cdrtools/cdrtools-native_3.01.bb6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/recipes-devtools/cdrtools/cdrtools-native_3.01.bb b/meta/recipes-devtools/cdrtools/cdrtools-native_3.01.bb
index 757132eae6..e19939cce2 100644
--- a/meta/recipes-devtools/cdrtools/cdrtools-native_3.01.bb
+++ b/meta/recipes-devtools/cdrtools/cdrtools-native_3.01.bb
@@ -16,13 +16,17 @@ SRC_URI = " \
16SRC_URI[md5sum] = "7d45c5b7e1f78d85d1583b361aee6e8b" 16SRC_URI[md5sum] = "7d45c5b7e1f78d85d1583b361aee6e8b"
17SRC_URI[sha256sum] = "ed282eb6276c4154ce6a0b5dee0bdb81940d0cbbfc7d03f769c4735ef5f5860f" 17SRC_URI[sha256sum] = "ed282eb6276c4154ce6a0b5dee0bdb81940d0cbbfc7d03f769c4735ef5f5860f"
18 18
19EXTRA_OEMAKE = "-e MAKEFLAGS=" 19EXTRA_OEMAKE = "-e MAKEFLAGS= CPPOPTX='${CPPFLAGS}' COPTX='${CFLAGS}' C++OPTX='${CXXFLAGS}' LDOPTX='${LDFLAGS}' GMAKE_NOWARN='true'"
20 20
21# Stop failures when 'cc' can't be found 21# Stop failures when 'cc' can't be found
22export ac_cv_prog_CC = "${CC}" 22export ac_cv_prog_CC = "${CC}"
23 23
24inherit native 24inherit native
25 25
26# Use -std=gnu89 to build with gcc-14 (https://bugs.gentoo.org/903876)
27# this needs to be after native inherit (which sets CFLAGS to BUILD_CFLAGS)
28CFLAGS += "-std=gnu89"
29
26do_install() { 30do_install() {
27 make install GMAKE_NOWARN=true INS_BASE=${prefix} DESTDIR=${D} 31 make install GMAKE_NOWARN=true INS_BASE=${prefix} DESTDIR=${D}
28} 32}