Recent

Author Topic: Macos Sequoia Lazarus 3.8 startlazarus not start!  (Read 1758 times)

howeing

  • Newbie
  • Posts: 2
Macos Sequoia Lazarus 3.8 startlazarus not start!
« on: March 30, 2025, 10:39:21 am »
1. I installation 3.8, from application  started is running normal, then  rebuild IDE  has failed.
2. show information:Can't find the Lazarus executable /Applications/lazarus/startlazarus.app/Contents/MacOS/lazarus.
3. I try from application startlazarus started  is same information.
4. I checked  directory /Applications/lazarus/startlazarus.app/Contents/MacOS/: here only have file
startlazarus.
5. I try lazarus 4.0 RC3 is same.
« Last Edit: March 30, 2025, 10:45:43 am by howeing »

turunk

  • New Member
  • *
  • Posts: 22
Re: Macos Sequoia Lazarus 3.8 startlazarus not start!
« Reply #1 on: April 01, 2025, 01:29:31 am »
i got the dmg to install, but than i had a terminal-window and the config of lazarus.
he is asking for a <fpc or approximativ ppcx64>. both i did not found in the whole tree.
and up is the menu of the terminal-program and not lazarus and i do not know how to open
something else than the unit, like dll or exe to make?
is the terminal from mac, a installed github, or lazarus-terminal which looks like dos?

turunk

  • New Member
  • *
  • Posts: 22
Re: Macos Sequoia Lazarus 3.8 startlazarus not start!
« Reply #2 on: April 01, 2025, 01:40:13 am »
i saw the pic of mac 13 ventura, and now can be that lazarus 3.8 is not for mac 15.3 ?

howeing

  • Newbie
  • Posts: 2
Re: Macos Sequoia Lazarus 3.8 startlazarus not start!
« Reply #3 on: April 02, 2025, 10:25:14 am »
thanks for your reply, however, the same issue  in the lazarus 4.0 RC3, at this point, we will have to wait for update from provider. 8-)

ChrisR

  • Sr. Member
  • ****
  • Posts: 251
Re: Macos Sequoia Lazarus 3.8 startlazarus not start!
« Reply #4 on: April 16, 2025, 09:06:17 pm »
I did get the Lazarus 4.0RC3 working on my macOS 15.4 computer.

1. From the Lazarus source folder, I compiled the Lazarus myself by blessing the application:
  xattr -dr com.apple.quarantine ./lazarus.app

2. At that stage, I could launch the Lazarus app which is ARM (aarch64).


3. I can use the Project/NewProject to create a new graphical application. It will compile and run IF I set the Project/ProjectOptions... Config&Target\TargetCpuFamily to x86_64 (e.g. Intel/AMD)

4. The project will not compile and run as a aarch64 (ARM) project:


Compile Project, Target: /Users/chris/dcm/proj/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/chris/dcm/proj/lib/aarch64-darwin/project1.or', assuming: macOS
Error: /Users/chris/dcm/proj/ppaslink.sh: line 9: 14448 Segmentation fault: 11  /Library/Developer/CommandLineTools/usr/bin/ld -weak_framework AppKit -weak_framework UserNotifications -order_file /Users/chris/dcm/proj/symbol_order.fpc -multiply_defined suppress -L. -o /Users/chris/dcm/proj/project1 `cat /Users/chris/dcm/proj/link14440.res` -filelist /Users/chris/dcm/proj/linkfiles14440.res
An error occurred while linking
Error: Error while linking

turunk

  • New Member
  • *
  • Posts: 22
Re: Macos Sequoia Lazarus 3.8 startlazarus not start!
« Reply #5 on: April 25, 2025, 02:32:56 pm »
at mac-terminal with xattr i got file not found
maybe sure i have no arm aarch64

dbannon

  • Hero Member
  • *****
  • Posts: 3344
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Macos Sequoia Lazarus 3.8 startlazarus not start!
« Reply #6 on: April 26, 2025, 02:11:52 am »
The attr command is necessary on x86_64 as well as arm64. My montaray box needs it.

If you build an app (or import and app where the developer did not apply the attr command trick) you need to do it.

If it fails for you, three possibilities -
  • You are running a quite old OS, I am not sure when Apple introduced this nasty little trick.
  • You are not in the right directory, you should be able to type 'ls -l" and see both "lazarus" and "lazarus.app".
  • You have not successfully built the the binary / app file. See test above.


I note Chris is still having problems on his amr64 box with Linking, I suggested he try a previous version of the xcode command line tools.

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

Renat.Su

  • Sr. Member
  • ****
  • Posts: 252
    • Renat.Su
