Followed the instructions (thanks Rich2014), and building FPC+Lazarus which works for x86_64, and it works for AARCH64.
However building the cross compiler seems a different story.
Building FPC for
AARCH64 first and then building the cross FPC compiler for
x86_64 FAILS.
genmath.inc(606,5) Fatal: Internal error 2014051001
(Using Xcode 15 with the described steps, tried PFC 3.3.1 and trunk. They always fail.)
This is the code in
genmath.inc that seems to fail:
type
TDA02 = array[0..2] of double; { 3 elements is enough for float128 }
The other way around however DOES work (which is surprising to me):
Building FPC for x86_64 and
then building the cross compiler for AARCH64 works.
FYI: Using FPCupDeluxe 2.4.0h for this.
Tried FPC 3.3.1 and Trunk.
Any suggestions?
Been at it most of the day, including spending a lot of time online trying to find a fix or workaround before posting.