Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 693772

Summary: [musl overlay] dev-libs/elfutils - fix build for aarch64/musl (invalid operands to binary & (have 'long double' and 'unsigned int'))
Product: Gentoo Linux Reporter: Marvin Vek <laen>
Component: OverlaysAssignee: Gentoo musl team <musl>
Status: RESOLVED FIXED    
Severity: normal CC: erikdenstore+gbugs, lucas.yamanishi, sam, toolchain
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: ARM64   
OS: Linux   
URL: https://www.sourceware.org/bugzilla/show_bug.cgi?id=25832
Whiteboard:
Package list:
Runtime testing required: ---

Description Marvin Vek 2019-09-08 10:20:40 UTC
dev-libs/elfutils fails to build specifically on aarch64/musl with error:

  invalid operands to binary & (have 'long double' and 'unsigned int')

WindRiver released a very small and simple patch for this 2 years ago for OpenEmbedded, which applies and fixes the build:

  http://cgit.openembedded.org/openembedded-core/plain/meta/recipes-devtools/elfutils/files/0006-Fix-build-on-aarch64-musl.patch
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-09 02:55:04 UTC
Patch has been in ::musl for a while and is now in ::gentoo: https://github.com/gentoo/gentoo/commit/b33b10eb76f88a2d41f66ddc7184cb0e783e3d45.

Upstream bug is https://www.sourceware.org/bugzilla/show_bug.cgi?id=25832.
Comment 2 Larry the Git Cow gentoo-dev 2021-11-09 02:56:01 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71828c9b2b7e1c8c5c90085694fe2a50b6fac602

commit 71828c9b2b7e1c8c5c90085694fe2a50b6fac602
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-11-09 02:55:39 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-11-09 02:55:39 +0000

    dev-libs/elfutils: add bug link to arm64 musl patch
    
    Bug: https://bugs.gentoo.org/693772
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/elfutils/files/musl/elfutils-0.185-aarch64-regs.patch | 3 +++
 1 file changed, 3 insertions(+)