Recent

Author Topic: macOS 15.4 Breaks All Compiles  (Read 3612 times)

Igor

  • Sr. Member
  • ****
  • Posts: 383
Re: macOS 15.4 Breaks All Compiles
« Reply #30 on: April 21, 2025, 02:48:34 pm »
Hi,

I found a solution, at least for my apps.

After the update to macOS 15.4 of my mac Mini M1 I also couldn't compile my app for aarch64 and got an error mentioned in the 1st post of this topic:

Code: Pascal  [Select][+][-]
  1. "Error: ld: Assertion failed: (false && "Malformed method list"), function getMethods, file ObjC.cpp, line 150."

I accidentally found the following solution:

In Project Options > Compiler Options > Custom Options > Conditionals:

I've added the following code:

Code: Pascal  [Select][+][-]
  1. If TargetOS = 'darwin' then
  2. begin
  3.   CustomOptions += '-WM10.9';
  4. end;


It helped.

Now I successfully compiled and launched my app.

macOS 15.4.1 Sequoia
Mac mini M1.
FPC 3.2.2 / Lazarus 2.2.0
« Last Edit: April 21, 2025, 02:51:21 pm by Igor Kokarev »

moinsen

  • Newbie
  • Posts: 4
Re: macOS 15.4 Breaks All Compiles
« Reply #31 on: April 21, 2025, 04:16:24 pm »
Hi,

I found a solution, at least for my apps.

<snip>


Thank you Igor! This worked for me too.

Configuration:
MacBook Air M3, Sequoia 15.4.1
Lazarus 3.6 (rev lazarus_3_6)
FPC 3.3.1 aarch64-darwin-cocoa

Igor

  • Sr. Member
  • ****
  • Posts: 383
Re: macOS 15.4 Breaks All Compiles
« Reply #32 on: April 28, 2025, 08:51:43 am »
Glad that it helped!

Probably FPC developers can add some comments?

TRon

  • Hero Member
  • *****
  • Posts: 4351
Re: macOS 15.4 Breaks All Compiles
« Reply #33 on: April 28, 2025, 11:29:26 am »
Probably FPC developers can add some comments?
Why would they ?  Most developers do not mingle on the forums.

The issue is reported.

So..., did you leave a thumbsup yet  ? :)
Today is tomorrow's yesterday.

Hansaplast

  • Hero Member
  • *****
  • Posts: 712
  • Tweaking4All.com
    • Tweaking4All
Re: macOS 15.4 Breaks All Compiles
« Reply #34 on: April 28, 2025, 11:35:27 am »
Good point TRon!
More thumbs = more users want this fixed. Or at least the devs may see it may have some sort of priority.

ChrisR

  • Sr. Member
  • ****
  • Posts: 251
Re: macOS 15.4 Breaks All Compiles
« Reply #35 on: May 01, 2025, 02:43:21 am »
This solution also works for me. However, I put it in the main configuration so it works with all my projects.

Edit
 /etc/fpc.cfg
To include:

#ifdef cpuaarch64
#IFDEF Darwin
 -WM10.15
#ENDIF
#endif

carl_caulkett

  • Hero Member
  • *****
  • Posts: 654
Re: macOS 15.4 Breaks All Compiles
« Reply #36 on: May 06, 2025, 10:38:16 pm »
I've just installed Lazarus 4.0 running under macOS 15.4.1, and I, too, cannot do an IDE rebuild or even build any projects at all. I've just tried my old installation of Lazarus 3.99 which was working fine with the old macOS version, but that, too, fails to build. I've tried downloading and installing the 16.2 version of the Xcode Command Line Tools as well as trying this "solution"... https://forum.lazarus.freepascal.org/index.php/topic,70698.msg553691.html#msg553691. Nothing works :(

Has anyone got a reliable fix, or are/am we/I SOL?

* UPDATE *
I take it all back @ChrisR! I modified my `Configure "Build Lazarus"` to contain `-WM10.15` rather than `-WM11.0` which it had before, and the rebuild ran!

I've still got the problem whereby the IDE is not restarting properly. I'm getting this error when the IDE tries to restart...
Code: Text  [Select][+][-]
  1. Can't find the lazarus executable /Applications/lazarus 4.0/lazarus.app/Contents/Resources/startlazarus.app/Contents/MacOS/lazarus
  2.  

I, therefore, copied the "lazarus" `unix executable` from the main install folder to `/Applications/lazarus 4.0/lazarus.app/Contents/Resources/startlazarus.app/Contents/MacOS` but this resulted in a sort of ghost copy of Lazarus, which, doesn't show up on the Cmd Tab app list, and doesn't allow access to the macOS menu bar. It does, however, show the newly added components.

When I close this ghost copy of Lazarus, and restart Lazarus from my Task bar, I get the normal version, but without the component showing...

Perhaps it will make more sense in the morning 😉
« Last Edit: May 06, 2025, 11:24:44 pm by carl_caulkett »
"It builds... ship it!"

 

TinyPortal © 2005-2018