The internal error 2014051001 has to be reported anyway. I have Apple silicon so will test.
[edit]
2014051001 is in assemble.pas in TExternalAssembler at around line 1250.
Makes me think the cross-tools are stale. But the internal error needs to be reported.
I can't build the cross compiler, but I can build the native compiler.
The output for a x86_64 to darwin_aarch64 is:
fpcupdeluxe: info: FPC Cross Installer (BuildModuleCustom: FPC): Running make [Compiler] (FPC crosscompiler: aarch64-darwin) with CROSSOPT: -FDC:\fpcupdeluxe\cross\bin\all-apple\bin -XPaarch64-apple-darwin19- -Xd -FlC:\fpcupdeluxe\cross\lib\all-darwin\MacOSX12.3.sdk\usr\lib -FlC:\fpcupdeluxe\cross\lib\all-darwin\MacOSX12.3.sdk\usr\lib\system -XRC:\fpcupdeluxe\cross\lib\all-darwin\MacOSX12.3.sdk -FlC:\fpcupdeluxe\cross\lib\all-darwin\XQuartz\X11\lib.
fpcupdeluxe: Executing: C:\fpcupdeluxe\fpcbootstrap\make.exe --directory=C:\fpcupdeluxe\fpcsrc FPCDIR=C:/fpcupdeluxe/fpcsrc FPCMAKE=C:/fpcupdeluxe/fpc/bin/x86_64-win64/fpcmake.exe PPUMOVE=C:/fpcupdeluxe/fpc/bin/x86_64-win64/ppumove.exe PREFIX=C:/fpcupdeluxe/fpc INSTALL_PREFIX=C:/fpcupdeluxe/fpc INSTALL_SOURCEDIR=C:/fpcupdeluxe/fpcsrc INSTALL_BASEDIR=C:/fpcupdeluxe/fpc INSTALL_UNITDIR=C:/fpcupdeluxe/fpc/units/aarch64-darwin INSTALL_BINDIR=C:/fpcupdeluxe/fpc/bin/x86_64-win64 INSTALL_LIBDIR=C:/fpcupdeluxe/fpc/lib INSTALL_SHAREDDIR=C:/fpcupdeluxe/fpc/share INSTALL_DATADIR=C:/fpcupdeluxe/fpc/data CPU_SOURCE=x86_64 OS_SOURCE=win64 OS_TARGET=darwin CPU_TARGET=aarch64 CROSSINSTALL=1 SYSTEMDIR=C:/fpcupdeluxe/fpcsrc/rtl/bsd DOSDIR=C:/fpcupdeluxe/fpcsrc/rtl/unix SYSUTILSDIR=C:/fpcupdeluxe/fpcsrc/rtl/unix CLASSESDIR=C:/fpcupdeluxe/fpcsrc/rtl/unix TTHREADINCDIR=C:/fpcupdeluxe/fpcsrc/rtl/unix UPXPROG=echo GIT=C:/fpcupdeluxe/fpcbootstrap/git/cmd/git.exe CROSSBINDIR=C:/fpcupdeluxe/cross/bin/all-apple/bin BINUTILSPREFIX=aarch64-apple-darwin19- FPCFPMAKE=C:/fpcupdeluxe/fpc/bin/x86_64-win64/fpc.exe FPC=C:/fpcupdeluxe/fpc/bin/x86_64-win64/fpc.exe compiler_cycle NOGDBMI=1 REVSTR=18382-gdbf18e9d29 REVINC=force OPT=-vw-n-h-l-d-u-t-p-c- CROSSOPT=-FDC:\fpcupdeluxe\cross\bin\all-apple\bin -XPaarch64-apple-darwin19- -Xd -FlC:\fpcupdeluxe\cross\lib\all-darwin\MacOSX12.3.sdk\usr\lib -FlC:\fpcupdeluxe\cross\lib\all-darwin\MacOSX12.3.sdk\usr\lib\system -XRC:\fpcupdeluxe\cross\lib\all-darwin\MacOSX12.3.sdk -FlC:\fpcupdeluxe\cross\lib\all-darwin\XQuartz\X11\lib (working dir: C:\fpcupdeluxe\fpcsrc)
C:/fpcupdeluxe/fpcbootstrap/make.exe -C compiler cycle
C:/fpcupdeluxe/fpcbootstrap/make.exe OS_TARGET=win64 CPU_TARGET=x86_64 CROSSBINDIR= BINUTILSPREFIX= CROSSCYCLEBOOTSTRAP=1 CYCLELEVEL=1 rtlclean
C:/fpcupdeluxe/fpcbootstrap/make.exe -C C:/fpcupdeluxe/fpcsrc/rtl clean
C:/fpcupdeluxe/fpcbootstrap/make.exe -C win64 clean
C:/fpcupdeluxe/fpcbootstrap/make.exe OS_TARGET=win64 CPU_TARGET=x86_64 CROSSBINDIR= BINUTILSPREFIX= CROSSCYCLEBOOTSTRAP=1 CYCLELEVEL=1 rtl
C:/fpcupdeluxe/fpcbootstrap/make.exe -C C:/fpcupdeluxe/fpcsrc/rtl 'OPT=-vw-n-h-l-d-u-t-p-c- ' all
C:/fpcupdeluxe/fpcbootstrap/make.exe -C win64 all
C:/fpcupdeluxe/fpc/bin/x86_64-win64/fpc.exe -Ur -Xs -O2 -n -Fi../inc -Fi../x86_64 -Fix86_64 -Fi../x86_64 -Fi../win/wininc -FE. -FUC:/fpcupdeluxe/fpcsrc/rtl/units/x86_64-win64 -vw-n-h-l-d-u-t-p-c- -dx86_64 -dRELEASE -Fi../win -Us -Sg C:/fpcupdeluxe/fpcsrc/rtl/bsd/system.pp
system.pp(39,2) Fatal: Cannot open include file "sysunixh.inc"
Fatal: Compilation aborted
Error: C:\fpcupdeluxe\fpc\bin\x86_64-win64\ppcx64.exe returned an error exitcode
make.exe[3]: *** [win64_all] Error 2
make.exe[2]: *** [rtl] Error 2
make.exe[1]: *** [cycle] Error 2
C:\fpcupdeluxe\fpcbootstrap\make.exe: *** [compiler_cycle] Error 2
fpcupdeluxe: ERROR: FPC Cross Installer (BuildModuleCustom: FPC): Running cross compiler fpc C:\fpcupdeluxe\fpcbootstrap\make.exe for aarch64-darwin failed with an error code.
fpcupdeluxe: ERROR: FPC Cross Installer (BuildModuleCustom: FPC): Removing all aarch64-darwin compiler settings from fpc.cfg.
fpcupdeluxe: info: FPCCrossInstaller (InsertFPCCFGSnippet: fpc.cfg): Inserting snippet in C:\fpcupdeluxe\fpc\bin\x86_64-win64\fpc.cfg done.
ERROR: Fpcupdeluxe fatal error !
Sequencer (FPCCleanBuildOnly): Failure running fpcupdeluxe: error executing sequence FPCCleanBuildOnly
Sequencer (Only): Failure running fpcupdeluxe: error executing sequence Only
Win11-64, trunk from today. That is not an internal error.
One remark: I
refuse to build from a 32 bit compiler, whatever the misguided advice is. It is 2025.
(and soft 80 bit float)
On Apple silicon I build by hand and succeeds.