#11896: MPIR 2.x may fail to build on 32-bit operating systems
-------------------------------------------------------------------------------------------------+
    Reporter:  Nathann Cohen, Dan Drake, Steven Trogdon                         
                 |         Owner:  leif          
        Type:  defect                                                           
                 |        Status:  new           
    Priority:  blocker                                                          
                 |     Milestone:  sage-4.7.2    
   Component:  packages                                                         
                 |    Resolution:                
    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:                                                                   
                 |  
-------------------------------------------------------------------------------------------------+

Comment(by leif):

 Replying to [comment:17 jdemeyer]:
 > Replying to [comment:14 leif]:
 > > A much simpler solution is to set `CFLAG64=""` on `ia64` (Itanium),
 then the first attempt (building and running a 64-bit executable) will
 succeed.
 >
 > My patch doesn't do specific checking for Itanium, it will work on
 ''any'' compiler which does not support `-m32` and `-m64`.

 I'd factor out `-m32` though, i.e., use `$CFLAG32` in the second attempt
 and add
 {{{
 #!sh
 if [[ -z $CFLAG32 ]]; then
     CFLAG32=-m32
 fi
 }}}
 or
 {{{
 #!sh
 : ${CFLAG32=-m32} # doesn't invalidate an empty setting ("")
 }}}
 or the like (at the top level), such that porting people can adapt it to
 whatever they need.

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