diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2022-04-12 15:55:25 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2022-09-26 19:56:21 +0200 |
commit | e7ef2b1fe8046f4d5b050f39e382a1e8969466c2 (patch) | |
tree | 75e38f925071cccc161c174809a91e81f017755d /meta | |
parent | ebb6f4cc76b0f505e63817ec4af8897609e28606 (diff) | |
download | openembedded-core-contrib-jansa/hardknott.tar.gz |
elfutils: restore disable_werror.patch from 0.178 versionjansa/hardknott
* to fix elfutils-native build with newer gcc-11 used in ubuntu-22.04:
elfutils-0.180/libebl/ebl_syscall_abi.c:37:64: error: argument 5 of type ?int *? declared as a pointer [-Werror=array-parameter=]
and elfutils-native build with newer gcc-12 used in ubuntu 22.10:
elfutils-0.183/src/elflint.c:4103:48: error: null pointer dereference [-Werror=null-dereference]
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/elfutils/elfutils_0.183.bb | 1 | ||||
-rw-r--r-- | meta/recipes-devtools/elfutils/files/debian/disable_werror.patch | 20 |
2 files changed, 21 insertions, 0 deletions
diff --git a/meta/recipes-devtools/elfutils/elfutils_0.183.bb b/meta/recipes-devtools/elfutils/elfutils_0.183.bb index c0833686de..7ffaa54790 100644 --- a/meta/recipes-devtools/elfutils/elfutils_0.183.bb +++ b/meta/recipes-devtools/elfutils/elfutils_0.183.bb @@ -22,6 +22,7 @@ SRC_URI = "https://sourceware.org/elfutils/ftp/${PV}/${BP}.tar.bz2 \ file://ptest.patch \ file://0001-tests-Makefile.am-compile-test_nlist-with-standard-C.patch \ file://0001-add-support-for-ipkg-to-debuginfod.cxx.patch \ + file://debian/disable_werror.patch \ " SRC_URI_append_libc-musl = " \ file://0002-musl-libs.patch \ diff --git a/meta/recipes-devtools/elfutils/files/debian/disable_werror.patch b/meta/recipes-devtools/elfutils/files/debian/disable_werror.patch new file mode 100644 index 0000000000..bd98dae4b2 --- /dev/null +++ b/meta/recipes-devtools/elfutils/files/debian/disable_werror.patch @@ -0,0 +1,20 @@ +From: Helmut Grohne <helmut@subdivi.de> +Subject: disable -Werror as it tends to break with new gcc versions +Bug-Debian: https://bugs.debian.org/886004 +Last-Update: 2018-01-01 + +Upstream-Status: Pending [from debian] +Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> + +Index: elfutils-0.176/config/eu.am +=================================================================== +--- elfutils-0.176.orig/config/eu.am ++++ elfutils-0.176/config/eu.am +@@ -73,7 +73,6 @@ AM_CFLAGS = -std=gnu99 -Wall -Wshadow -W + -Wold-style-definition -Wstrict-prototypes -Wtrampolines \ + $(LOGICAL_OP_WARNING) $(DUPLICATED_COND_WARNING) \ + $(NULL_DEREFERENCE_WARNING) $(IMPLICIT_FALLTHROUGH_WARNING) \ +- $(if $($(*F)_no_Werror),,-Werror) \ + $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \ + $(if $($(*F)_no_Wstack_usage),,$(STACK_USAGE_WARNING)) \ + $(if $($(*F)_no_Wpacked_not_aligned),-Wno-packed-not-aligned,) \ |