I'm not the original poster, but I just got the same error. MacBook Pro, Apple M2 Pro chip.
1. Downloaded fpc and installed.
2. git clone
https://gitlab.com/freepascal.org/lazarus/lazarus.git3. cd lazarus
4. git checkout fixes_4 #also tried on main, same result
5. make clean all LCL_PLATFORM=cocoa CPU_TARGET=aarch64 bigide
Seemed to compile things for a good 2 or 3 minutes, so I think the FPC compiler is at least sort of working.
Here's the errors:
(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/chas/lazarus/units/aarch64-darwin/cocoa/lazarus.or', assuming: macOS
./../ppaslink.sh: line 9: 54158 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 ../link53563.res` -filelist ../linkfiles53563.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]: *** [ide] Error 2
make: *** [ide] Error 2
I'm coming back to pascal and Lazarus after a couple decades away, but I'm a pretty experienced unix/linux guy, so if you want to ask me to try something, I can probably understand what you're saying.