herumi / mcl

a portable and fast pairing-based cryptography library
BSD 3-Clause "New" or "Revised" License
452 stars 152 forks source link

when I 'make test' on macos ,happend follow problems #20

Closed coolhackboy closed 6 years ago

coolhackboy commented 6 years ago

include/mcl/mpir.h:1789:3: error: use of undeclared identifier 'GMP_NAIL_BITS' GMPN_ADD (__gmp_c, gmp_wp, gmp_xp, __gmp_xsize, gmp_yp, __gmp_ysize);

image

herumi commented 6 years ago

What is your OS and compiler?

coolhackboy commented 6 years ago

os is 10.12.6 and GNU Make 3.81

herumi commented 6 years ago

I tested make -j4 test on macOS High Sierra 10.13.5 and it runs well. My environments are as the followings:

Xcode Version 9.4 (9F1027a)

% brew list gmp
/usr/local/Cellar/gmp/6.1.2_2/include/ (2 files)
/usr/local/Cellar/gmp/6.1.2_2/lib/libgmp.10.dylib
/usr/local/Cellar/gmp/6.1.2_2/lib/libgmpxx.4.dylib
/usr/local/Cellar/gmp/6.1.2_2/lib/ (4 other files)
/usr/local/Cellar/gmp/6.1.2_2/share/info/ (3 files)
% gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 9.1.0 (clang-902.0.39.2)
Target: x86_64-apple-darwin17.6.0

If your gmp is old, then could you try brew reinstall gmp?