Help with New MacBook M1 Silicon install fpc Error lazarus / 15-macOS - Mac OS X ---------------------------------------------------------------------- FanZhen · 2021-01-14 03:36 It's OK install fpc & fpcsrc 3.2.0 from https://sourceforge.net/projec ts/lazarus/files/Lazarus%20macOS%20x86-64/Lazarus%202.0.11/ follow the wiki guide https://wiki.freepascal.org/macOS_Big_Sur_changes_for_developers#ARM64 .2FAArch64.2FApple_Silicon_Support Step 1&2 OK Step 3 Build a complete native FPC distribution for Darwin/AArch64 Code: Bash  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i  make FPC=$PWD/ppca64 OPT="-ap -FD/Applications/Xcode.app/Contents/Developer /Toolchains/XcodeDefault.xctoolchain/usr/bin -XR/Applications/Xcode.ap p/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.s dk" -j 4 FPMAKEOPT="-T 4" OVERRIDEVERSIONCHECK=1 all > build.log Error Msg: You have overriden the starting compiler versioncheck while using starting compiler version . This situation is not supported and strange things and errors may happen. Remove OVERRIDEVERSIONCHECK=1 to fix this. /Applications/Xcode.app/Contents/Developer/usr/bin/make compiler_cycle RELEASE=1 /Applications/Xcode.app/Contents/Developer/usr/bin/make -C compiler cycle /Applications/Xcode.app/Contents/Developer/usr/bin/make tempclean ppc3.exe /bin/rm -f ppcross ppc ppc1.exe ppc2.exe ppc3.exe ./msg2inc.exe pp1.wpo pp2.wpo /Applications/Xcode.app/Contents/Developer/usr/bin/make 'OLDFPC=' next CYCLELEVEL=1 /Applications/Xcode.app/Contents/Developer/usr/bin/make rtlclean rtl /Applications/Xcode.app/Contents/Developer/usr/bin/make -C  clean make: *** clean: No such file or directory.  Stop. make[5]: *** [rtlclean] Error 2 make[4]: *** [next] Error 2 make[3]: *** [ppc1.exe] Error 2 make[2]: *** [cycle] Error 2 make[1]: *** [compiler_cycle] Error 2 make: *** [build-stamp.-] Error 2 What the Problem? Thx MacOSX Big Sur 11.1 XCode 12.3 ---------------------------------------------------------------------- trev · 2021-01-14 04:32 I suggest you start again and follow the steps very closely. My build.log looks like this for Step 3: Quote/Applications/Xcode.app/Contents/Developer/usr/bin/make compiler_cycle RELEASE=1 You have overriden the starting compiler versioncheck while using starting compiler version 3.3.1. This situation is not supported and strange things and errors may happen. Remove OVERRIDEVERSIONCHECK=1 to fix this. /Applications/Xcode.app/Contents/Developer/usr/bin/make -C compiler cycle /Applications/Xcode.app/Contents/Developer/usr/bin/make tempclean /bin/rm -f ppcrossa64 ppc ppc1 ppc2 ppc3 ./msg2inc pp1.wpo pp2.wpo /Applications/Xcode.app/Contents/Developer/usr/bin/make ppc3 /Applications/Xcode.app/Contents/Developer/usr/bin/make 'OLDFPC=' next CYCLELEVEL=1 /Applications/Xcode.app/Contents/Developer/usr/bin/make rtlclean /Applications/Xcode.app/Contents/Developer/usr/bin/make -C /usr/local/share/fpcsrc/3.3.1/rtl clean /bin/rm -f fpcmade.aarch64-darwin *aarch64-darwin.fpm Package.fpc *.s /bin/rm -f   script*.res link*.res *_script.res *_link.res /bin/rm -f ./ppas.sh *_ppas.sh ppas.sh ppaslink.sh /Applications/Xcode.app/Contents/Developer/usr/bin/make -C darwin clean ... There's some very worrying entries in your log fragment: * ppcross instead of ppcrossa64 * ppc ppc1.exe (!) ppc2.exe (!) ppc3.exe (!) instead of ppc ppc1 ppc2 ppc3 The instructions in the Wiki work - I've just run through them from scratch. macOS 11.1; Xcode 12.3. ---------------------------------------------------------------------- FanZhen · 2021-01-14 05:03 Thanks, look like yours is 3.3.1 I will try that. ---------------------------------------------------------------------- trev · 2021-01-14 05:27 "Compile a native AArch64 compiler from the FPC trunk source" Trunk = 3.3.1. See: Installing non-release versions of FPC. ---------------------------------------------------------------------- FanZhen · 2021-01-14 07:15 fpc 3.3.1 trunk Works! So with Lazarus trunk. But  there is still a problem with LazDebuggerFpLLdb When start Lazarus, Show Fppkg Error: File:/Users/xxx/.config/fppkg.cfg Error:there is a problem with the Fppkg configuration. (Fppkg reports that the RTL is not installed.) You could try to restore the configuration files automatically, or adapt the configuration file manually. And i try to run fpcmkcfg $fpcmkcfg An unhandled exception occurred at $00000001044150BC: EAccessViolation: Access violation   $00000001044150BC   $00000001043E705C   $00000001043E75A4   $00000001043E8F44 Any idea? ---------------------------------------------------------------------- trev · 2021-01-14 07:29 I have no ~/.config directory. My fppkg.cfg file is found in /private/etc/fppkg.cfg. It's contents: Quote[Defaults] ConfigVersion=5 LocalRepository={UserDir}.fppkg/ BuildDir={LocalRepository}build/ ArchivesDir={LocalRepository}archives/ CompilerConfigDir=//etc/fppkg RemoteMirrors=https://www.freepascal.org/repository/mirrors.xml RemoteRepository=auto CompilerConfig=default FPMakeCompilerConfig=default Downloader=FPC InstallRepository=user [Repository] Name=fpc Description=Packages which are installed along with the Free Pascal Compiler Path=/usr/local/lib/fpc/{CompilerVersion}/ Prefix=/usr/local/lib/fpc/../../ [IncludeFiles] FileMask=//etc/fppkgconf.d/*.conf [Repository] Name=user Description=User-installed packages Path={LocalRepository}lib/fpc/{CompilerVersion} Prefix={LocalRepository} ---------------------------------------------------------------------- FanZhen · 2021-01-18 02:38 Thx a lot! it works finalily after rewrite fppkg. fpc 3.3.1 trunk revision 48168 lazarus 2.1.0 trunk revision 64403 macOS 11.1 (aarch64), Xcode 12.3 ---------------------------------------------------------------------- trev · 2021-01-18 03:48 Great! Thanks for taking the time to let us know it's now fixed.