On 2015-10-11 00:24, Thomas Bodlien wrote:
> can it be, that the compiler is creating Haswell specific machine-code?

Yes, very likely. MacPorts does not pass any -march or -mtune arguments
by default to the compiler. The gmp port even disables archive_sites to
force a build on the local machine. The Portfile points to ticket in
Trac [1], which is inaccessible at the moment.


The crash log tells us it was an illegal instruction:

  Exception Type: EXC_BAD_INSTRUCTION (SIGILL)
  Exception Codes: 0x0000000000000001, 0x0000000000000000
  Exception Note: EXC_CORPSE_NOTIFY

The instruction can be found at this location:

  Thread 8 Crashed:
  0 libgmp.10.dylib 0x000000010005bfa9 __gmpn_sqr_basecase + 9

In the libgmp.10.dylib I built locally, there is no suspicious
instruction at this location:

  $ otool -tv /opt/local/lib/libgmp.10.dylib |grep -A6 ^___gmpn_sqr_basecase:
  ___gmpn_sqr_basecase:
  0000000000025b40      cmpq    $0x2, %rdx
  0000000000025b44      jae     0x25b54
  0000000000025b46      movq    (%rsi), %rax
  0000000000025b49      mulq    %rax
  0000000000025b4c      movq    %rax, (%rdi)
  0000000000025b4f      movq    %rdx, 0x8(%rdi)

Can you check this in the version you are shipping?

Rainer

[1] http://trac.macports.org/ticket/41614
_______________________________________________
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users

Reply via email to