<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">I’m currently reviewing the build logs for openmpi-* subports, which are failing to build for older MacOS releases.<br class=""><br class="">And it looks like the issue relates to the use of the various AVX* instruction sets:<br class=""><br class=""><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><font face="Courier New" size="1" class=""> CCLD <a href="http://liblocal_ops_avx2.la" class="">liblocal_ops_avx2.la</a><br class=""><stdin>:1015:20: error: invalid operand for instruction<br class=""> vmovdqu64 (%rdi), %ymm0<br class=""> ^~~~~<br class=""><stdin>:1019:12: error: invalid operand for instruction<br class=""> vmovdqu64 %ymm0, -32(%rsi)<br class=""> ^~~~~<br class=""><stdin>:1127:20: error: invalid operand for instruction<br class=""> vmovdqu64 (%rdi), %ymm0<br class=""> ^~~~~<br class=""><stdin>:1131:12: error: invalid operand for instruction<br class=""> vmovdqu64 %ymm0, -32(%rsi)<br class=""> ^~~~~<br class="">[…etc…]</font></blockquote><br class="">We can fix the problem by disabling use of those instructions, via a configure flag. The simplest approach would be to disable them across-the-board, albeit with a slight performance penalty. Or we can add conditional logic to disable them for those older releases.<br class=""><br class="">There’s something curious though: These instructions are supported for GCC 5 and 6, on MacOS 10.8. But GCC releases from 7 on, don’t seem to. (All GCC releases are working for later MacOS releases, though.)<br class=""><br class="">So… do our GCC 7+ releases for MacOS 10.8 and earlier, not include AVX* support? If not, would it be feasible to patch them?<br class=""><br class="">On a mostly-unrelated note, I’m also seeing a tremendous number of warnings related to unused compilation arguments. For example:<br class=""><br class=""><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class=""><font face="Courier New" size="1" class="">clang: warning: argument unused during compilation: '-I /opt/local/include/LegacySupport'</font></div><div class=""><font face="Courier New" size="1" class="">clang: warning: argument unused during compilation: '-I /opt/local/include'</font></div><div class=""><font face="Courier New" size="1" class="">clang: warning: argument unused during compilation: '-I /opt/local/include'</font></div><div class=""><font face="Courier New" size="1" class="">clang: warning: argument unused during compilation: '-I /usr/local/include'</font></div><div class=""><font face="Courier New" size="1" class="">clang: warning: argument unused during compilation: '-I /usr/local/include'</font></div><div class=""><font face="Courier New" size="1" class="">clang: warning: argument unused during compilation: '-I /opt/local/include/LegacySupport'</font></div><div class=""><font face="Courier New" size="1" class="">clang: warning: argument unused during compilation: '-I .'</font></div><div class=""><font face="Courier New" size="1" class="">clang: warning: argument unused during compilation: '-I /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_science_openmpi/openmpi-gcc9/work/openmpi-4.1.0/opal/datatype'</font></div><div class=""><font face="Courier New" size="1" class="">clang: warning: argument unused during compilation: '-I ../../opal/include'</font></div><div class=""><font face="Courier New" size="1" class="">clang: warning: argument unused during compilation: '-I ../../ompi/include'</font></div><div class=""><font face="Courier New" size="1" class="">clang: warning: argument unused during compilation: '-I ../../oshmem/include'</font></div><div class=""><font face="Courier New" size="1" class="">clang: warning: argument unused during compilation: '-I ../../opal/mca/hwloc/hwloc201/hwloc/include/private/autogen'</font></div><div class=""><font face="Courier New" size="1" class="">clang: warning: argument unused during compilation: '-I ../../opal/mca/hwloc/hwloc201/hwloc/include/hwloc/autogen'</font></div><div class=""><font face="Courier New" size="1" class="">clang: warning: argument unused during compilation: '-I ../../ompi/mpiext/cuda/c'</font></div><div class=""><font face="Courier New" size="1" class="">clang: warning: argument unused during compilation: '-I ../..'</font></div><div class=""><font face="Courier New" size="1" class="">clang: warning: argument unused during compilation: '-I /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_science_openmpi/openmpi-gcc9/work/openmpi-4.1.0/opal/include'</font></div><div class=""><font face="Courier New" size="1" class="">clang: warning: argument unused during compilation: '-I /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_science_openmpi/openmpi-gcc9/work/openmpi-4.1.0/orte/include'</font></div><div class=""><font face="Courier New" size="1" class="">clang: warning: argument unused during compilation: '-I ../../orte/include'</font></div><div class=""><font face="Courier New" size="1" class="">clang: warning: argument unused during compilation: '-I /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_science_openmpi/openmpi-gcc9/work/openmpi-4.1.0/ompi/include'</font></div><div class=""><font face="Courier New" size="1" class="">clang: warning: argument unused during compilation: '-I /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_science_openmpi/openmpi-gcc9/work/openmpi-4.1.0/oshmem/include'</font></div></blockquote><br class="Apple-interchange-newline">Given the includes for LegacySupport, is this being caused by that portgroup…?</body></html>