What is weird is that this issue is only present in Fedora Rawhide, older versions of fedora are not affected. I couldn't pinpoint what package update caused that issue. I made a regression for gcc and packages related to it with no luck.
> Marek Kulik <mkulik@redhat.com> writes: >> I cannot compile postgresql for armv7. I tested a bunch of versions of gcc >> and all have the same issue.
FWIW, I just tried a build with --enable-dtrace on up-to-date Fedora 35 aarch64, and that worked fine. So this definitely seems like a problem in the toolchain not in Postgres.