Apple Silicon install of gcc

Versions

Please provide the used software versions.

FLUKA: 4.5.2
Flair: -
Operating system: Mac OS Tahoe 26
Compiler: gcc13

Description

Hi Folks,

(complete newbie here).

I’m trying to install gcc (and the FLUKA / FLAIR) using Macports, and I’m getting this error:

Error: Cannot install gcc13 for the arch ‘arm64’ because

Error: its dependency libgcc13 is only installed for the arch ‘x86_64’

Error: and does not have a universal variant.

Error: Unable to execute port gcc13: architecture mismatch

So I’m guessing that it’s an intel vs apple silicon issue… Please Help!

kind regards

Graham

Input files

Please upload all relevant files. (FLUKA input file, Flair project file, user routines, and data files)

Hi @graham,

Could you please use a newer version of gfortran? I’m using gcc15 and it works on my Mac.

Please let us know if this helps.
Cheers

hi Luigi,

I tried Fortran v15, and (second time around), it gave me this error

sudo port install gcc15

- → Upgrading already installed dependencies of gcc15

Error: Cannot install libgcc for the archs ‘arm64 x86_64’ because

Error: its dependency libgcc15 does not build for the required archs by default

Error: and does not have a universal variant.

Error: Unable to execute port gcc15: upgrading deps for gcc15 failed

regards

Graham

Hi @graham,

It seems there’s a compatibility issue between the currently installed libgcc15 in your MacPorts environment and gcc15.

To resolve this, I suggest to
sudo port clean libgcc libgcc15 gcc15

Then try reinstalling gcc15. You might also need to clean any other ports showing a conflict so do that as well.

Cheers, Luigi