I can confirm that on Debian "Bookworm" x86_64 FPC 3.2.0 will build 3.2.2 successfully.
I'll try to sniff around this a bit more but my suspicion is that there's been a linker script change: remember the old -T warning that got removed?
Attempting to build 3.2.2 without forcibly overriding the supported starting compiler version check.
Using:
3.2.2: "The only supported starting compiler version is 3.0.4. You are trying to build with 3.2.2.".
3.2.0: Builds OK (despite stricture above).
3.0.4: Fails as discussed at the start of this thread.
Attempting to build 3.2.0 without forcibly overriding the supported starting compiler version check.
Using:
3.2.0: Builds OK (even though it shouldn't).
3.0.4: Fails as discussed at the start of this thread.
So I think it's reasonable to assume that there's some change in 3.2.0 which improves its compatibility with the linker/loader used by Debian "Bookworm".
I've previously noted that
FPC 3.2.0 has a workaround for the longstanding -T warning message, which can be inhibited by the new -X9 option. Lazarus might have started to make assumptions (one way or the other) about FPC's linker behaviour, and about the precise binutils (i.e. ld etc.) version installed.
which was something that I think Jonas put me onto. I believe that documentation of that option was (intentionally) minimal, and don't know whether anything comparable would help with the Bookworm issue.
I'll leave it to those more familiar with the build process in general and Git in particular to try to throw more light on this; for the moment it's realistic for me to keep an older system running for build purposes or I could potentially use a VM or Docker.
MarkMLl