Re: gfortran for M1?

petr.2006 at petr.2006 at
Sat Mar 20 13:59:49 UTC 2021

Thank you Chris,

I found gfortran-mp-devel in /opt/local/bin.

However trying to compile my source a got linker error:
ld: library not found for -lm

And I am lost again. I did not specified any linker options,
just compiler options:
-g -fbounds-check -ffpe-trap=invalid,zero,overflow -ffpe-summary=invalid,zero,overflow -fno-sign-zero -fno-automatic -Wuninitialized

(Sorry for beginner question. Google did not help.)


> Od: "Chris Jones" <jonesc at>
> Komu: petr.2006 at
> Datum: 20.03.2021 14:04
> Předmět: Re: gfortran for M1?
> CC: <macports-users at>
>Gcc-devel provides gfortran for M1 machines by default.
>> On 20 Mar 2021, at 1:01 pm, petr.2006 at wrote:
>> Is it already possible to install gfortran on M1?
>> It seems that gcc-devel does not have +gfortran variant and and other gcc versions are not compatible. 
>> Thank you, 
>> Petr

More information about the macports-users mailing list