Forum > macOS / Mac OS X

can't compile anything in macOS 15.4

(1/2) > >>

BVale:
(3104) Compiling laztty.pas
(9022) Compiling resource /Users/soul/fpcupdeluxe_4/lazarus/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/soul/fpcupdeluxe_4/lazarus/units/aarch64-darwin/cocoa/lazarus.or', assuming: macOS
./../ppaslink.sh: line 9: 11623 Segmentation fault: 11  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld -weak_framework AppKit -weak_framework UserNotifications -weak_framework AppKit -weak_framework UserNotifications -order_file ../symbol_order.fpc -multiply_defined suppress -L. -o ../lazarus `cat ../link10776.res` -filelist ../linkfiles10776.res
make[1]: *** [ide] Error 2
make: *** [ide] Error 2
An error occurred while linking
Error: (9013) Error while linking
Fatal: (10026) There were 1 errors compiling module, stopping
Fatal: (1018) Compilation aborted
Error: /Users/soul/fpcupdeluxe_4/fpc/bin/aarch64-darwin/ppca64 returned an error exitcode
Error: (lazarus) Build IDE: stopped with exit code 2
Error: (lazbuild) Building IDE: Building IDE failed

fpcupdeluxe: ERROR: Lazarus Native Installer (BuildModuleCustom: UserIDE): lazbuild returned error code 512
Details: .


ERROR: Fpcupdeluxe fatal error !
Sequencer (UserIDE): Failure running fpcupdeluxe: error executing sequence UserIDE
Sequencer (Lazarus): Failure running fpcupdeluxe: error executing sequence Lazarus
Sequencer (Default): Failure running fpcupdeluxe: error executing sequence Default


even if I download a ready build lazarus, I can start it and if I want to compile a little project the same error appears. Even did a fresh install of macOS, cause I thought I have broken anything.

TRon:
See this thread.

Jeff_t:
The quoted post doesnt seem to have an answer, which is a pity as I have the same problem today

DonAlfredo:
Have you tried to add -WM10.15 or -WM11.0 into the options. That might help.
Options:
1: the FPC options in Setup+ when using fpcupdeluxe.
2: the custom compiler options when compiling a project.

Thaddy:

--- Quote from: Jeff_t on September 02, 2025, 08:19:39 am ---The quoted post doesnt seem to have an answer, which is a pity as I have the same problem today

--- End quote ---
Yes it does:
https://forum.lazarus.freepascal.org/index.php/topic,70698.msg552744.html#msg552744

That is about the same as I already suggested: use the -WM option with a version higher or at least equal to 10.5
Higher is likely better for future proofing.
After that you will have no problems. (At least: works on my machine, a 2024 mac mini M4, fully updated)

Why do people seem to blatantly ignore that solution even if given by multiple mac users?

Frankly, in my opinion this should be made default during installs: most macs with apple M's are likely always up-to-date. I will check what would be the best option, probably higher than 10.5.

Navigation

[0] Message Index

[#] Next page

Go to full version