https://github.com/bitcoin-core/secp256k1/issues/594
$ ./configure CC=clang-8 CXX=clang++-8 --with-incompatible-bdb
...
$ make
Making all in src
make[1]: Entering directory '/root/bitcoin/src'
make[2]: Entering directory '/root/bitcoin/src'
make[3]: Entering directory '/root/bitcoin'
make[3]: Leaving directory '/root/bitcoin'
make[3]: Entering directory '/root/bitcoin/src/secp256k1'
CC src/libsecp256k1_la-secp256k1.lo
In file included from src/secp256k1.c:12:
In file included from ./src/scalar_impl.h:20:
./src/scalar_4x64_impl.h:379:19: error: value '4624529908474429119' out of range for constraint 'n'
: "S"(l), "n"(SECP256K1_N_C_0), "n"(SECP256K1_N_C_1)
^~~~~~~~~~~~~~~
./src/scalar_4x64_impl.h:17:25: note: expanded from macro 'SECP256K1_N_C_0'
#define SECP256K1_N_C_0 (~SECP256K1_N_0 + 1)
^~~~~~~~~~~~~~~~~~~~
./src/scalar_4x64_impl.h:458:74: error: value '4624529908474429119' out of range for constraint 'n'
: "g"(m0), "g"(m1), "g"(m2), "g"(m3), "g"(m4), "g"(m5), "g"(m6), "n"(SECP256K1_N_C_0), "n"(SECP256K1_N_C_1)
^~~~~~~~~~~~~~~
./src/scalar_4x64_impl.h:17:25: note: expanded from macro 'SECP256K1_N_C_0'
#define SECP256K1_N_C_0 (~SECP256K1_N_0 + 1)
^~~~~~~~~~~~~~~~~~~~
./src/scalar_4x64_impl.h:504:64: error: value '4624529908474429119' out of range for constraint 'n'
: "g"(p0), "g"(p1), "g"(p2), "g"(p3), "g"(p4), "D"(r), "n"(SECP256K1_N_C_0), "n"(SECP256K1_N_C_1)
^~~~~~~~~~~~~~~
./src/scalar_4x64_impl.h:17:25: note: expanded from macro 'SECP256K1_N_C_0'
#define SECP256K1_N_C_0 (~SECP256K1_N_0 + 1)
^~~~~~~~~~~~~~~~~~~~
3 errors generated.
make[3]: *** [Makefile:1029: src/libsecp256k1_la-secp256k1.lo] Error 1
make[3]: Leaving directory '/root/bitcoin/src/secp256k1'
make[2]: *** [Makefile:14434: secp256k1/libsecp256k1.la] Error 2
make[2]: Leaving directory '/root/bitcoin/src'
make[1]: *** [Makefile:12984: all-recursive] Error 1
make[1]: Leaving directory '/root/bitcoin/src'
make: *** [Makefile:775: all-recursive] Error 1