#12954: Make MPIR support SAGE_FAT_BINARY on all systems
----------------------------------+-----------------------------------------
Reporter: vbraun | Owner: tbd
Type: defect | Status: needs_work
Priority: blocker | Milestone: sage-5.0.1
Component: packages | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: Jeroen Demeyer | Merged in:
Dependencies: | Stopgaps:
----------------------------------+-----------------------------------------
Comment (by dimpase):
Replying to [comment:22 vbraun]:
> popcnt is SSE4.2, so Core 2 Duo don't have it. Btw on Linux I can do
> {{{
> [~]$ objdump -d sage/local/lib/libmpir.so | grep popcnt
> 45200: f3 4c 0f b8 04 cf popcnt (%rdi,%rcx,8),%r8
> 45206: f3 4c 0f b8 4c cf 08 popcnt 0x8(%rdi,%rcx,8),%r9
> [...]
> }}}
> and I believe the equivalent command on OSX would be `otool -tV`.
yes, that's right (except it's not .so, but .dylb)
{{{
$ otool -tV local/lib/libmpir.dylib | grep popcnt
000000000003be60 popcnt (%rdi,%rcx,8),%r8
000000000003be66 popcnt 0x08(%rdi,%rcx,8),%r9
}}}
> Shouldn't we add some script to `sage -bdist` that checks for the
absence of, say, SSE >= 4 instructions?
how would it help?
The problem seems to be in the inability of non-Apple gcc to build fat,
a.k.a. universal, dynamic libs and executables. So I think we should
either resort to making binary releases for OSX targeted to a particular
architecture, or provide some post-install script that basically would do
./sage -f mpir (and anything else that needs similar fix) followed by
./sage -b. It's time-consuming to run, but it needs to be done only
once...
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12954#comment:23>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.