#11896: MPIR 2.x may fail to build on 32-bit operating systems
-------------------------------------------------------+--------------------
   Reporter:  Nathann Cohen, Dan Drake, Steve Trogdon  |          Owner:  leif  
                                                                          
       Type:  defect                                   |         Status:  
needs_review                                                                    
   Priority:  blocker                                  |      Milestone:  
sage-4.7.2                                                                      
  Component:  packages                                 |       Keywords:  ABI 
64-bit CPU processor Linux -m32 MPN_PATH assembler error bad register lshift
Work_issues:                                           |       Upstream:  
Reported upstream. Little or no feedback.                                       
   Reviewer:                                           |         Author:  Leif 
Leonhardy                                                                  
     Merged:                                           |   Dependencies:        
                                                                          
-------------------------------------------------------+--------------------
Changes (by leif):

 * cc: ncohen, ddrake, strogdon (added)
  * status:  new => needs_review
  * reporter:  leif => Nathann Cohen, Dan Drake, Steve Trogdon


Old description:

> MPIR fails to build on '''32-bit''' operating systems running on
> '''64-bit''' processors if `CFLAGS` contain `-m32` and `ABI` is '''not'''
> set.
>
> The simple solution is to set `ABI=32` in this case, which the new spkg
> now does (on Linux, where the issue occurred). It also sets `ABI=64` if
> the operating system supports it, and `ABI` isn't already set, and prints
> according messages.

New description:

 MPIR fails to build on '''32-bit''' operating systems running on
 '''64-bit''' processors if `CFLAGS` contain `-m32` and `ABI` is '''not'''
 set.

 The simple solution is to set `ABI=32` in this case, which the new spkg
 now does (on Linux, where the issue occurred). It also sets `ABI=64` if
 the operating system supports it, and `ABI` isn't already set, and prints
 according messages.

 ----

 '''New spkg:'''
 [http://sage.math.washington.edu/home/leif/Sage/spkgs/mpir-2.1.3.p5.spkg]

 '''md5sum:''' `7881a45bb797665f4f264e17fdab2aa5`

--

Comment:

 Would be nice if one of you could review this.

 For testing, it should be sufficient to (try to) install the spkg with an
 arbitrary Sage version (of course installed on some 32-bit Linux running
 on a 64-bit processor):
 {{{
 #!sh
 $ unset ABI # We want to test that the spkg works *without* setting it.
 $ env SAGE_CHECK=yes ./sage -i
 http://sage.math.washington.edu/home/leif/Sage/spkgs/mpir-2.1.3.p5.spkg
 }}}

 After that, you should reinstall the original MPIR spkg from your Sage
 installation (with `./sage -f spkg/standard/mpir-<version>.spkg`) in case
 you used a Sage version prior to Sage 4.7.2.alpha3 (into which the MPIR
 2.1.3.p4 spkg from #8664, the first 2.x version in Sage, was merged).

 (No need to uninstall it from Sage 4.7.2.alpha3 or if you happen to have
 already installed the MPIR 2.1.3.p4 spkg, the GMP-ECM 6.3.p2 spkg and the
 necessary patches from their tickets.)

 You can of course in addition test the spkg on other (64-bit) platforms as
 well... :-)

 Thanks!

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11896#comment:1>
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.

Reply via email to