John Cremona on Thu, 20 Sep 2012 18:02:23 +0200


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

Re: help for compiler error message


Thanks, that worked fine: I deleted the file and re-ran Configure.

I suggest that there could be a target called "veryclean" or
"distclean" which would remove files created by Configure.  That's
what I had been looking for.

John

PS And I can now confirm that the code now gives the correct answer for this:
(17:01) gp > p1=x2*(x3-x4);p2=x2*(x3-2*x4);polresultant(p1,p2,x1)
%1 = 1


On 20 September 2012 16:53, Bill Allombert
<Bill.Allombert@math.u-bordeaux1.fr> wrote:
> On Thu, Sep 20, 2012 at 04:31:30PM +0100, John Cremona wrote:
>> I just updated to the latest git head (after the polresultant
>> business) and find this (after make clean first):
>>
>> /usr/bin/gcc  -c -O3 -Wall -fno-strict-aliasing -fomit-frame-pointer
>>  -funroll-loops -fPIC -I. -I../src/headers -I/usr/include -o mpker.o
>> mpker.c
>> In file included from ../src/kernel/gmp/mp.c:43:
>> ../src/kernel/none/tune-gen.h:19: error: '__Flx_INVBARRETT_LIMIT'
>> undeclared here (not in a function)
>> ../src/kernel/none/tune-gen.h:20: error: '__Flx_REM_BARRETT_LIMIT'
>> undeclared here (not in a function)
>> ../src/kernel/none/tune-gen.h:21: error: '__Flx_POW_BARRETT_LIMIT'
>> undeclared here (not in a function)
>> ../src/kernel/none/tune-gen.h:25: error: '__FpX_INVBARRETT_LIMIT'
>> undeclared here (not in a function)
>> ../src/kernel/none/tune-gen.h:26: error: '__FpX_REM_BARRETT_LIMIT'
>> undeclared here (not in a function)
>> ../src/kernel/none/tune-gen.h:27: error: '__FpX_POW_BARRETT_LIMIT'
>> undeclared here (not in a function)
>> make[1]: *** [mpker.o] Error 1
>> make[1]: Leaving directory `/home/jec/pari/Olinux-x86_64'
>> make: *** [gp] Error 2
>>
>> It's a while since I last built pari this way, but I'm sure it used to
>> work.  Any suggestions?  This is with gcc-4.4.3 on ubuntu
>
> Yes, you need to update your file Olinux-x86_64/tune.h.  You can simply remove
> it or rerun ./Configure --tune or edit it to change MONTGOMERY to BARRETT
> everywhere (sorry Peter!).
>
> Cheers,
> Bill.
>