... so one has to use the x86_64 version and build a cross compiler for aarch64 with it.
OK, so if that works it would also be possible to cross compile from an Intel Mac to a aarch64 FPC binary ? I am thinking of a "work around" until a suitable FPC fix happens.
I have a system, for my one use, that allows me to put an up-to-date (ie rc1) FPC on a system without compiling it there. My 'library' of precompiled FPC already already includes an Intel Mac one. Separately, I already cross compile my app to aarch64, sounds like I could, easily, add a aarch64 FPC rc1 to that 'library' ?
https://github.com/davidbannon/FPC_Laz_Install - The install script has not been extensively tested on the Mac as I only have one, got it worked and stopped. I don't have a Mac aarch64 machine. But if you would like to experiment ...
I just successfully made this work on the fixes_3_2 branch and verified that the fix is indeed working on aarch64.
The issue there (I suspect, don't know) is testing on all the affected platforms. You have obviously tested on aarch64, how about making the patched source available so others can test on other platforms. I can do Linux [i386, x86_64, armhf, aarch64] maybe expressif. Who knows who else is listening in to this conversation ?
A clear description, or auto test, so we can be sure of the test results.
I guess a patch against the current 3.2.4rc1 ? Or maybe the branch? No idea which the devs would prefer.
It might help, maybe we would be wasting our time but lets find out ?
Davo