Vincent Lefevre on Tue, 10 Mar 2009 01:29:37 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Incorrect result with GMP 4.2.4 under Mac OS X (PowerPC)


On 2009-03-09 17:28:21 +0100, Bill Allombert wrote:
> Sure. Would the attached file do the trick ? (to be put as
> config/gmp_version.c).

Configure (get_gmp) doesn't complain on the non-zero exit status.
Odarwin-ppc/pari.cfg has:

pretty='PowerPC running darwin (PPC/GMP- kernel) 32-bit version'

One can see that the printf didn't occur (as expected on my machine).

> #include <stdio.h>
> #include <gmp.h>
> void f(void) { mpn_gcdext(NULL,NULL, NULL, NULL, 0, NULL, 0); }
> main(){ 
>   if(sizeof(mp_limb_t) == sizeof(long))
>     printf("%s", gmp_version);
>   else return 1;
> }

-- 
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)