Skip to contentSkip to conversation

elfutils: fix aarch64-native build failure

PATCH New Jaipaul Cheernam 1 participant 1 message Aug 21

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 elfutils: fix aarch64-native build failure

Backport upstream fix for struct iovec redefinition error when building elfutils-native on aarch64 hosts. Since commit 0e8b57a3 added <fcntl.h> to lib/system.h, glibc's <fcntl.h> pulls in struct iovec via <bits/types/struct_iovec.h>, conflicting with <linux/uio.h> which defines it unconditionally.

The fix switches to <sys/uio.h> which guards the definition with __iovec_defined.

Issue seen on https://autobuilder.yoctoproject.org/valkyrie/#/builders/23/builds/4668

---
 .../elfutils/elfutils_0.196.bb                |  1 +
 ...s-uio.h-instead-of-linux-uio.h-for-s.patch | 74 +++++++++++++++++++
 2 files changed, 75 insertions(+)
 create mode 100644 meta/recipes-devtools/elfutils/files/0001-backends-use-sys-uio.h-instead-of-linux-uio.h-for-s.patch
meta/recipes-devtools/elfutils/elfutils_0.196.bb +1 -0
index e0b188ce8e..c2466134cd 100644
@@ -19,6 +19,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-config-eu.am-do-not-force-Werror.patch \
+           file://0001-backends-use-sys-uio.h-instead-of-linux-uio.h-for-s.patch \
            "
 SRC_URI:append:libc-musl = " \
            file://0003-musl-utils.patch \
meta/recipes-devtools/elfutils/files/0001-backends-use-sys-uio.h-instead-of-linux-uio.h-for-s.patch new file +74 -0

74 lines not on this page · raw message