<div dir="ltr"><div>Thanks Chris, that is good advice. I forgot about port select. In my case I had to resort to a manual workaround for gfortran, because the port command is disabled on my corporate controlled Mac.</div><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 4, 2024 at 4:04 AM Chris Jones <<a href="mailto:jonesc@hep.phy.cam.ac.uk">jonesc@hep.phy.cam.ac.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><br>You should not sym link manually yourself. That is precisely what `sudo<span class="gmail-Apple-converted-space"> </span><br>port select gcc` is there for ....<br>
<br>
On 02/03/2024 4:43 am, Dave Allured - NOAA Affiliate via macports-users <br>
wrote:<br>
> Yes, that is it. Macports implementation decided to decorate the name <br>
> of the executable. There is no naked "gfortran". It is gfortran-mp-12, <br>
> gfortran-mp-13, etc. This way you can have multiple versions installed <br>
> side by side, if you wish. For convenience, I usually sym link <br>
> "gfortran" to the latest MP version.<br>
> <br>
> <br>
> On Fri, Mar 1, 2024 at 9:35 PM Kenneth Wolcott <<a href="mailto:kennethwolcott@gmail.com" target="_blank">kennethwolcott@gmail.com</a> <br>
> <mailto:<a href="mailto:kennethwolcott@gmail.com" target="_blank">kennethwolcott@gmail.com</a>>> wrote:<br>
> <br>
> Should I be using gfortran-mp-13?<br>
> <br>
> ls /opt/local/bin | grep fortran<br>
> arm64-apple-darwin23-gfortran-mp-12<br>
> arm64-apple-darwin23-gfortran-mp-13<br>
> gfortran-mp-12<br>
> gfortran-mp-13<br>
> lfortran<br>
> <br>
> On Fri, Mar 1, 2024 at 8:28 PM Kenneth Wolcott<br>
> <<a href="mailto:kennethwolcott@gmail.com" target="_blank">kennethwolcott@gmail.com</a> <mailto:<a href="mailto:kennethwolcott@gmail.com" target="_blank">kennethwolcott@gmail.com</a>>> wrote:<br>
> ><br>
> > I do have a GNAT Ada compiler located at:<br>
> ><br>
> > /opt/gcc-13.2.0-aarch64<br>
> ><br>
> > Does the existence of this confuse or mislead MacPorts?<br>
> ><br>
> > Thanks,<br>
> > Ken W.<br>
> ><br>
> > On Fri, Mar 1, 2024 at 8:24 PM Kenneth Wolcott<br>
> <<a href="mailto:kennethwolcott@gmail.com" target="_blank">kennethwolcott@gmail.com</a> <mailto:<a href="mailto:kennethwolcott@gmail.com" target="_blank">kennethwolcott@gmail.com</a>>> wrote:<br>
> > ><br>
> > > Hi Joshua;<br>
> > ><br>
> > > port contents gcc13 | grep gfortran<br>
> > > /opt/local/bin/arm64-apple-darwin23-gfortran-mp-13<br>
> > > /opt/local/bin/gfortran-mp-13<br>
> > > /opt/local/lib/gcc13/libgfortran.5.dylib<br>
> > > /opt/local/lib/gcc13/libgfortran.a<br>
> > > /opt/local/lib/gcc13/libgfortran.dylib<br>
> > > /opt/local/lib/gcc13/libgfortran.spec<br>
> > > /opt/local/share/info/<a href="http://gfortran-mp-13.info" rel="noreferrer" target="_blank">gfortran-mp-13.info</a><br>
> <<a href="http://gfortran-mp-13.info" rel="noreferrer" target="_blank">http://gfortran-mp-13.info</a>><br>
> > > /opt/local/share/man/man1/gfortran-mp-13.1.gz<br>
> > > ~:<br>
> > ><br>
> > > But "ls /usr/local/bin | grep -i fortran"<br>
> > ><br>
> > > Has no output. ??!!<br>
> > ><br>
> > > Thanks,<br>
> > > Ken W.<br>
> > ><br>
> > > On Fri, Mar 1, 2024 at 7:19 PM Joshua Root <<a href="mailto:jmr@macports.org" target="_blank">jmr@macports.org</a><br>
> <mailto:<a href="mailto:jmr@macports.org" target="_blank">jmr@macports.org</a>>> wrote:<br>
> > > ><br>
> > > > Are you sure of that? Check e.g. 'port contents gcc13 | grep<br>
> gfortran'.<br>
> > > ><br>
> > > > - Josh<br>
> > > ><br>
> > > > Kenneth Wolcott wrote:<br>
> > > ><br>
> > > > > Hi Noam;<br>
> > > > ><br>
> > > > > I do not have gfortran, therefore I must not have gcc?<br>
> > > > ><br>
> > > > > Here is a filtered list of the ports that I have installed<br>
> that pertain to gcc:<br>
> > > > > gcc12 @12.3.0_4+stdlib_flag (active)<br>
> > > > > gcc12-libcxx @12.3.0_4+clang14 (active)<br>
> > > > > gcc13 @13.2.0_4+stdlib_flag (active)<br>
> > > > > gcc13-libcxx @13.2.0_4+clang16 (active)<br>
> > > > > gcc_select @0.1_10 (active)<br>
> > > > > libgcc @7.0_0 (active)<br>
> > > > > libgcc12 @12.3.0_4+stdlib_flag (active)<br>
> > > > > libgcc13 @13.2.0_4+stdlib_flag (active)<br>
> > > > > mpich-default @4.1.2_2+gcc13 (active)<br>
> > > > ><br>
> > > > > Still confused...<br>
> > > > ><br>
> > > > > Thanks,<br>
> > > > > Ken W.<br>
> > > > ><br>
> > > > > On Fri, Mar 1, 2024 at 6:03 PM Bernstein, Noam CIV USN NRL<br>
> WASHINGTON<br>
> > > > > DC (USA) <noam.bernstein.civ at <a href="http://us.navy.mil" rel="noreferrer" target="_blank">us.navy.mil</a><br>
> <<a href="http://us.navy.mil" rel="noreferrer" target="_blank">http://us.navy.mil</a>> <br>
> <<a href="https://lists.macports.org/mailman/listinfo/macports-users" rel="noreferrer" target="_blank">https://lists.macports.org/mailman/listinfo/macports-users</a><br>
> <<a href="https://lists.macports.org/mailman/listinfo/macports-users" rel="noreferrer" target="_blank">https://lists.macports.org/mailman/listinfo/macports-users</a>>>> wrote:<br>
> > > > > >//>/Pretty sure that macports gcc installs gfortran by<br>
> default, which is<br>
> > > > > a f90 (and 95, and maybe f2003) compiler./<br>
> > > ><br>
> <br>
</blockquote></div></div>