Re: gfortran for M1?

2021-03-20 Thread petr.2006
Thank you Chris, it was the reason. Now it works. Great. Petr __ > Od: "Christopher Jones" > Komu: petr.2...@centrum.cz, "Gerben Wierda via macports-users" > , "Marius Schamschula" > > Datum: 20.03.2021 16:50 > Předmět: Re:

Re: gfortran for M1?

2021-03-20 Thread Christopher Jones
sorry… auto text correction turned ‘xcrun’ into ’scrub’…. > On 20 Mar 2021, at 3:50 pm, Christopher Jones > wrote: > > Hi, > > You probably need to specify the SDK location. There are a number ways you > can do this, gcc now supports the same mechanisms as clang. i.e. using scrub > or

Re: gfortran for M1?

2021-03-20 Thread Christopher Jones
Hi, You probably need to specify the SDK location. There are a number ways you can do this, gcc now supports the same mechanisms as clang. i.e. using scrub or setting SDKROOT . I personally have export SDKROOT=`xcrun --show-sdk-path` in my shell profile for this very reason. Chris > On 20

Re: gfortran for M1?

2021-03-20 Thread petr.2006
Thank you Marius, it did not help. I also reboot the machine. Now I am getting: ld: library not found for -lm collect2: error: ld returned 1 exit status I am not sure whether the message from collect2 was there before running sudo port select gcc mp-gcc-devel. I am using bash, but in default

Re: gfortran for M1?

2021-03-20 Thread Marius Schamschula
Petr, sudo port select gcc mp-gcc-devel will add links so that the binaries, includes and libraries can be found. > On Mar 20, 2021, at 8:59 AM, > wrote: > > Thank you Chris, > > I found gfortran-mp-devel in /opt/local/bin. > > However trying to compile my source a got linker error: > ld:

Re: gfortran for M1?

2021-03-20 Thread petr.2006
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

Re: gfortran for M1?

2021-03-20 Thread Chris Jones
Hi, Gcc-devel provides gfortran for M1 machines by default. Chris > On 20 Mar 2021, at 1:01 pm, petr.2...@centrum.cz 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. >

gfortran for M1?

2021-03-20 Thread petr.2006
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