Bill Allombert on Thu, 20 Sep 2012 17:53:23 +0200


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

Re: help for compiler error message


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.