<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hello Franco et al.,<div class=""><br class=""></div><div class="">How are you? I’m not an expert on MacPorts dependencies, but you may/should be able to compile your Fortran code with the GNU11 toolchain. Potentially, you only need to specify the Fortran standard that your code supports. This is possible via the -std flag to gfortran, e.g. </div><div class=""><br class=""></div><div class=""> gfortran -std=f95 …</div><div class=""><br class=""></div><div class="">-std=std<br class="">Specify the standard to which the program is expected to conform, which may be one of ‘f95’, ‘f2003’, ‘f2008’, ‘f2018’, ‘gnu’, or ‘legacy’. The default value for std is ‘gnu’, which specifies a superset of the latest Fortran standard that includes all of the extensions supported by GNU Fortran, although warnings will be given for obsolete extensions not recommended for use in new code. The ‘legacy’ value is equivalent but without the warnings for obsolete extensions, and may be useful for old non-standard programs. The ‘f95’, ‘f2003’, ‘f2008’, and ‘f2018’ values specify strict conformance to the Fortran 95, Fortran 2003, Fortran 2008 and Fortran 2018 standards, respectively; errors are given for all extensions beyond the relevant language standard, and warnings are given for the Fortran 77 features that are permitted but obsolescent in later standards. The deprecated option ‘-std=f2008ts’ acts as an alias for ‘-std=f2018’. It is only present for backwards compatibility with earlier gfortran versions and should not be used any more.</div><div class=""><br class=""></div><div class="">For more information please see:</div><div class=""><br class=""></div><div class=""> <a href="https://gcc.gnu.org/onlinedocs/gfortran/Fortran-Dialect-Options.html" class="">https://gcc.gnu.org/onlinedocs/gfortran/Fortran-Dialect-Options.html</a></div><div class=""><br class=""></div><div class="">—</div><div class="">Best wishes,</div><div class="">Maxim</div><div class=""><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Maxim Abalenkov \\ <a href="mailto:maxim.abalenkov@gmail.com" class="">maxim.abalenkov@gmail.com</a><br class="">+44 7 486 486 505 \\ <a href="http://mabalenk.gitlab.io" class="">http://mabalenk.gitlab.io</a></div>
</div>
<div><br class=""><blockquote type="cite" class=""><div class="">On 18 Jun 2021, at 18:06, VACCARI FRANCO <<a href="mailto:vaccari@units.it" class="">vaccari@units.it</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">I’ve a temporary access to a new MacBook Air with M1 processor, to test on that Mac all our home made programs, mainly fortran. All external packages needed by our workflow were successfully installed (gnuplot, ImageMagick, gmt4 and many others), and I installed gcc11. <br class=""><br class="">Such modern compiler complains about some features in our code that are no longer supported, and fails to produce the executable. Of course one day we should update that code, but for the time being, and having to give back that Mac, I wanted to try with an older compiler. I installed gcc10 but that didn’t help.<br class=""><br class="">I know that gcc8 works with our codes, so I tried to install that but failed.<br class=""><br class="">The problem is that gcc8 requires libcc9, and that is marked as incompatible.<br class=""><br class="">% sudo port install gcc8<br class="">---> Computing dependencies for gcc8<br class="">The following dependencies will be installed: <br class=""> libgcc8<br class=""> libgcc9<br class="">Continue? [Y/n]: <br class="">---> Fetching archive for libgcc9<br class="">---> Attempting to fetch libgcc9-9.4.0_0.darwin_20.arm64.tbz2 from <a href="https://fra.de.packages.macports.org/libgcc9" class="">https://fra.de.packages.macports.org/libgcc9</a><br class="">---> Attempting to fetch libgcc9-9.4.0_0.darwin_20.arm64.tbz2 from <a href="http://fco.it.packages.macports.org/libgcc9" class="">http://fco.it.packages.macports.org/libgcc9</a><br class="">---> Attempting to fetch libgcc9-9.4.0_0.darwin_20.arm64.tbz2 from <a href="https://packages.macports.org/libgcc9" class="">https://packages.macports.org/libgcc9</a><br class="">---> Fetching distfiles for libgcc9<br class="">Error: gcc9 9.4.0 is not supported on Darwin 20 arm<br class="">Error: Failed to fetch libgcc9: incompatible OS X version<br class="">Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc9/libgcc9/main.log for details.<br class="">Error: Follow <a href="https://guide.macports.org/#project.tickets" class="">https://guide.macports.org/#project.tickets</a> if you believe there<br class="">is a bug.<br class="">Error: Processing of port gcc8 failed<br class="">locadmin@eAir ~ %<br class=""><br class="">Actually any version from 5 to 9 requires libcc9<br class=""><br class="">sudo port install gcc5<br class="">---> Computing dependencies for gcc5<br class="">The following dependencies will be installed: <br class=""> isl18<br class=""> libgcc6<br class=""> libgcc7<br class=""> libgcc8<br class=""> libgcc9<br class="">Continue? [Y/n]:<br class=""><br class="">and therefore fails to install. <br class=""><br class="">gcc49 is a different story, as it’s clearly declared unsupported for Xcode 9 or greater:<br class=""><br class="">sudo port install gcc49<br class="">Password:<br class="">---> Fetching distfiles for gcc49<br class="">Error: building gcc49 is not supported with Xcode 9 or greater<br class="">Error: Failed to fetch gcc49: unsupported platform<br class="">Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_gcc49/gcc49/main.log for details.<br class="">Error: Follow <a href="https://guide.macports.org/#project.tickets" class="">https://guide.macports.org/#project.tickets</a> if you believe there<br class="">is a bug.<br class="">Error: Processing of port gcc49 failed<br class=""><br class="">Is it really so that gcc9 and earlier will never be compatible with M1 Macs? And why libgcc9 is needed by gcc5?<br class=""><br class="">Thanks<br class=""><br class="">Franco<br class=""><br class=""><br class=""></div></div></blockquote></div><br class=""></div></body></html>