diff options
| author | Martin Jansa <martin.jansa@gmail.com> | 2024-05-21 08:35:57 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-05-22 10:21:27 +0100 |
| commit | 94168037a1abab550e8e76ac33295a899eb4015f (patch) | |
| tree | 7e6198e0c9e0d544cf9e3e582cd7834af8b191ec /meta | |
| parent | b77236fdeb93e75044e709694c21e33a1fcd28fc (diff) | |
| download | poky-94168037a1abab550e8e76ac33295a899eb4015f.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: 094273bd7d1768e14fbdcd2f239bee14c630a625)
Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/recipes-devtools/cdrtools/cdrtools-native_3.01.bb | 6 |
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 98308e5d37..4f70ac01db 100644 --- a/meta/recipes-devtools/cdrtools/cdrtools-native_3.01.bb +++ b/meta/recipes-devtools/cdrtools/cdrtools-native_3.01.bb | |||
| @@ -19,13 +19,17 @@ SRC_URI = " \ | |||
| 19 | SRC_URI[md5sum] = "7d45c5b7e1f78d85d1583b361aee6e8b" | 19 | SRC_URI[md5sum] = "7d45c5b7e1f78d85d1583b361aee6e8b" |
| 20 | SRC_URI[sha256sum] = "ed282eb6276c4154ce6a0b5dee0bdb81940d0cbbfc7d03f769c4735ef5f5860f" | 20 | SRC_URI[sha256sum] = "ed282eb6276c4154ce6a0b5dee0bdb81940d0cbbfc7d03f769c4735ef5f5860f" |
| 21 | 21 | ||
| 22 | EXTRA_OEMAKE = "-e MAKEFLAGS=" | 22 | EXTRA_OEMAKE = "-e MAKEFLAGS= CPPOPTX='${CPPFLAGS}' COPTX='${CFLAGS}' C++OPTX='${CXXFLAGS}' LDOPTX='${LDFLAGS}' GMAKE_NOWARN='true'" |
| 23 | 23 | ||
| 24 | # Stop failures when 'cc' can't be found | 24 | # Stop failures when 'cc' can't be found |
| 25 | export ac_cv_prog_CC = "${CC}" | 25 | export ac_cv_prog_CC = "${CC}" |
| 26 | 26 | ||
| 27 | inherit native | 27 | inherit native |
| 28 | 28 | ||
| 29 | # Use -std=gnu89 to build with gcc-14 (https://bugs.gentoo.org/903876) | ||
| 30 | # this needs to be after native inherit (which sets CFLAGS to BUILD_CFLAGS) | ||
| 31 | CFLAGS += "-std=gnu89" | ||
| 32 | |||
| 29 | do_configure() { | 33 | do_configure() { |
| 30 | install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}/autoconf | 34 | install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.sub ${S}/autoconf |
| 31 | install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}/autoconf | 35 | install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}/autoconf |
