Hi,
I just cloned the main branch of the lazarus repository from gitlab and tried to compile it with:
make clean all LCL_PLATFORM=cocoa bigide
Unfortunately the linking process ended with this error:
(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/petr/tmp/lazarus/units/aarch64-darwin/cocoa/lazarus.or', assuming: macOS
./../ppaslink.sh: line 9: 52644 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 ../link52054.res` -filelist ../linkfiles52054.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
FPC version 3.2.2 [2021/05/16] for aarch64, macOS Sonoma 15.4.1 (24E263), M1
I tried to Google it but nothing useful. Do you know what I do wrong, please? Thanks a lot.
Petr