Forum > macOS / Mac OS X
Help with New MacBook M1 Silicon install fpc Error
FanZhen:
It's OK install fpc & fpcsrc 3.2.0 from https://sourceforge.net/projects/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 [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} --- make FPC=$PWD/ppca64 OPT="-ap -FD/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin -XR/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk" -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:
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
...
--- End quote ---
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:
Thanks, look like yours is 3.3.1
I will try that.
trev:
"Compile a native AArch64 compiler from the FPC trunk source" Trunk = 3.3.1.
See: Installing non-release versions of FPC.
FanZhen:
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?
Navigation
[0] Message Index
[#] Next page