<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=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 10 Nov 2018, at 7:09 pm, Christopher Jones <<a href="mailto:jonesc@hep.phy.cam.ac.uk" class="">jonesc@hep.phy.cam.ac.uk</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">cctools was updated recently, changing the default variants it was built with. This caused issues with the gcc compilers, so those where rev-bumped last week to adapt.</div><div class=""><br class=""></div><div class="">The issue though is users on 10.2+  who had cctools installed would have done so with the xcode variant installed. The recent update that was pushed change this, and users need to make sure they update their installation to get this as by default, port will retain the previously requested variants a port was installed with, so would retain the now non-default Xcode variant. </div><div class=""><br class=""></div><div class="">So you need to force reinstall cctools.</div><div class=""><br class=""></div><div class="">> sudo port uninstall cctools</div><div class=""><br class=""></div><div class="">ignore the warnings, then</div><div class=""><br class=""></div><div class="">> sudo port install cctools</div><div class=""><br class=""></div><div class="">you should then have the new defaults.</div></div></div></blockquote><div><br class=""></div><div>also, please run</div><div><br class=""></div><div>> sudo  port sync</div><div>> sudo port upgrade outdated</div><div><br class=""></div><div>to make sure you then have everything in sync.</div><br class=""><blockquote type="cite" class=""><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><br class=""></div><div class="">Unfortunately, the author of the recent cctools change did not put in code to automatic upgrade users from the xcode variant to the llvm70 variant (which is now the default). This should have been done.</div><div class=""><br class=""></div><div class=""><a href="https://github.com/macports/macports-ports/commit/78b67f819222a83f7a198213fb8a1d0758cb7753#diff-8680d6e0db3e1a08c29d7699d58be6b7" class="">https://github.com/macports/macports-ports/commit/78b67f819222a83f7a198213fb8a1d0758cb7753#diff-8680d6e0db3e1a08c29d7699d58be6b7</a></div><div class=""><br class=""></div><div class="">When the Xcode variant was added a while back (to fix issues with the old cctools on Xcode 9 systems) code was added to automatically migrate users to it, see the removed line 64-75 above. Similar should have now have been added to put them back on the llvm70 variant.</div><div class=""><br class=""></div><div class="">cheers Chris</div><div class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">On 10 Nov 2018, at 3:34 pm, pagani laurent via macports-users <<a href="mailto:macports-users@lists.macports.org" class="">macports-users@lists.macports.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi,<br class=""><br class="">I am running OSX10.12.<br class=""><br class="">I had gcc 7.3 and gcc 5.5.0_1 installed.<br class=""><br class="">When trying to compile a simple .f90 code (simpling printing some double precision complex, a ”hello world” for complex numbers),<br class="">I get this error message :<br class=""><br class="">SIGMA>which gfortran<br class="">/opt/local/bin/gfortran<br class="">SIGMA>gfortran -o essai essai.f90<br class="">FATAL:/opt/local/bin/../libexec/as/x86_64/as: I don't understand 'm' flag!<br class=""><br class="">Then I selected the gcc5 version and the FATAL error disappeared. <br class="">I selfupdated MP which moved from 2.5.3 to 2.5.4, and I upgraded outdated.<br class=""><br class="">gcc7.3 still shows the error and gcc5.5.0_3 which was installed in the upgrade started to show the same FATAL error !<br class="">I tried to return to gcc5.5.0_1 but failed (probably did not do the right thing…)<br class=""><br class="">I installed gfortran directly in /usr/local/bin, the version 8.1, and I have no FATAL error! I have not yet tried to install gcc8 via Macport but googling a little, people with the same problem seem to end up removing macport (/opt/local/bin) from their PATH, which is a bit extreme…<br class=""><br class="">Is the problem known and solvable more cleanly ? I’d rather have a single gfortran on my laptop.<br class=""><br class="">Thanks,<br class="">Laurent<br class=""><br class="">"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème" (devise Shadok)<br class=""><br class=""></div></div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""></body></html>