Summary: | >=sys-kernel/gentoo-sources-5.12.5: '__always_inline' cause build error on musl libc | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Moran Z. <o542018138> |
Component: | Current packages | Assignee: | Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ajak, arkamar, erhard_f, fredric.miscmail, gentoo, ionen, mscardovi, o542018138 |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg2411621.html | ||
See Also: |
https://bugs.gentoo.org/show_bug.cgi?id=715856 https://bugs.gentoo.org/show_bug.cgi?id=827927 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
a 3-liner musl libc compatibility patch [1/3] : include/uapi/linux/perf_event.h
a 3-liner musl libc compatibility patch [2/3] : tools/include/uapi/linux/perf_event.h a 3-liner musl libc compatibility patch [3/3] : tools/objtool/arch/x86/decode.c uapi/linux/swab.h patch for musl patch |
Description
Moran Z.
2021-05-21 18:08:00 UTC
Created attachment 710115 [details, diff]
a 3-liner musl libc compatibility patch [1/3] : include/uapi/linux/perf_event.h
Created attachment 710118 [details, diff]
a 3-liner musl libc compatibility patch [2/3] : tools/include/uapi/linux/perf_event.h
Created attachment 710121 [details, diff]
a 3-liner musl libc compatibility patch [3/3] : tools/objtool/arch/x86/decode.c
Please don't randomly CC arches. Created attachment 710361 [details, diff]
uapi/linux/swab.h patch for musl
What version of sys-kernel/linux-headers are you using?
I found the patch below worked for me when using sys-kernel/linux-headers-5.4 but may need updating for newer versions.
I will have a look-see as to what source I was using for this, but I suspect there were a few likely candidates. From memory something came up on the lkml iirc ..
@John Helmert III: An Honest Mistake, Pardon ! :) @Michael 'veremitz' Everitt: IMHO, Too, a Systemic Fix Is Better & Here's The Relevant 'emerge --info' Output: Portage 3.0.18 (python 3.9.5-final-0, default/linux/amd64/17.0/musl/hardened, gcc-10.3.0, musl-1.2.2-r2, 5.12.5-gentoo x86_64) ================================================================= System uname: Linux-5.12.5-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E5-2673_v3_@_2.40GHz-with-libc KiB Mem: 32752544 total, 29382148 free KiB Swap: 33554428 total, 33554428 free Timestamp of repository gentoo: Sun, 23 May 2021 07:00:01 +0000 Head commit of repository gentoo: f36dece66c6d47b46206aa7863a1dc7c8fd571e0 sh bash 5.1_p8 ld GNU ld (Gentoo 2.36.1 p3) 2.36.1 app-shells/bash: 5.1_p8::gentoo dev-lang/perl: 5.32.1::gentoo dev-lang/python: 2.7.18_p7::gentoo, 3.8.10_p1::gentoo, 3.9.5_p1::gentoo dev-lang/rust: 1.47.0-r1::smaeul dev-util/cmake: 3.20.2::gentoo sys-apps/baselayout: 2.7-r2::gentoo sys-apps/openrc: 0.43.3::gentoo sys-apps/sandbox: 2.24::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo sys-devel/automake: 1.16.3-r1::gentoo sys-devel/binutils: 2.35.2::gentoo, 2.36.1-r1::gentoo sys-devel/gcc: 9.3.0-r2::gentoo, 10.3.0::gentoo sys-devel/gcc-config: 2.4::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.12::gentoo (virtual/os-headers) sys-libs/musl: 1.2.2-r2::gentoo + eselect binutils list [1] x86_64-gentoo-linux-musl-2.35.2 [2] x86_64-gentoo-linux-musl-2.36.1 * --- Created attachment 722854 [details, diff]
patch
I've tried the patch on this bug but didn't work. @Anarchy provided to me a new one that I can confirm to work in kernel 5.12 and 5.13
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/proj/musl.git/commit/?id=e9a03616c762b689a02860e17347eb484d14addf commit e9a03616c762b689a02860e17347eb484d14addf Author: Jory Pratt <anarchy@gentoo.org> AuthorDate: 2021-07-08 23:08:30 +0000 Commit: Jory Pratt <anarchy@gentoo.org> CommitDate: 2021-07-08 23:08:30 +0000 sys-kernel/linux-headers: Fix headers for newer kernels with musl Closes: https://bugs.gentoo.org/791364 Package-Manager: Portage-3.0.20, Repoman-3.0.2 Signed-off-by: Jory Pratt <anarchy@gentoo.org> sys-kernel/linux-headers/Manifest | 2 + .../0001-Use-stddefs.h-instead-of-compiler.h.patch | 25 +++++++++++ .../linux-headers/linux-headers-5.10-r1.ebuild | 48 ++++++++++++++++++++++ sys-kernel/linux-headers/metadata.xml | 11 +++++ 4 files changed, 86 insertions(+) *** Bug 799266 has been marked as a duplicate of this bug. *** |