linux-oneplus-billie2 doesn't build anymore
Describe your issue
What's the expected behaviour?
linux-oneplus-billie2 builds
What's the current behaviour?
From https://builds.sr.ht/~postmarketos/job/859075, full log:
MODPOST vmlinux.o
aarch64-alpine-linux-musl-ld: warning: -z norelro ignored
aarch64-alpine-linux-musl-ld: warning: .tmp_vmlinux1 has a LOAD segment with RWX permissions
security/selinux/avc.o: in function `avc_disable':
/home/pmos/build/src/android_kernel_oneplus_sm4250-6db26f433f9a8722d0858562804da13f3090bfd7/out/../security/selinux/avc.c:1250:(.text+0x1fb4): relocation truncated to fit: R_AARCH64_ADR_PREL_PG_HI21 against symbol `selinux_state' defined in .bss.rtic section in security/selinux/hooks.o
security/selinux/hooks.o: in function `selinux_bpf_prog':
/home/pmos/build/src/android_kernel_oneplus_sm4250-6db26f433f9a8722d0858562804da13f3090bfd7/out/../security/selinux/hooks.c:6893:(.text+0xb80): relocation truncated to fit: R_AARCH64_ADR_PREL_PG_HI21 against `.bss.rtic'
security/selinux/hooks.o: in function `selinux_bpf_map':
/home/pmos/build/src/android_kernel_oneplus_sm4250-6db26f433f9a8722d0858562804da13f3090bfd7/out/../security/selinux/hooks.c:6882:(.text+0xbe0): relocation truncated to fit: R_AARCH64_ADR_PREL_PG_HI21 against `.bss.rtic'
security/selinux/hooks.o: in function `selinux_bpf':
/home/pmos/build/src/android_kernel_oneplus_sm4250-6db26f433f9a8722d0858562804da13f3090bfd7/out/../security/selinux/hooks.c:6818:(.text+0xc3c): relocation truncated to fit: R_AARCH64_ADR_PREL_PG_HI21 against `.bss.rtic'
/home/pmos/build/src/android_kernel_oneplus_sm4250-6db26f433f9a8722d0858562804da13f3090bfd7/out/../security/selinux/hooks.c:6813:(.text+0xc74): relocation truncated to fit: R_AARCH64_ADR_PREL_PG_HI21 against `.bss.rtic'
security/selinux/hooks.o: in function `selinux_tun_dev_open':
/home/pmos/build/src/android_kernel_oneplus_sm4250-6db26f433f9a8722d0858562804da13f3090bfd7/out/../security/selinux/hooks.c:5578:(.text+0xcb8): relocation truncated to fit: R_AARCH64_ADR_PREL_PG_HI21 against `.bss.rtic'
security/selinux/hooks.o: in function `selinux_tun_dev_attach_queue':
/home/pmos/build/src/android_kernel_oneplus_sm4250-6db26f433f9a8722d0858562804da13f3090bfd7/out/../security/selinux/hooks.c:5549:(.text+0xd64): relocation truncated to fit: R_AARCH64_ADR_PREL_PG_HI21 against `.bss.rtic'
security/selinux/hooks.o: in function `selinux_tun_dev_create':
/home/pmos/build/src/android_kernel_oneplus_sm4250-6db26f433f9a8722d0858562804da13f3090bfd7/out/../security/selinux/hooks.c:5540:(.text+0xdac): relocation truncated to fit: R_AARCH64_ADR_PREL_PG_HI21 against `.bss.rtic'
security/selinux/hooks.o: in function `selinux_secmark_relabel_packet':
/home/pmos/build/src/android_kernel_oneplus_sm4250-6db26f433f9a8722d0858562804da13f3090bfd7/out/../security/selinux/hooks.c:5490:(.text+0xe04): relocation truncated to fit: R_AARCH64_ADR_PREL_PG_HI21 against `.bss.rtic'
security/selinux/hooks.o: in function `sock_has_perm':
/home/pmos/build/src/android_kernel_oneplus_sm4250-6db26f433f9a8722d0858562804da13f3090bfd7/out/../security/selinux/hooks.c:4575:(.text+0xea4): relocation truncated to fit: R_AARCH64_ADR_PREL_PG_HI21 against `.bss.rtic'
security/selinux/hooks.o: in function `selinux_socket_unix_may_send':
/home/pmos/build/src/android_kernel_oneplus_sm4250-6db26f433f9a8722d0858562804da13f3090bfd7/out/../security/selinux/hooks.c:4999:(.text+0xf54): additional relocation overflows omitted from the output
make[1]: *** [/home/pmos/build/src/android_kernel_oneplus_sm4250-6db26f433f9a8722d0858562804da13f3090bfd7/Makefile:1120: vmlinux] Error 1
How to reproduce your issue?
$ pmbootstrap build --force linux-oneplus-billie2
@ichernev: I've spent some time looking into this but couldn't find a fix. I've also tried to disable selinux, but then it failed elsewhere. Can you take a look as well, since you added the kernel? I wouldn't be surprised if there was an existing patch that fixes it, but I couldn't find one when I looked. If we can't fix the build, we'll need to drop this unfortunately.