<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="">Hi, <div class=""><br class=""></div><div class="">Thanks for the pointer, that indeed does the trick, and compilation works perfectly in both cases (w/o cctools or with cctools+Xcode). I had tried to select as through compiler flags, but I guess this did not affect what gfortran was calling.</div><div class=""><br class=""></div><div class="">However, this then does not solve the underlying issue, For what I understand, the llvm70 variant of cctools is made the default to ensure reproducibility in some builds, but this also comes at a serious cost in terms of compiler optimization with such older tools, isn’t it?</div><div class=""><br class=""></div><div class="">Cheers,</div><div class=""><br class=""></div><div class="">Nicolas</div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Jan 22, 2019, at 11:23, Chris 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 dir="auto" class=""><div dir="ltr" class=""></div><div dir="ltr" class="">Hi,</div><div dir="ltr" class=""><br class=""></div><div dir="ltr" class="">Could you then please try either removing the cctools package, or reinstall it with the xcode variant. Either should result in the build using the xcode provided as instead.</div><div dir="ltr" class=""><br class=""></div><div dir="ltr" class="">Chris</div><div dir="ltr" class=""><br class="">On 21 Jan 2019, at 3:54 pm, Nicolas Pavillon <<a href="mailto:nicos@macports.org" class="">nicos@macports.org</a>> wrote:<br class=""><br class=""></div><blockquote type="cite" class=""><div dir="ltr" class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">Hi, <div class=""><br class=""></div><div class="">I just tried that, and I think I have been using the current default:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">NicolasMacBook:~ nicos$ port installed cctools</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">The following ports are currently installed:</span></div><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> cctools @921_0+llvm70 (active)</span></div><div class=""><br class=""></div><div class="">The reason I have been mentioning how old as might be is that the one provided by cctools returns version 1.38, which quite behind compared to the version provided by binutils, for example.</div><div class=""><br class=""></div><div class=""><span style="color: rgb(242, 242, 242); font-family: Monaco; font-size: 10px; background-color: rgba(0, 0, 0, 0.85098);" class="">/opt/local/bin/as -v</span></div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Apple Inc version cctools-921, GNU assembler version 1.38</span></div></div><div class=""><br class=""></div><div class="">Cheers,</div><div class=""><br class=""></div><div class="">Nicolas</div><div class=""><br class=""><blockquote type="cite" class=""><div class="">On Jan 22, 2019, at 0:23, Chris 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 dir="auto" class=""><div dir="ltr" class=""></div><div dir="ltr" class="">Hi,</div><div dir="ltr" class=""><br class=""></div><div dir="ltr" class="">What exactly version (and variants) of cctools do you have installed ?</div><div dir="ltr" class=""><br class=""></div><div dir="ltr" class="">Perhaps try force removing it, then reinstall, to make sure you are using the current default variants. </div><div dir="ltr" class=""><br class=""></div><div dir="ltr" class="">Chris</div><div dir="ltr" class=""><br class="">On 21 Jan 2019, at 2:47 pm, Nicolas Pavillon <<a href="mailto:nicos@macports.org" class="">nicos@macports.org</a>> wrote:<br class=""><br class=""></div><blockquote type="cite" class=""><div dir="ltr" class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">Hi, <div class=""><br class=""></div><div class="">I stumbled on some issues with the fortran compiler that I cannot really understand. They might be linked with other topics discussed recently about cctools, but it still seems somewhat different. </div><div class=""><br class=""></div><div class="">This happens with the port OpenBLAS, where the compilation fails when flags to compile AVX instructions yield errors during compilation, as described in the following tickets: </div><div class=""><a href="https://trac.macports.org/ticket/57912" class="">https://trac.macports.org/ticket/57912</a></div><div class=""><a href="https://github.com/xianyi/OpenBLAS/issues/1951" class="">https://github.com/xianyi/OpenBLAS/issues/1951</a></div><div class=""><br class=""></div><div class="">However, when I tried even more basic flags such as -march=native, compilation also fails with errors such as </div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 10px; line-height: normal; font-family: Monaco; color: rgb(242, 242, 242); background-color: rgba(0, 0, 0, 0.85098);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">/var/folders/x8/q7j02h4d661_p7cjh42_jh380000gn/T//ccqkNy6A.s:103:no such instruction: `vxorps %xmm0, %xmm0,%xmm0'</span></div></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">I then tried with another gfortran compiler outside of macports, and it could compile without any issue if I remove macports’ prefix from the path, which seems to indicate that the issue is coming from the assembler in macports.</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">My best guess is that as in cctools is too old, but I am not sure about that. Also, if it is correct, I wonder how this could be solved. Any ideas?</span></div><div class=""><br class=""></div><div class="">Cheers,</div><div class=""><br class=""></div><div class="">Nicolas </div></div></blockquote></div></div></blockquote></div><br class=""></div></div></blockquote></div></div></blockquote></div><br class=""></div></body></html>