0$ clang-14 -v
1Ubuntu clang version 14.0.6
2Target: x86_64-pc-linux-gnu
3Thread model: posix
4InstalledDir: /usr/bin
5Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/13
6Selected GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/13
7Candidate multilib: .;@m64
8Selected multilib: .;@m64
0$ ./configure CC=clang-14 CXX=clang++-14
1...
2checking whether std::atomic can be used without link library... no
3checking whether std::atomic needs -latomic... no
4configure: error: in `/bitcoin':
5configure: error: cannot figure out how to use std::atomic
6See `config.log' for more details
Here is an excerpt from the config.log
:
0configure:25695: checking whether std::atomic can be used without link library
1configure:25722: clang++-14 -std=c++20 -o conftest -g -O2 -pthread conftest.cpp >&5
2In file included from conftest.cpp:32:
3/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/chrono:2320:48: error: call to consteval function 'std::chrono::hh_mm_ss::_S_fractional_width' is not a constant
4expression
5 static constexpr unsigned fractional_width = {_S_fractional_width()};
6 ^
7/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/chrono:2320:48: note: undefined function '_S_fractional_width' cannot be used in a constant expression
8/usr/bin/../lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/chrono:2275:2: note: declared here
9 _S_fractional_width()
10 ^
111 error generated.