Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 827927 - sys-kernel/linux-headers-5.15: causes build failure of sys-kernel/gentoo-sources-5.15.5 (__always_inline' cause build error on musl libc)
Summary: sys-kernel/linux-headers-5.15: causes build failure of sys-kernel/gentoo-sour...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-01 07:12 UTC by matt
Modified: 2021-12-02 20:29 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info,5.51 KB, text/plain)
2021-12-01 07:12 UTC, matt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description matt 2021-12-01 07:12:01 UTC
Created attachment 757118 [details]
emerge --info

It appears that the patches to fix the swab.h header in hardened musl weren't completely upstreamed or something. Downloading the source for 5.15.5 results in the same error described in #791364 (would link but account is too new) and only manually applying the patches described by Moran Z. gets the kernel to build.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-01 11:53:35 UTC
>sys-kernel/linux-headers: 5.15::gentoo (virtual/os-headers)

We should mask newer linux-headers on musl or update our patches.
Comment 2 Larry the Git Cow gentoo-dev 2021-12-01 21:15:26 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b21e04ca20bd47d68d4971a7bc0f1076447b9f3

commit 3b21e04ca20bd47d68d4971a7bc0f1076447b9f3
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-12-01 21:14:21 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-01 21:15:12 +0000

    sys-kernel/linux-headers: fix build failure of linux sources on musl
    
    Closes: https://bugs.gentoo.org/827927
    Signed-off-by: Sam James <sam@gentoo.org>

 .../{linux-headers-5.15.ebuild => linux-headers-5.15-r1.ebuild}      | 5 +++++
 1 file changed, 5 insertions(+)
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-01 22:25:08 UTC
Could you verify it's OK now?
Comment 4 matt 2021-12-02 16:58:01 UTC
I'll try to do so by the end of today!
Comment 5 matt 2021-12-02 20:11:08 UTC
Yep, works like a dream! Thank you!
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-02 20:29:26 UTC
(In reply to matt from comment #5)
> Yep, works like a dream! Thank you!

Thanks a lot!!