Hi
This linked error (Segmentation Fault) has been mentioned several times but it has not being fixed. Not in trunk, not in stable versions.
I have tried compiling Lazarus from source directly, from FPCUPDeluxe, in an M1, and now on an M4 Mac mini. Reinstalled CommandLineTools, XCode, etc
No matter what I do still fails, only the x86 macos version works on Apple silicon.
If I download a precompiled binary for Apple silicon, the moment I add or remove components that will trigger a rebuild of the IDE it will fail again.
Is there an actual fix for this?
/Users/raulito/Documents/Lazarus-main/ide/main.pp(444,35) Hint: (5024) Parameter "Sender" not used
(9009) Assembling main
(3104) Compiling colortty.pas
(3104) Compiling laztty.pas
(9009) Assembling laztty
/Users/raulito/Documents/Lazarus-main/ide/colortty.pas(84,38) Warning: (6018) unreachable code
/Users/raulito/Documents/Lazarus-main/ide/colortty.pas(73,47) Hint: (5024) Parameter "Sender" not used
/Users/raulito/Documents/Lazarus-main/ide/colortty.pas(73,81) Hint: (5024) Parameter "LogIndent" not used
/Users/raulito/Documents/Lazarus-main/ide/colortty.pas(74,16) Hint: (5024) Parameter "Handled" not used
(9009) Assembling colortty
/Users/raulito/Documents/Lazarus-main/ide/lazarus.pp(78,5) Hint: (5023) Unit "FPCUnitTestRunner" not used in Lazarus
(9009) Assembling lazarus
(9022) Compiling resource ../units/aarch64-darwin/cocoa/lazarus.or
(9015) Linking ../lazarus
-macosx_version_min has been renamed to -macos_version_min
ld: warning: -multiply_defined is obsolete
ld: warning: ignoring duplicate libraries: '-lc'
ld: warning: no platform load command found in '/Users/raulito/Documents/Lazarus-main/units/aarch64-darwin/cocoa/lazarus.or', assuming: macOS
./../ppaslink.sh: line 9: 47103 Segmentation fault: 11 /Library/Developer/CommandLineTools/usr/bin/ld -weak_framework AppKit -weak_framework UserNotifications -order_file ../symbol_order.fpc -multiply_defined suppress -L. -o ../lazarus `cat ../link46516.res` -filelist ../linkfiles46516.res
An error occurred while linking
Error: (9013) Error while linking
Fatal: (10026) There were 1 errors compiling module, stopping
Fatal: (1018) Compilation aborted
make[2]: *** [lazarus] Error 1
make[1]: *** [bigide] Error 2