Oh Peter, I was hoping someone who knows what they are talking about would answer but not looking good. So, I'll try...
I'll start with what you have not told us. That is, why are you using main ? I ask because main is the developmental branch, it will from time to time completely fall over. So, perhaps not a great choice for someone who might just be new to FPC ? The developers push changes to main, often only tested on their own system, to see if they work. Its expected to be broken from time to time. Especially on less than mainstream platforms.
So, why did you choose main ? Because you want to compile some old code you found that, when first written, needed something in main ? If so, its likely that something is now in in the release, FPC3.2.2. So, try that perhaps ?
If you need something newer than FPC3.2,2, perhaps for something like supporting openssl 3.0, then consider FPC fixes, aka 3.2.3. Its a lot less likely to break (but no guarantee).
Really, really must have main ? Wait a few days and download a fresh copy, maybe what ever the problem is has been fixed. Otherwise, time do do some debugging I am afraid.
Davo