* LLVM 21 compatibility issue with swab.h
@ 2026-05-29 5:23 Theron York
2026-05-29 6:07 ` Thomas Weißschuh
0 siblings, 1 reply; 2+ messages in thread
From: Theron York @ 2026-05-29 5:23 UTC (permalink / raw)
To: linux-kernel
Hello,
Building Linux kernel 7.0.6 on Gentoo with LLVM fails:
error: unknown type name '__attribute_const__'
Setup:
- Gentoo Linux
- LLVM 21 (clang)
- musl libc
- x86_64
Workaround:
sed -i 's/__attribute_const__/__attribute__((const))/g'
./include/uapi/linux/swab.h
Thanks,
Theron York
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: LLVM 21 compatibility issue with swab.h
2026-05-29 5:23 LLVM 21 compatibility issue with swab.h Theron York
@ 2026-05-29 6:07 ` Thomas Weißschuh
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Weißschuh @ 2026-05-29 6:07 UTC (permalink / raw)
To: Theron York; +Cc: linux-kernel
Hi Theron,
On 2026-05-29 00:23:09-0500, Theron York wrote:
> Building Linux kernel 7.0.6 on Gentoo with LLVM fails:
> error: unknown type name '__attribute_const__'
>
> Setup:
> - Gentoo Linux
> - LLVM 21 (clang)
> - musl libc
> - x86_64
>
> Workaround:
> sed -i 's/__attribute_const__/__attribute__((const))/g'
> ./include/uapi/linux/swab.h
can you post all the commands you are executing from a clean source
checkout *and* the full error message?
That will make it much easier to help you.
Thomas
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-05-29 6:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-29 5:23 LLVM 21 compatibility issue with swab.h Theron York
2026-05-29 6:07 ` Thomas Weißschuh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®