Is there an existing issue for this?
- I have searched the existing issues
Current behaviour
Building Bitcoin Core from source using official instructions from https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md I got compilation warnings, complaining about may be used uninitialized variables in two destructors.
Log of make -j 10
:
bitcoin-compilation-warning-master.txt
Expected behaviour
I expect no compilation warnings to be produced.
Steps to reproduce
Checkout master
branch of bitcoin repo on Debian stable machine, install dependencies and build.
0$ g++ --version
1g++ (Debian 12.2.0-14) 12.2.0
2Copyright (C) 2022 Free Software Foundation, Inc.
3This is free software; see the source for copying conditions. There is NO
4warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5
6sudo apt-get install build-essential libtool autotools-dev automake pkg-config bsdmainutils python3
7sudo apt-get install libevent-dev libboost-dev
8sudo apt install libsqlite3-dev
9
10make -C depends NO_BOOST=1 NO_LIBEVENT=1 NO_QT=1 NO_SQLITE=1 NO_NATPMP=1 NO_UPNP=1 NO_ZMQ=1 NO_USDT=1
11export BDB_PREFIX=/root/bitcoin/depends/aarch64-unknown-linux-gnu/
12
13./autogen.sh
14./configure BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" BDB_CFLAGS="-I${BDB_PREFIX}/include"
15make -j 10
Relevant log output
No response
How did you obtain Bitcoin Core
Compiled from source
What version of Bitcoin Core are you using?
master@0b768746ef2c089676e3be30eb84e722a91453f6
Operating system and version
Debian GNU/Linux 12 (bookworm), Linux server 6.1.0-13-arm64 #1 SMP Debian 6.1.55-1 (2023-09-29) aarch64 GNU/Linux
Machine specifications
No response