Re: Macos Sequoia Lazarus 3.8 startlazarus not start!
« Reply #7 on: April 26, 2025, 03:58:29 pm »
Compile Project, Target: /Users/chris/dcm/proj/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/chris/dcm/proj/lib/aarch64-darwin/project1.or', assuming: macOS
Error: /Users/chris/dcm/proj/ppaslink.sh: line 9: 14448 Segmentation fault: 11  /Library/Developer/CommandLineTools/usr/bin/ld -weak_framework AppKit -weak_framework UserNotifications -order_file /Users/chris/dcm/proj/symbol_order.fpc -multiply_defined suppress -L. -o /Users/chris/dcm/proj/project1 `cat /Users/chris/dcm/proj/link14440.res` -filelist /Users/chris/dcm/proj/linkfiles14440.res
An error occurred while linking
Error: Error while linking
I confirm that there are similar problems with any Lazarus on the MacBook Air.
I also tried to build a trunk version of Lazarus using fpcupdeluxe, but failed again:
Quote
Linking ../lazarus
-macosx_version_min has been renamed to -macos_version_min
ld: warning: ignoring duplicate libraries: '-lc'
ld: warning: no platform load command found in '/Users/user/fpcupdeluxe/lazarus/units/aarch64-darwin/cocoa/lazarus.or', assuming: macOS
make[1]: *** [ide] Error 2
make: *** [ide] Error 2
Error: (9014) Can't call the linker, switching to external linking (error was "Failed to execute "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld", error code: -11")
Fatal: (10026) There were 1 errors compiling module, stopping
Fatal: (1018) Compilation aborted
Error: /Users/user/fpcupdeluxe/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

Renat.Su

  • Sr. Member
  • ****
  • Posts: 252
    • Renat.Su
Re: Macos Sequoia Lazarus 3.8 startlazarus not start!
« Reply #8 on: April 26, 2025, 04:01:54 pm »
I stopped my research because Lazarus IDE on WIndows and Linux is enough for me for now. I'll start experimenting a little later.

Nimbus

  • New Member
  • *
  • Posts: 39
Re: Macos Sequoia Lazarus 3.8 startlazarus not start!
« Reply #9 on: April 26, 2025, 10:33:29 pm »
If that helps, I managed to sort of work around the linker problem in Sequoia by adding a '-WM10.9' FPC option, first in fpcupdeluxe (to build Lazarus), then in Lazarus project options - to build projects.
Both Lazarus and programs seem to work fine in this way except they don't respect the dark theme for some reason, so it's in light. The debugger does not work though - 'Run without debugging' is the only option for me.

dbannon

  • Hero Member
  • *****
  • Posts: 3344
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Macos Sequoia Lazarus 3.8 startlazarus not start!
« Reply #10 on: April 27, 2025, 06:35:17 am »
Hmm, interesting trick. By making the binary Mavericks compatible, its presumably using code that does not contain the source of the problem. 

Have you tried something more recent ? Mavericks is very old, Apple did not do dark them for example back then.

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

Nimbus

  • New Member
  • *
  • Posts: 39
Re: Macos Sequoia Lazarus 3.8 startlazarus not start!
« Reply #11 on: April 27, 2025, 09:01:51 am »

Have you tried something more recent ? Mavericks is very old, Apple did not do dark them for example back then.

Good question, thanks. Did a few tests - it seems to work up until Catalina including ('-WM10.15') - and the dark theme shows with this one. The debugger also works! Anything further, '-WM11.0' and so on would not link.

N.B. This is with latest xcode 16.3 tools, I didn't do the downgrade as other people did.

dbannon

  • Hero Member
  • *****
  • Posts: 3344
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Macos Sequoia Lazarus 3.8 startlazarus not start!
« Reply #12 on: April 27, 2025, 11:26:26 am »
Nice Work Nimbus !  Its not a solution as you note but a pretty good work around for now.

I'd tend to think someone making software for the Mac, today, would want to support back as far as Catalina, wouldn't you ?

As I said, nice work !

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

Renat.Su

  • Sr. Member
  • ****
  • Posts: 252
    • Renat.Su
Re: Macos Sequoia Lazarus 3.8 startlazarus not start!
« Reply #13 on: April 27, 2025, 11:37:32 am »
If that helps, I managed to sort of work around the linker problem in Sequoia by adding a '-WM10.9' FPC option, first in fpcupdeluxe (to build Lazarus), then in Lazarus project options - to build projects.
Both Lazarus and programs seem to work fine in this way except they don't respect the dark theme for some reason, so it's in light. The debugger does not work though - 'Run without debugging' is the only option for me.
`-WM10.9`  Ohh. THanks, this works for me

Nimbus

  • New Member
  • *
  • Posts: 39
Re: Macos Sequoia Lazarus 3.8 startlazarus not start!
« Reply #14 on: April 27, 2025, 12:41:34 pm »
I'd tend to think someone making software for the Mac, today, would want to support back as far as Catalina, wouldn't you ?

Good point, I agree.

`-WM10.9`  Ohh. THanks, this works for me

Yeah, not ideal but works. I settled for '-WM10.15' which makes slightly more sense to me.

 

TinyPortal © 2005-2018