Oh, found the reason!
Line 1673 in my original makepkg log: https://paste.ubuntu.com/p/QTqPyMXXxP/
bzip2's make was using gcc not musl-gcc to build libbz2.a! And mixing glibc and musl libc is obviously a really bad idea...
So it seems bz2's does not care what the CC env var is set to. So I added a sed into the PKGBUILD just before make libbz2.a
: sed -i "s|CC=gcc|CC=${CC}|g" Makefile
and that fixed the build!
Pinned Comments
Morganamilo commented on 2022-02-20 18:30 (UTC)
There's now a custom repo and binaries again. Though only for x86_64 currently.
Custom Repo
Pre compiled binaries
https://pkgbuild.com/~morganamilo/pacman-static/x86_64/bin/