[fpc-pascal] Building compiler which stalls

Jonas Maebe jonas at freepascal.org
Sat Mar 4 21:56:41 CET 2023


On 04/03/2023 07:24, Hairy Pixels via fpc-pascal wrote:
> # 1. Compile a native AArch64 compiler from the FPC trunk source
> make distclean
> make FPC=ppcx64 OPT="-ap -FD${TOOLCHAIN} -XR${MACOS_SDK}" CPU_TARGET=aarch64 -j 4 FPMAKEOPT="-T 4" all

There is no need anymore to start with ppcx64 now that there is a native 
ppca64 in the latest FPC release (3.2.2). So you can start directly with 
your step 3 (removing the "FPC=$PWD/ppca64" so it uses the globally 
installed ppca64). If you do that, it works.

I can reproduce the issue when following your steps. My best guess is 
that one of the new x86 optimisations is breaking things when 
cross-compiling the native AArch64 compiler.


Jonas


More information about the fpc-pascal mailing list