Another macOS build problem, shocking right?
Update 1: I was on the v0.21 branch, will retry on master and maybe open a new issue.
Update 2: it also happens on master, reinstalling llvm improved things, but see below
I can build fine with the built in compiler, but I'm trying to build with llvm from homebrew in order to get fuzzing to work.
macOS 11.2.1 Big Sur llvm: stable 11.1.0 (via Homebrew) clang(++) version 11.0.0 Processor type: x86_64h (Intel x86-64h Haswell)
./autogen.sh
./configure CC=/usr/local/opt/llvm/bin/clang CXX=/usr/local/opt/llvm/bin/clang++
...
configure: error: C++ compiler cannot create executables
The CC and CXX commands exist.
Full log: https://gist.github.com/Sjors/dd7920d3f242a5ae75a3fb8232f33987
Potentially relevant log fragment:
configure:4204: /usr/local/opt/llvm/bin/clang++ -qversion >&5
clang-11: error: unknown argument '-qversion'; did you mean '--version'?
clang-11: error: no input files
configure:4215: $? = 1
configure:4235: checking whether the C++ compiler works
configure:4257: /usr/local/opt/llvm/bin/clang++ -I/usr/local/opt/zlib/include -I/usr/local/opt/bzip2/include -L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/zlib/lib -L/usr/local/opt/bzip2/lib conftest.cpp >&5
ld: warning: directory not found for option '-L/usr/local/opt/bzip2/lib'
ld: library not found for -lc++
clang-11: error: linker command failed with exit code 1 (use -v to see invocation)
configure:4261: $? = 1
configure:4299: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Bitcoin Core"
| #define PACKAGE_TARNAME "bitcoin"
| #define PACKAGE_VERSION "21.99.0"
| #define PACKAGE_STRING "Bitcoin Core 21.99.0"
| #define PACKAGE_BUGREPORT "https://github.com/bitcoin/bitcoin/issues"
| #define PACKAGE_URL "https://bitcoincore.org/"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }