Can the aarch64 FPC cross compiler be compiled on Mojave Intel? lazarus / 33-macOS - Mac OS X ---------------------------------------------------------------------- trev · 2020-12-05 07:00 Quote from: text/Applications/Xcode.app/Contents/Developer/usr/bin/make 'FPC=/usr/local/share/fpcsrc/fpc-3.3.1/compiler/ppcrossa64' 'OPT= ' CYCLELEVEL=3 rtl /Applications/Xcode.app/Contents/Developer/usr/bin/make -C /usr/local/share/fpcsrc/fpc-3.3.1/rtl 'OPT=   ' all /Applications/Xcode.app/Contents/Developer/usr/bin/make -C darwin all /usr/local/share/fpcsrc/fpc-3.3.1/compiler/ppcrossa64 -Ur -dFPC_USE_LIBC -Paarch64 -Ur -Xs -O2 -n -Fi../inc -Fi../aarch64 -Fi../unix -Fi../bsd -Fi../bsd/aarch64 -Fi../darwin/aarch64 -FE. -FU/usr/local/share/fpcsrc/fpc-3.3.1/rtl/units/aarch64-darwin -daarch64 -dRELEASE  -Us -Sg ../bsd/system.pp clang: error: invalid Darwin version number: macosx11.0.0 clang: error: invalid version number in '--target=arm64-apple- macosx11.0.0' system.pp(398) Error: Error while assembling exitcode 1 system.pp(398) Fatal: There were 2 errors compiling module, stopping Fatal: Compilation aborted make[5]: *** [system.ppu] Error 1 make[4]: *** [darwin_all] Error 2 make[3]: *** [rtl) Error 2 make[2]: *** [cycle] Error 2 make[1]: *** [compiler_cycle] Error 2 make: *** [build-stamp.aarch64-darwin] Error 2 ---------------------------------------------------------------------- skalogryz · 2020-12-05 08:58 It's Xcode driven. If the latest Xcode cannot be installed on Mojave, cross-compiling might not be possible... ...OR manually copying build tools might do the trick. ---------------------------------------------------------------------- Jonas Maebe · 2020-12-05 11:30 I have macOS 11.0 installed on an external SSD and by pointing FPC to its Xcode folders with the -XR/-FD parameters, I can indeed successfully cross-compile to Darwin/AArch64 from 10.14. ---------------------------------------------------------------------- Igor · 2020-12-05 13:04 trev, According Release Notes for Xcode 12.2 QuoteXcode 12.2 requires a Mac with Apple silicon running macOS Big Sur 11 or later, or an Intel-based Mac running macOS Catalina 10.15.4 or later. So officially it's not supported for Mojave. I cross-compile for aarch64 and x86_64 on Macbook 12 (Intel) with Big Sur. Lazarus 2.0.10 + FPC 3.2.1 fixes. ---------------------------------------------------------------------- trev · 2020-12-05 21:02 Quote from: Jonas Maebe on December 05, 2020, 12:30:47 pmI have macOS 11.0 installed on an external SSD and by pointing FPC to its Xcode folders with the -XR/-FD parameters, I can indeed successfully cross- compile to Darwin/AArch64 from 10.14. Excellent, thanks Jonas. I also happen to have Big Sur on an external SSD