Set env:
export CC=clang-11
export CFLAGS="-fsanitize=address,undefined -O0"
(This is a valid combination of compile flags that works with any other project)
Then ./configure and build:
CC src/libsecp256k1_la-secp256k1.lo
In file included from src/secp256k1.c:13:
In file included from ./src/field_impl.h:18:
In file included from ./src/field_5x52_impl.h:18:
./src/field_5x52_asm_impl.h:29:5: error: inline assembly requires more registers than available
"movq 0(%%rsi),%%r10\n"
^
./src/field_5x52_asm_impl.h:29:5: error: inline assembly requires more registers than available
./src/field_5x52_asm_impl.h:29:5: error: inline assembly requires more registers than available
./src/field_5x52_asm_impl.h:299:5: error: inline assembly requires more registers than available
"movq 0(%%rsi),%%r10\n"
^
./src/field_5x52_asm_impl.h:299:5: error: inline assembly requires more registers than available
./src/field_5x52_asm_impl.h:299:5: error: inline assembly requires more registers than available
In file included from src/secp256k1.c:14:
In file included from ./src/scalar_impl.h:24:
./src/scalar_4x64_impl.h:279:5: error: inline assembly requires more registers than available
"movq 32(%%rsi), %%r11\n"
^
./src/scalar_4x64_impl.h:279:5: error: inline assembly requires more registers than available
./src/scalar_4x64_impl.h:279:5: error: inline assembly requires more registers than available
9 errors generated.
Makefile:1054: recipe for target 'src/libsecp256k1_la-secp256k1.lo' failed
Tested with Clang 11 and latest repository checkout on Linux 64 bit.