I don't see how we can put mpz_random or mpz_random2 back in. It
relies on a global random state, which we can't do with #defines.

We're gonna have to patch GMP-ECM. I think I recall that they've fixed
this in their development code anyhow. I certainly remember someone
asking why it didn't build any more.

I'll add the #define gmp_randinit and issue rc3. But this is not
guaranteed to not break something at the testing phase. Technically
the old function doesn't behave exactly as the new one (in either GMP
or MPIR).

Bill.

On 8 April 2010 23:30, Bill Hart <goodwillh...@googlemail.com> wrote:
> Wait. GMP deprecated that not us.
>
> We'll add a define.
>
> Bill.
>
> On 8 April 2010 23:29, Bill Hart <goodwillh...@googlemail.com> wrote:
>> OK, then that is just a bug. Nothing we deprecated ourselves should be 
>> missing.
>>
>> We'll look into that.
>>
>> I'll announce an rc3 when we figure it out.
>>
>> Bill.
>>
>> On 8 April 2010 23:24, William Stein <wst...@gmail.com> wrote:
>>> On Thu, Apr 8, 2010 at 3:21 PM, Bill Hart <goodwillh...@googlemail.com> 
>>> wrote:
>>>> Can you supply the error message for GMP-ECM.
>>>>
>>>> It looks like every damned package out there relies on deprecated
>>>> stuff. It took ages to remove all this stuff and it is going to take
>>>> ages to put it all back in.
>>>
>>> After switching to MPIR-2. rc2, GMP-ECM still fails.  It's looking for
>>> "mpz_random", which you guys deprecated:
>>>
>>> ...
>>>
>>> gcc -Wall -W -Wundef -pedantic -fPIC -o tune tune-mpmod.o tune-tune.o
>>> tune-mul_lo.o tune-listz.o tune-auxlib.o tune-ks-multiply.o
>>> tune-toomcook.o tune-schoen_strass.o tune-polyeval.o tune-median.o
>>> tune-ecm_ntt.o tune-ntt_gfp.o tune-mpzspv.o tune-mpzspm.o tune-sp.o
>>> tune-spv.o tune-spm.o tune-random.o tune-mul_fft.o tune-auxarith.o
>>> -L/home/wstein/build/mpir2/sage-4.3.5/local/lib -lm
>>> /mnt/usb1/scratch/wstein/build/mpir2/sage-4.3.5/local/lib/libgmp.so
>>> -Wl,--rpath -Wl,/mnt/usb1/scratch/wstein/build/mpir2/sage-4.3.5/local/lib
>>> -Wl,--rpath -Wl,/mnt/usb1/scratch/wstein/build/mpir2/sage-4.3.5/local/lib
>>> tune-tune.o: In function `tune_mpres_mul':
>>> tune.c:(.text+0xd1): undefined reference to `mpz_random'
>>> collect2: ld returned 1 exit status
>>> make[4]: *** [tune] Error 1
>>> make[4]: *** Waiting for unfinished jobs....
>>> ar cru .libs/libecm.a  ecm.o ecm2.o pm1.o pp1.o getprime.o listz.o
>>> lucas.o stage2.o toomcook.o mpmod.o mul_lo.o polyeval.o median.o
>>> schoen_strass.o ks-multiply.o rho.o bestd.o auxlib.o random.o factor.o
>>> sp.o spv.o spm.o mpzspm.o mpzspv.o ntt_gfp.o ecm_ntt.o pm1fs2.o
>>> mul_fft.o sets_long.o auxarith.o
>>> ranlib .libs/libecm.a
>>> creating libecm.la
>>> (cd .libs && rm -f libecm.la && ln -s ../libecm.la libecm.la)
>>> make[4]: Leaving directory
>>> `/mnt/usb1/scratch/wstein/build/mpir2/sage-4.3.5/spkg/build/ecm-6.2.1.p2/src'
>>> make[3]: *** [all-recursive] Error 1
>>> make[3]: Leaving directory
>>> `/mnt/usb1/scratch/wstein/build/mpir2/sage-4.3.5/spkg/build/ecm-6.2.1.p2/src'
>>> make[2]: *** [all] Error 2
>>> make[2]: Leaving directory
>>> `/mnt/usb1/scratch/wstein/build/mpir2/sage-4.3.5/spkg/build/ecm-6.2.1.p2/src'
>>> There was a problem building GMP ECM.
>>>
>>> real    0m9.205s
>>> user    0m8.330s
>>> sys     0m10.160s
>>> sage: An error occurred while installing ecm-6.2.1.p2
>>>
>>>
>>>
>>>
>>> --
>>> William Stein
>>> Associate Professor of Mathematics
>>> University of Washington
>>> http://wstein.org
>>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"mpir-devel" group.
To post to this group, send email to mpir-de...@googlegroups.com.
To unsubscribe from this group, send email to 
mpir-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/mpir-devel?hl=en.

Reply via email to