Recent

Author Topic: New Mac mini M4 - FPC 3.2.2 on MacOS 26.1  (Read 850 times)

dergen

  • New member
  • *
  • Posts: 8
New Mac mini M4 - FPC 3.2.2 on MacOS 26.1
« on: November 15, 2025, 12:01:35 pm »
Hello,

Please excuse my limited English.

My new Mac is a Mac mini M4 with macOS 26.1.

I downloaded the latest fpc-3.2.2.intelarm64-macosx.dmg from November 9, 2025, and after opening it and running fpc-3.2.2.intelarm64-macosx.mpkg, I get this error message !

What is the solution to this problem, in your opinion?

anse

  • New Member
  • *
  • Posts: 39
  • Bugmonkey
    • HeidiSQL
Re: New Mac mini M4 - FPC 3.2.2 on MacOS 26.1
« Reply #1 on: November 15, 2025, 02:52:25 pm »
I was in the very same situation recently and I believe I had to use the aarch64 package instead.


anse

  • New Member
  • *
  • Posts: 39
  • Bugmonkey
    • HeidiSQL
Re: New Mac mini M4 - FPC 3.2.2 on MacOS 26.1
« Reply #2 on: November 15, 2025, 02:55:18 pm »
Ah, no, sorry. I now recall that I was told from macOS to install Rosetta from Apple, a compatibility layer to run Intel x64 apps.

dergen

  • New member
  • *
  • Posts: 8
Re: New Mac mini M4 - FPC 3.2.2 on MacOS 26.1
« Reply #3 on: November 15, 2025, 03:58:21 pm »
Thanks for your reply.

I searched to see if anyone else had encountered the same issue, but without success.

What can we do to resolve the "old installation package" problem?

cdbc

  • Hero Member
  • *****
  • Posts: 2531
    • http://www.cdbc.dk
Re: New Mac mini M4 - FPC 3.2.2 on MacOS 26.1
« Reply #4 on: November 15, 2025, 04:09:17 pm »
Hi
Thanks again. The new version works excellently.

I repeat my advice for Mac users to mark the downloaded zip archive as safe before decompressing. This is possible with the subsequent terminal command:

xattr -cr ~/Downloads/lazarus-darwin-aarch64-4.4.zip

This step avoids that you receive a message that the app "Lazarus" is damaged and cannot be executed.
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release &  FPC Main -> Lazarus Main

dergen

  • New member
  • *
  • Posts: 8
Re: New Mac mini M4 - FPC 3.2.2 on MacOS 26.1
« Reply #5 on: November 15, 2025, 04:26:31 pm »
Thanks for your reply.

I don't see the connection between my problem installing FPC from fpc-3.2.2.intelarm64-macosx.dmg and installing Lazarus afterward ?

anse

  • New Member
  • *
  • Posts: 39
  • Bugmonkey
    • HeidiSQL
Re: New Mac mini M4 - FPC 3.2.2 on MacOS 26.1
« Reply #6 on: November 15, 2025, 05:17:53 pm »
I still believe you need Rosetta, when I'm reading the error message.

Normally macOS triggers the installation of Rosetta if an app needs it, but there are apps which do not trigger that. In that situation you can install it by hand in a terminal:

Code: [Select]
softwareupdate --install-rosetta --agree-to-license

Thaddy

  • Hero Member
  • *****
  • Posts: 18528
  • Here stood a man who saw the Elbe and jumped it.
Re: New Mac mini M4 - FPC 3.2.2 on MacOS 26.1
« Reply #7 on: November 15, 2025, 05:29:31 pm »
Apple M4 mini's - what is what I have, late 2023 - do not need Rosetta for new AARCH64 projects, only for old intel built software to run:
FreePascal and Lazarus run completely native on AARCH64 and do not need the emulation layer at all.

That said, it is always a good idea to install it, but you don't need it for new development and you surely do not need it to run fpc/lazarus.

Now. I build from source, but I have heared good reviews on very recent fpcupdeluxe for M4 hardware so you might give that a try. Download it from the fpcupdeluxe official website. Anything else may be flawed or too old.
« Last Edit: November 15, 2025, 05:42:17 pm by Thaddy »
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

mischi

  • Full Member
  • ***
  • Posts: 189
Re: New Mac mini M4 - FPC 3.2.2 on MacOS 26.1
« Reply #8 on: November 16, 2025, 09:32:46 am »
I have just submitted a pull request for the installation of fpc using MacPorts (https://github.com/macports/macports-ports/pull/30083), which does not require Rosetta for building fpc from sources. I expect it to be accepted within days.

MiSchi.

dergen

  • New member
  • *
  • Posts: 8
Re: New Mac mini M4 - FPC 3.2.2 on MacOS 26.1
« Reply #9 on: November 16, 2025, 12:01:34 pm »
Problem solved thanks to fpcupdeluxe.

Thanks everyone for your suggestions!

Thaddy

  • Hero Member
  • *****
  • Posts: 18528
  • Here stood a man who saw the Elbe and jumped it.
Re: New Mac mini M4 - FPC 3.2.2 on MacOS 26.1
« Reply #10 on: November 16, 2025, 12:43:42 pm »
I have just submitted a pull request for the installation of fpc using MacPorts (https://github.com/macports/macports-ports/pull/30083), which does not require Rosetta for building fpc from sources. I expect it to be accepted within days.

MiSchi.
That is for the very specific situation where you want an Intel Mac bootstrap compiler to build the AARCH64 one.
I did not even try that! I just built cross-compilers to build a AARCH64 bootstrap compiler that builds AARCH64 trunk/main.

But it is welcome but never necessity.
« Last Edit: November 16, 2025, 12:46:29 pm by Thaddy »
Due to censorship, I changed this to "Nelly the Elephant". Keeps the message clear.

mischi

  • Full Member
  • ***
  • Posts: 189
Re: New Mac mini M4 - FPC 3.2.2 on MacOS 26.1
« Reply #11 on: November 16, 2025, 07:30:38 pm »
That is for the very specific situation where you want an Intel Mac bootstrap compiler to build the AARCH64 one.
I did not even try that! I just built cross-compilers to build a AARCH64 bootstrap compiler that builds AARCH64 trunk/main.

But it is welcome but never necessity.

I am not sure, whether I completely get what you mean. Until now, the Intel compiler was used as bootstrap compiler to build the AARCH64 compiler from sources. So far, this was no problem since Rosetta was present by default. With macOS 26, the latter is no longer the case and a AARCH64 bootstrap compiler is a preferred option. This is what the pull request deals with by using the AARCH64 compiler from the disk image as bootstrap compiler.

Th installation with MacPorts has never been a necessity, but another possibility. For lazarus my claim is that it is more convenient. However, I understand the additional effort to install MacPorts and other barriers.

MiSchi

 

TinyPortal © 2005-2018