Thomas D. Dean on Tue, 24 Jan 2023 19:16:09 +0100


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

Re: Build Failure


On 1/24/23 08:58, Bill Allombert wrote:
On Tue, Jan 24, 2023 at 08:41:46AM -0800, Thomas D. Dean wrote:
git pull
Already up to date.

make clean
...
make all
...
usr/bin/gcc  -c -O3 -Wall -fno-strict-aliasing    -funroll-loops -fPIC -I.
-I../src/headers  -o mpker.o mpker.c
In file included from ../src/kernel/gmp/mp.c:42:
../src/kernel/none/tune-gen.h:74:39: error: '__ZM2_MUL_LIMIT' undeclared
here (not in a function); did you mean 'ZM2_MUL_LIMIT'?
    74 | long ZM2_MUL_LIMIT                  = __ZM2_MUL_LIMIT;
       |                                       ^~~~~~~~~~~~~~~
       |                                       ZM2_MUL_LIMIT
make[2]: *** [Makefile:1162: mpker.o] Error 1

If you have a file Olinux-x86_64-nogmp/tune.h you need to update it,
delete it or regenerates it with Configure --tune

You can also just add a line
#define __ZM2_MUL_LIMIT                  64
to it.

Cheers,
Bill


I have Olinux-x86_64 == configured with GMP.

Adding the line allowed the build to complete.
To update with Configure, I had to remove the file first.

./Configure -with-readline --with-gmp --graphic=X11 --tune
gives #define __ZM2_MUL_LIMIT                  16

Tom Dean