main/linux-headers: fix swab.h on musl, enable linux-tools/bcc/libbpf on more architectures
linux-tools
is broken on arm* because of errors like error: unknown type name '__always_inline'
(see #11119 (closed)). The same problem exists for all architectures in community/libbpf
and community/bcc
, but there it was worked around using a patch to add #include <linux/stddef.h>
to various files.
Indeed it seems like including linux/stddef.h
is enough to get rid of the error. But the source of the problem is that it is not included from the swab.h
header in main/linux-headers
. Apparently this doesn't cause problems for glibc (it's probably defined somewhere in its internal headers...), but it does not work on musl.
A patch was submitted for this upstream at some point but for some reason it never received any reply. For now I have added it to main/linux-headers
: This fixes the linux-tools
build on arm* and allows getting rid of the workarounds in bcc+libbpf.
I used the chance to enable more architectures in linux-tools, bcc and libbpf. All of them seem to build sucessfully on CI at least.
Fixes #11119 (closed) (I hope so at least, haven't tested armhf specifically...)
Cc: @mps, @acjensen, @ncopa (seems like you tried to fix this before in 0caf800f)
Merge request reports
Activity
added aports:improve label
- Resolved by Minecrell
I'm not sure linux-headers need patches, actually sounds to me as not good idea
I agree with @Minecrell and think this is worth trying. The header bug is an ongoing maintenance headache. Changes LGTM.
Do you have any specific concerns, @mps?
- Resolved by Minecrell
If the bug related to musl, then you should post patch there to be fixed and create workaround in kernel-headers
added 202 commits
- 8f5643d1...7b43fcb5 - 198 commits from branch
alpine:master
- 2f3cc137 - main/linux-headers: add patch to fix swab.h on musl
- 29b90675 - community/bcc: remove unneeded stddef patch, enable on arm*
- 55ad3f6d - community/libbpf: remove unneeded stddef patch, enable all arch
- a232ff5a - testing/linux-tools: enable on arm*
Toggle commit list- 8f5643d1...7b43fcb5 - 198 commits from branch
added 5 commits
-
74d52751 - 1 commit from branch
alpine:master
- 02733a95 - main/linux-headers: add patch to fix swab.h on musl
- 137a95b4 - community/bcc: remove unneeded stddef patch, enable on arm*
- b10693c2 - community/libbpf: remove unneeded stddef patch, enable all arch
- 8f869531 - testing/linux-tools: enable on arm*
Toggle commit list-
74d52751 - 1 commit from branch
added 7 commits
- 8f869531...b33a840a - 3 commits from branch
alpine:master
- bcaf03bb - main/linux-headers: add patch to fix swab.h on musl
- b3884538 - community/bcc: remove unneeded stddef patch, enable on arm*
- 19d83a2e - community/libbpf: remove unneeded stddef patch, enable all arch
- ce1f0175 - testing/linux-tools: enable on arm*
Toggle commit list- 8f869531...b33a840a - 3 commits from branch
added 6 commits
- ce1f0175...74029c47 - 2 commits from branch
alpine:master
- 6ec1f82b - main/linux-headers: add patch to fix swab.h on musl
- 2d66b570 - community/bcc: remove unneeded stddef patch, enable on arm*
- c7b36a0a - community/libbpf: remove unneeded stddef patch, enable all arch
- e0ca5ce1 - testing/linux-tools: enable on arm*
Toggle commit list- ce1f0175...74029c47 - 2 commits from branch