I installed Lazarus v4 final release, All is said OK.
Trying to compile the basic project on opening these are the errors I get :
Hint: (11030) Start of reading config file /etc/fpc.cfg
Hint: (11031) End of reading config file /etc/fpc.cfg
Free Pascal Compiler version 3.2.2 [2021/05/16] for aarch64
Copyright (c) 1993-2021 by Florian Klaempfl and others
(1002) Target OS: Darwin for AArch64
(3104) Compiling /Users/marco/tmp/project1.lpr
(3104) Compiling unit1.pas
/Users/marco/tmp/unit1.pas(17,28) Hint: (5024) Parameter "Sender" not used
(9009) Assembling unit1
(9009) Assembling project1
(9022) Compiling resource /Users/marco/tmp/lib/aarch64-darwin/project1.or
-macosx_version_min has been renamed to -macos_version_min
ld: warning: -multiply_defined is obsolete
ld: warning: ignoring duplicate libraries: '-lc'
(9015) Linking /Users/marco/tmp/project1
ld: warning: no platform load command found in '/Users/marco/tmp/lib/aarch64-darwin/project1.or', assuming: macOS
/Users/marco/tmp/ppaslink.sh: line 9: 81340 Bus error: 10 /Library/Developer/CommandLineTools/usr/bin/ld -weak_framework AppKit -weak_framework UserNotifications -order_file /Users/marco/tmp/symbol_order.fpc -multiply_defined suppress -L. -o /Users/marco/tmp/project1 `cat /Users/marco/tmp/link81330.res` -filelist /Users/marco/tmp/linkfiles81330.res
An error occurred while linking
Error: (9013) Error while linking
Fatal: (10026) There were 1 errors compiling module, stopping
Fatal: (1018) Compilation aborted
Error: /usr/local/bin/ppca64 returned an error exitcode
Compile Project, Target: /Users/marco/tmp/project1: Exit code 1, Errors: 3, Warnings: 3
Error: -macosx_version_min has been renamed to -macos_version_min
Warning: ld: warning: -multiply_defined is obsolete
Warning: ld: warning: ignoring duplicate libraries: '-lc'
Warning: ld: warning: no platform load command found in '/Users/marco/tmp/lib/aarch64-darwin/project1.or', assuming: macOS
Error: /Users/marco/tmp/ppaslink.sh: line 9: 81340 Bus error: 10 /Library/Developer/CommandLineTools/usr/bin/ld -weak_framework AppKit -weak_framework UserNotifications -order_file /Users/marco/tmp/symbol_order.fpc -multiply_defined suppress -L. -o /Users/marco/tmp/project1 `cat /Users/marco/tmp/link81330.res` -filelist /Users/marco/tmp/linkfiles81330.res
An error occurred while linking
Error: Error while linking