libgmp
Hello, it is really great, that Macports-Software is compiled with Haswell-Optimizations. But I want to bundle libgmp with an App. How can I compile a universal Version of the Library? Thomas Bodlien creative-software-des...@t-online.de ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Re: libgmp
On 11.10.2015, at 03:13, Rainer Müller wrote: > > 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: 0x0001, 0x > Exception Note: EXC_CORPSE_NOTIFY > > The instruction can be found at this location: > > Thread 8 Crashed: > 0 libgmp.10.dylib 0x00010005bfa9 __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: > 00025b40 cmpq$0x2, %rdx > 00025b44 jae 0x25b54 > 00025b46 movq(%rsi), %rax > 00025b49 mulq%rax > 00025b4c movq%rax, (%rdi) > 00025b4f movq%rdx, 0x8(%rdi) > > Can you check this in the version you are shipping? > > Rainer > > [1] http://trac.macports.org/ticket/41614 > <http://trac.macports.org/ticket/41614> This is, what I am getting: $ otool -tv /Volumes/SSD/SRC/Mac/Compute\ PI/libgmp.10.dylib |grep -A6 ^___gmpn_sqr_basecase: ___gmpn_sqr_basecase: 00028fa0cmpq$0x2, %rdx 00028fa4jae 0x28fb6 00028fa6movq(%rsi), %rdx 00028fa9mulxq %rdx, %rax, %rdx 00028faemovq%rax, (%rdi) 00028fb1movq%rdx, 0x8(%rdi) Regards ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Re: libgmp
Hi, can it be, that the compiler is creating Haswell specific machine-code? Thomas Bodlien creative-software-des...@t-online.de > On 10.10.2015, at 20:33, Ryan Schmidt wrote: > > > On Oct 10, 2015, at 1:25 PM, Thomas Bodlien wrote: >> On 10.10.2015, at 19:53, Ryan Schmidt wrote: >>> On Oct 10, 2015, at 12:29 PM, Thomas Bodlien wrote: >>> >>>> how comes that libgmp runs on my System and crashes on Apples >>>> Testcomputer? >>>> >>>> Thread 8 Crashed: >>>> 0 libgmp.10.dylib0x00010005bfa9 __gmpn_sqr_basecase >>>> + 9 >>> >>> Hard to know, without further details from you. Some questions that occur >>> to me: What do you mean by Apple's test computer? What OS X versions are we >>> talking about on both computers? What versions of Xcode and clang were >>> libgmp compiled with? What program were you running that crashed? > >> >> This is a crash log from Apples App-Review: >> >> http://pastebin.com/va5JmhxB >> >> I am running OS X 10.10.3, XCode-6.4 with Apple LLVM version 6.1.0 >> (clang-602.0.53) (based on LLVM 3.6.0svn) ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Fwd: libgmp
This is a crash log from Apples App-Review: http://pastebin.com/va5JmhxB I am running OS X 10.10.3, XCode-6.4 with Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn) > > > >> On 10.10.2015, at 19:53, Ryan Schmidt wrote: >> >> >> On Oct 10, 2015, at 12:29 PM, Thomas Bodlien wrote: >> >>> how comes that libgmp runs on my System and crashes on Apples Testcomputer? >>> >>> Thread 8 Crashed: >>> 0 libgmp.10.dylib 0x00010005bfa9 __gmpn_sqr_basecase >>> + 9 >> >> Hard to know, without further details from you. Some questions that occur to >> me: What do you mean by Apple's test computer? What OS X versions are we >> talking about on both computers? What versions of Xcode and clang were >> libgmp compiled with? What program were you running that crashed? >> ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
libgmp
Hi, how comes that libgmp runs on my System and crashes on Apples Testcomputer? Thread 8 Crashed: 0 libgmp.10.dylib 0x00010005bfa9 __gmpn_sqr_basecase + 9 Thomas Bodlien creative-software-des...@t-online.de ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Using Libraries
Hello, how do I add a Library from Mac-ports like libgmp to a XCode-Project, so that it gets bundled with the App? I have added libgmp.a and libgmp.10.dylib to the Project, but the App is still looking for the dynlib in /opt/local/lib/libgmp.10.dylib Thomas Bodlien creative-software-des...@t-online.de ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
Gimp
Hi, Gimp is not starting on OS X 10.9.2. Can somebody check that? Thomas Bodlien creative-software-des...@t-online.de signature.asc Description: Message signed with OpenPGP using GPGMail ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users
CFLAGS
Is port picking up CFLAGS and LDFLAGS environment-variables? Thomas Bodlien creative-software-des...@t-online.de signature.asc Description: Message signed with OpenPGP using GPGMail ___ macports-users mailing list macports-users@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/macports-users