Got this error from configure
when trying to build from tag v24.0.1
on Ubuntu 18.
At first my gcc was version gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)
so I tried installing clang 10: clang version 10.0.0-4ubuntu1~18.04.2
and linked to CXX
, etc… still got the same error.
0$ uname -a
1Linux party 4.15.0-163-generic [#171](/bitcoin-bitcoin/171/)-Ubuntu SMP Fri Nov 5 11:55:11 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
2
3$ lsb_release -a
4No LSB modules are available.
5Distributor ID: Ubuntu
6Description: Ubuntu 18.04.4 LTS
7Release: 18.04
8Codename: bionic
Complete output:
0$ ./configure --without-gui --with-incompatible-bdb
1checking for pkg-config... /usr/bin/pkg-config
2checking pkg-config is at least version 0.9.0... yes
3checking build system type... x86_64-pc-linux-gnu
4checking host system type... x86_64-pc-linux-gnu
5checking for a BSD-compatible install... /usr/bin/install -c
6checking whether build environment is sane... yes
7checking for a thread-safe mkdir -p... /bin/mkdir -p
8checking for gawk... gawk
9checking whether make sets $(MAKE)... yes
10checking whether make supports nested variables... yes
11checking whether to enable maintainer-specific portions of Makefiles... yes
12checking whether make supports nested variables... (cached) yes
13checking whether the C++ compiler works... yes
14checking for C++ compiler default output file name... a.out
15checking for suffix of executables...
16checking whether we are cross compiling... no
17checking for suffix of object files... o
18checking whether we are using the GNU C++ compiler... yes
19checking whether /usr/bin/clang++-10 accepts -g... yes
20checking for style of include used by make... GNU
21checking dependency style of /usr/bin/clang++-10... gcc3
22checking whether /usr/bin/clang++-10 supports C++17 features with -std=c++17... yes
23checking whether std::filesystem can be used without link library... no
24checking whether std::filesystem needs -lstdc++fs... no
25checking whether std::filesystem needs -lc++fs... configure: error: in `/root/bitcoin':
26configure: error: cannot figure out how to use std::filesystem
27See `config.log' for more details