Recent

Author Topic: can't compile anything in macOS 15.4  (Read 2404 times)

BVale

  • New Member
  • *
  • Posts: 11
can't compile anything in macOS 15.4
« on: April 03, 2025, 10:54:27 pm »
(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

  • Hero Member
  • *****
  • Posts: 4377
Re: can't compile anything in macOS 15.4
« Reply #1 on: April 04, 2025, 05:55:52 pm »
Today is tomorrow's yesterday.

Jeff_t

  • New Member
  • *
  • Posts: 17
Re: can't compile anything in macOS 15.4
« Reply #2 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

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1845
Re: can't compile anything in macOS 15.4
« Reply #3 on: September 02, 2025, 08:59:32 am »
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

  • Hero Member
  • *****
  • Posts: 18376
  • Here stood a man who saw the Elbe and jumped it.
Re: can't compile anything in macOS 15.4
« Reply #4 on: September 02, 2025, 09:10:39 am »
The quoted post doesnt seem to have an answer, which is a pity as I have the same problem today
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.
« Last Edit: September 02, 2025, 09:38:03 am by Thaddy »
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

Jeff_t

  • New Member
  • *
  • Posts: 17
Re: can't compile anything in macOS 15.4
« Reply #5 on: September 02, 2025, 11:54:21 am »
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.


I saw people suggest add -WM10.15
But I cannot find 'options' in order to do that.
Or 'custom compiler options'
I cannot find these words anywhere in 'Settings', for example.

the FPC options in Setup+ when using fpcupdeluxe.
The install instructions I followed don't include any reference to fpcupdeluxe.


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

Not ignoring it - unable to find any way to do it.

Jeff_t

  • New Member
  • *
  • Posts: 17
Re: can't compile anything in macOS 15.4
« Reply #6 on: September 02, 2025, 12:11:54 pm »
I have found someone who was prepared to describe what was meant by the solution.

For the benefit of other real newcomers who struggled with this like me...

Open Lazarus.
Click the Project menu.
In there, choose Project options.
When that opens, there are two sections, Project Options and Compiler Options.
We need 'Compiler Options'
Under that is Compilation and Linking. This is NOT the place to put these compiler options.
Instead, open Custom Options
In the Custom Options text box, add -WM10.15
(WM11.0 didnt work for me)


Thaddy

  • Hero Member
  • *****
  • Posts: 18376
  • Here stood a man who saw the Elbe and jumped it.
Re: can't compile anything in macOS 15.4
« Reply #7 on: September 02, 2025, 12:50:36 pm »
15 is higher than 5. That's true  :D
Glad to know it works for you too.
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

Jeff_t

  • New Member
  • *
  • Posts: 17
Re: can't compile anything in macOS 15.4
« Reply #8 on: September 28, 2025, 12:17:23 am »
If anyone continues to have trouble compiling an app in MacOS 10.15.6
I too couldn't compile with project options set to 10.15
Lazarus wouldnt even run in debug if I tried 11.0

But changing it to 10.14 allows me to build a working app

rich2014

  • New Member
  • *
  • Posts: 35
Re: can't compile anything in macOS 15.4
« Reply #9 on: October 16, 2025, 04:33:46 pm »

 

TinyPortal © 2005-2018