Recent

Author Topic: Nearly working, but...  (Read 1904 times)

Jeff_t

  • New Member
  • *
  • Posts: 17
Nearly working, but...
« on: September 01, 2025, 03:32:13 pm »
Hi all. I have read a few posts about problems installing, many of which seem to have gotten further than me.
So apologies for what will seem like a very newbie question.
Im coming back to Object Pascal after 30 years, and Lazarus looks like the best place to start.

I downloaded the fpc, ran the sudo commands for Xcode command line stuff, then installed fpc.

The online 'guide' for installation then says download and install Lazarus.
So I got the zip file for my M2 Mac, ran Xattr, unzipped.
Lazarus.app starts and I see an IDE
The paths to components reports OK for things like the linker etc.

But compiling even the empty project gets an error:

Error: /Users/jefft/tmp/ppaslink.sh: line 9: 86327 Segmentation fault: 11  /Library/Developer/CommandLineTools/usr/bin/ld -weak_framework AppKit -weak_framework UserNotifications -order_file /Users/jefft/tmp/symbol_order.fpc -multiply_defined suppress -L. -o /Users/jefft/tmp/project1 `cat /Users/jefft/tmp/link86315.res` -filelist /Users/jefft/tmp/linkfiles86315.res

There is a post that talks about amending the Make , but I don't know where to begin finding that.

Any suggestions?
« Last Edit: September 01, 2025, 06:53:48 pm by Jeff_t »

coda

  • New Member
  • *
  • Posts: 18
Re: Nearly working, but...
« Reply #1 on: September 02, 2025, 12:32:49 pm »
Hi,  I'm in the same situation but managed to get a bit further. I've got the compiler working but am stuck at linking. I'm not at the mac right now, but did see a config file that sets the paths for the various build tools. Will look that up when I'm back if you're still in need.

We have similar systems and getting this running seems to be a bit esoteric. Maybe we can combine forces to fumble through getting this working?

coda

  • New Member
  • *
  • Posts: 18
Re: Nearly working, but...
« Reply #2 on: September 02, 2025, 03:59:31 pm »
Found this thread: https://www.lazarusforum.de/viewtopic.php?t=17267 in the German forum and followed the process outlined in the last message there.

download fpcupdeluxe, set some options per message and then build fpc and lazarus.

Note that this installs Lazarus 3.6, not the latest, but at least this works 'out of the box'.

Not sure if this helps you but right now first thing I need is a working system. 

Thaddy

  • Hero Member
  • *****
  • Posts: 18324
  • Here stood a man who saw the Elbe and jumped it.
Re: Nearly working, but...
« Reply #3 on: September 02, 2025, 04:21:34 pm »
I really do not understand why it did not work with my tip, because it should, at least here.
I did not do anything else special.
« Last Edit: September 02, 2025, 04:23:13 pm by Thaddy »
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

Jeff_t

  • New Member
  • *
  • Posts: 17
Re: Nearly working, but...
« Reply #4 on: September 26, 2025, 02:44:40 pm »
Lazarus now runs and I can run an app in debug.

If I then try to build an app (which it must know how to do, since it runs as debug), I get an error about missing stuff.

Incompatible PPU .. I'm on an M2 machine and it seems to be looking in a folder  aaArch-Darwin

coda

  • New Member
  • *
  • Posts: 18
Re: Nearly working, but...
« Reply #5 on: September 26, 2025, 06:25:17 pm »
what version(s)?

I'll give this the macOS version another try over the weekend. 

Jeff_t

  • New Member
  • *
  • Posts: 17
Re: Nearly working, but...
« Reply #6 on: September 26, 2025, 09:53:46 pm »
My MacOS is 10.15.6
I've now seen a few other messages here that suggest Lazarus doesn't like that.

dbannon

  • Hero Member
  • *****
  • Posts: 3556
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Nearly working, but...
« Reply #7 on: September 27, 2025, 04:29:13 am »
If I then try to build an app (which it must know how to do, since it runs as debug), I get an error about missing stuff.

Incompatible PPU .. I'm on an M2 machine and it seems to be looking in a folder  aaArch-Darwin

I don't have an M2 machine. But I'd expect it to look in aaArch64-Darwin ?
And, as you say, if it can find the units it needs for debug mode, it should find them for release.  Are you sure the same settings (except debug related) apply in both modes ?

I build my Lazarus on an Intel Mac from source, that way, no doubt about the right 'flavour' units. Recommend. Download the source, compile and run from user directory. Still have to remove the "don't run attribute" but overall, pretty easy.

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

Jeff_t

  • New Member
  • *
  • Posts: 17
Re: Nearly working, but...
« Reply #8 on: September 28, 2025, 09:12:57 am »
I have resolved this for now by setting my compiler options to +WM10.14   instead of  10.15

 

TinyPortal © 2005-2018