[MacPorts] #18780: pari gives incorrect results with GMP 4.2.4

MacPorts noreply at macports.org
Mon Mar 9 09:27:01 PDT 2009


#18780: pari gives incorrect results with GMP 4.2.4
---------------------------------+------------------------------------------
 Reporter:  vinc17@…             |       Owner:  macports-tickets@…                   
     Type:  defect               |      Status:  new                                  
 Priority:  Normal               |   Milestone:  Port Bugs                            
Component:  ports                |     Version:  1.7.0                                
 Keywords:                       |        Port:  pari gmp                             
---------------------------------+------------------------------------------

Comment(by vinc17@…):

 I've got a reply from Bill Allombert (one of the PARI
 developer/maintainer). PARI requires

   sizeof(mp_limb_t)==sizeof(long)==sizeof(long*)

 so, it is not compatible with GMP built with ABI=mode32. There are several
 solutions:

 * Do not use mode32 in the gmp port. This is annoying because the problem
 is not in GMP. However this may break some other software (provided by
 MacPorts or not). PARI is one of them and will not be fixed. MPFR is
 affected too (in the printf functions with length modifier M), but I'll
 apply a patch. Moreover, though ABI=mode32 is faster than ABI=32, the user
 can use ABI=64 instead of ABI=mode32.

 * Never build pari against GMP for the ppc architecture.

 * Have a gmp variant to choose between ABI=32 and ABI=mode32, but this is
 rather dangerous (because if for some reason, the ABI is changed, programs
 based on GMP may more or less silently fail to work, such as giving
 incorrect results instead of a clear error).

 * Use a private version of GMP (statically linked?) for pari.

-- 
Ticket URL: <http://trac.macports.org/ticket/18780#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list