On 22/07/2026 10:05, Pierre Muller via fpc-pascal wrote:
To cycle successfully starting from a LLVM compiler
and trying to generate a non-llvm version you will need to use
OPTLEVEL1 Makefile variable.

Check required -ClvX.Y needed by testing 'clang --version' output
and use OPTLEVEL1="-ClvX.Y -dNOLLVM -XLL"

Thanks, OPTLEVEL1="-Clv15.0 -dNOLLVM" (without the -XXL)  works for me. However, I get

/Applications/Xcode.app/Contents/Developer/usr/bin/make rtl
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C /Users/administrator/fpc-svn/fpc/rtl 'OPT=-XR/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -g-    ' all
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C darwin all
/Users/administrator/fpc-svn/fpc/compiler/ppc1 -dFPC_USE_LIBC -Ur -Xs -O2 -n -Fi../inc -Fi../aarch64 -Fi../unix -Fi../bsd -Fi../bsd/aarch64 -Fi../darwin/aarch64 -FE. -FU/Users/administrator/fpc-svn/fpc/rtl/units/aarch64-darwin -XR/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -XR/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -g- -daarch64 -dRELEASE  -Us -Sg ../bsd/system.pp
Error: Compilation raised exception internally
An unhandled exception occurred at $000000018AA2E248:
EAccessViolation: Access violation
  $000000018AA2E248

make[7]: *** [system.ppu] Error 217
make[6]: *** [darwin_all] Error 2
make[5]: *** [rtl] Error 2
make[4]: *** [next] Error 2
make[3]: *** [ppc2] Error 2
make[2]: *** [cycle] Error 2
make[1]: *** [compiler_cycle] Error 2
make: *** [build-stamp.aarch64-darwin] Error 2
logout


The compiler does build when I add -O- or  OPTLEVEL2="-O-".

Regards,

Adriaan van Os

_______________________________________________
fpc-pascal maillist  -  [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to