Building aarch64 compiler fails in system.credentials.pp
Summary
Building darwin-aarch64 crosscompiler on darwin-x86_64 fails
System Information
- Operating system: macOS 13.6
- Processor architecture: x86-64
- Compiler version: trunk
Steps to reproduce
Using fpcupdeluxe, install cross-compiler for darwin-aarch64.
What is the current bug behavior?
Build fails with "Can't take address of a subroutine marked as local" in system.credentials.pp(216,50) - see log below.
Relevant logs and/or screenshots
Compiling ./vcl-compat/src/system.hash.pp
Compiling ./vcl-compat/src/system.credentials.pp
system.credentials.pp(216,50) Error: Can't take address of a subroutine marked as local
system.credentials.pp(233) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
The installer encountered the following error:
Compilation of "BuildUnit_vcl_compat.pp" failed
make: *** [packages_all] Error 2
fpcupdeluxe: ERROR: FPC Cross Installer (BuildModuleCustom: FPC): Running cross compiler fpc /usr/bin/make for aarch64-darwin failed with an error code.
The code compiles fine for darwin-x86_64 so this seems more like a short-coming of the compiler? FWIW the relevant code has been added in ae121a2d.