<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">On 11.10.2015, at 03:13, Rainer Müller &lt;<a href="mailto:raimue@macports.org" class="">raimue@macports.org</a>&gt; wrote:<br class=""><div><blockquote type="cite" class=""><br class="Apple-interchange-newline"><div class="">On 2015-10-11 00:24, Thomas Bodlien wrote:<br class=""><blockquote type="cite" class="">can it be, that the compiler is creating Haswell specific machine-code?<br class=""></blockquote><br class="">Yes, very likely. MacPorts does not pass any -march or -mtune arguments<br class="">by default to the compiler. The gmp port even disables archive_sites to<br class="">force a build on the local machine. The Portfile points to ticket in<br class="">Trac [1], which is inaccessible at the moment.<br class=""><br class=""><br class="">The crash log tells us it was an illegal instruction:<br class=""><br class=""> &nbsp;Exception Type: EXC_BAD_INSTRUCTION (SIGILL)<br class=""> &nbsp;Exception Codes: 0x0000000000000001, 0x0000000000000000<br class=""> &nbsp;Exception Note: EXC_CORPSE_NOTIFY<br class=""><br class="">The instruction can be found at this location:<br class=""><br class=""> &nbsp;Thread 8 Crashed:<br class=""> &nbsp;0 libgmp.10.dylib 0x000000010005bfa9 __gmpn_sqr_basecase + 9<br class=""><br class="">In the libgmp.10.dylib I built locally, there is no suspicious<br class="">instruction at this location:<br class=""><br class=""> &nbsp;$ otool -tv /opt/local/lib/libgmp.10.dylib |grep -A6 ^___gmpn_sqr_basecase:<br class=""> &nbsp;___gmpn_sqr_basecase:<br class=""> &nbsp;0000000000025b40<span class="Apple-tab-span" style="white-space:pre">        </span>cmpq<span class="Apple-tab-span" style="white-space:pre">        </span>$0x2, %rdx<br class=""> &nbsp;0000000000025b44<span class="Apple-tab-span" style="white-space:pre">        </span>jae<span class="Apple-tab-span" style="white-space:pre">        </span>0x25b54<br class=""> &nbsp;0000000000025b46<span class="Apple-tab-span" style="white-space:pre">        </span>movq<span class="Apple-tab-span" style="white-space:pre">        </span>(%rsi), %rax<br class=""> &nbsp;0000000000025b49<span class="Apple-tab-span" style="white-space:pre">        </span>mulq<span class="Apple-tab-span" style="white-space:pre">        </span>%rax<br class=""> &nbsp;0000000000025b4c<span class="Apple-tab-span" style="white-space:pre">        </span>movq<span class="Apple-tab-span" style="white-space:pre">        </span>%rax, (%rdi)<br class=""> &nbsp;0000000000025b4f<span class="Apple-tab-span" style="white-space:pre">        </span>movq<span class="Apple-tab-span" style="white-space:pre">        </span>%rdx, 0x8(%rdi)<br class=""><br class="">Can you check this in the version you are shipping?<br class=""><br class="">Rainer<br class=""><br class="">[1] <a href="http://trac.macports.org/ticket/41614" class="">http://trac.macports.org/ticket/41614</a><br class=""></div></blockquote><br class=""></div><div>This is, what I am getting:</div><div><br class=""></div><div>$ otool -tv /Volumes/SSD/SRC/Mac/Compute\ PI/libgmp.10.dylib&nbsp;&nbsp;|grep -A6 ^___gmpn_sqr_basecase:<br class="">___gmpn_sqr_basecase:<br class="">0000000000028fa0<span class="Apple-tab-span" style="white-space:pre">        </span>cmpq<span class="Apple-tab-span" style="white-space:pre">        </span>$0x2, %rdx<br class="">0000000000028fa4<span class="Apple-tab-span" style="white-space:pre">        </span>jae<span class="Apple-tab-span" style="white-space:pre">        </span>0x28fb6<br class="">0000000000028fa6<span class="Apple-tab-span" style="white-space:pre">        </span>movq<span class="Apple-tab-span" style="white-space:pre">        </span>(%rsi), %rdx<br class="">0000000000028fa9<span class="Apple-tab-span" style="white-space:pre">        </span>mulxq<span class="Apple-tab-span" style="white-space:pre">        </span>%rdx, %rax, %rdx<br class="">0000000000028fae<span class="Apple-tab-span" style="white-space:pre">        </span>movq<span class="Apple-tab-span" style="white-space:pre">        </span>%rax, (%rdi)<br class="">0000000000028fb1<span class="Apple-tab-span" style="white-space:pre">        </span>movq<span class="Apple-tab-span" style="white-space:pre">        </span>%rdx, 0x8(%rdi)<br class=""><br class=""></div><div>Regards</div><div><br class=""></div><br class=""></body></html>