#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:  
positive_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:  Steven Trogdon                           |         Author:  Leif 
Leonhardy                                                                  
     Merged:                                           |   Dependencies:        
                                                                          
-------------------------------------------------------+--------------------
Changes (by strogdon):

  * status:  needs_review => positive_review
  * reviewer:  => Steven 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.
>
> ----
>
> Upstream report: [http://groups.google.com/group/mpir-
> devel/browse_thread/thread/46ccdc5dfc3485cd]
>
> ----
>
> '''New spkg:'''
> [http://sage.math.washington.edu/home/leif/Sage/spkgs/mpir-2.1.3.p5.spkg]
>
> '''md5sum:''' `7881a45bb797665f4f264e17fdab2aa5`

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.

 ----
 Upstream report: [http://groups.google.com/group/mpir-
 devel/browse_thread/thread/46ccdc5dfc3485cd]

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

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

--

Comment:

 Replying to [comment:3 leif]:

 > Oh, one more thing: I cannot test whether the GMP-ECM and MPFR spkgs
 have the same problem (since they use GMP's / MPIR's `CFLAGS`), i.e., also
 fail on such systems if `ABI` isn't set. If you find the time, you could
 also check this by unsetting `ABI` and reinstalling them (with `./sage -f
 ...`).

 The new mpir spkg installs here on my 32-bit OS with 64-bit processor with
 ABI unset.

 {{{
 The MPIR test suite passed successfully.
 Now cleaning up tmp files.
 Making Sage/Python scripts relocatable...
 Making script relocatable
 Finished installing mpir-2.1.3.p5.spkg
 }}}
 It also installed on an amd64 to which I have access. The ECM and MPFR
 spkgs reinstalled correctly with ABI unset on both the 32-bit and amd64
 machines. A positive review here.

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