Page MenuHomePhabricator

Implement SQLiteDatabaseVersion
ClosedPublic

Authored by PiRK on Thu, Nov 25, 12:39.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC347ff5cb2332: Implement SQLiteDatabaseVersion
Summary
Test Plan

With clang-tidy:
ninja

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

PiRK requested review of this revision.Thu, Nov 25, 12:39

Tail of the build log:

[344/511] Building CXX object src/wallet/CMakeFiles/wallet.dir/context.cpp.o
[345/511] Building CXX object src/wallet/CMakeFiles/wallet.dir/crypter.cpp.o
[346/511] Building CXX object src/test/CMakeFiles/testutil.dir/util/mining.cpp.o
[347/511] Building CXX object src/wallet/CMakeFiles/wallet.dir/fees.cpp.o
[348/511] Building CXX object src/wallet/CMakeFiles/wallet.dir/db.cpp.o
[349/511] Building CXX object src/wallet/CMakeFiles/wallet.dir/load.cpp.o
[350/511] Building CXX object src/CMakeFiles/bitcoinconsensus.dir/util/strencodings.cpp.o
[351/511] Building CXX object src/wallet/CMakeFiles/wallet.dir/rpcdump.cpp.o
[352/511] Building CXX object src/wallet/CMakeFiles/wallet.dir/rpcwallet.cpp.o
[353/511] Building CXX object src/wallet/CMakeFiles/wallet.dir/scriptpubkeyman.cpp.o
[354/511] Building CXX object src/wallet/CMakeFiles/wallet.dir/salvage.cpp.o
[355/511] Building CXX object src/CMakeFiles/server.dir/pow/grasberg.cpp.o
[356/511] Building CXX object src/wallet/CMakeFiles/wallet.dir/wallet.cpp.o
[357/511] Building CXX object src/wallet/CMakeFiles/wallet.dir/walletutil.cpp.o
[358/511] Building CXX object src/seeder/CMakeFiles/seeder-base.dir/db.cpp.o
[359/511] Building CXX object src/seeder/CMakeFiles/seeder-base.dir/bitcoin.cpp.o
[360/511] Building CXX object src/seeder/CMakeFiles/bitcoin-seeder.dir/main.cpp.o
[361/511] Building C object src/secp256k1/CMakeFiles/secp256k1.dir/src/secp256k1.c.o
[362/511] Linking C static library src/secp256k1/libsecp256k1.a
[363/511] Linking CXX static library src/libbitcoinconsensus.a
[364/511] Linking C executable src/secp256k1/ecmult-bench
[365/511] Linking C executable src/secp256k1/internal-bench
[366/511] Linking CXX static library src/libscript.a
[367/511] Linking C executable src/secp256k1/sign-bench
[368/511] Linking C executable src/secp256k1/verify-bench
[369/511] Building CXX object src/seeder/CMakeFiles/seeder-base.dir/dns.cpp.o
[370/511] Linking C executable src/secp256k1/recover-bench
[371/511] Installing component secp256k1
-- Install configuration: "RelWithDebInfo"
-- Install component: "secp256k1"
-- Installing: /results/artifacts/lib/libsecp256k1.a
-- Installing: /results/artifacts/include/secp256k1.h
-- Installing: /results/artifacts/include/secp256k1_preallocated.h
-- Installing: /results/artifacts/include/secp256k1_recovery.h
-- Installing: /results/artifacts/include/secp256k1_schnorr.h
[372/511] Building CXX object src/wallet/CMakeFiles/wallet.dir/sqlite.cpp.o
FAILED: src/wallet/CMakeFiles/wallet.dir/sqlite.cpp.o 
/usr/bin/ccache /usr/bin/c++ -DBOOST_AC_USE_STD_ATOMIC -DBOOST_SP_USE_STD_ATOMIC -DBUILD_BITCOIN_INTERNAL -DENABLE_AVX2 -DENABLE_SHANI -DENABLE_SSE41 -DHAVE_BUILD_INFO -DHAVE_CONFIG_H -DHAVE_CONSENSUS_LIB -I../../src/. -Isrc -I../../src/univalue/include -Isrc/crypto/.. -I../../src/secp256k1/include -isystem /usr/include/jemalloc -Werror -g -O2 -fPIC -fvisibility=hidden -fstack-reuse=none -fstack-protector-all -Wstack-protector -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wformat -Wvla -Wcast-align -Wunused-parameter -Wmissing-braces -Wredundant-decls -Wsign-compare -Wduplicated-branches -Wduplicated-cond -Wlogical-op -Wformat-security -Woverloaded-virtual -Wno-unused-parameter -Wno-implicit-fallthrough -pthread -std=gnu++17 -MD -MT src/wallet/CMakeFiles/wallet.dir/sqlite.cpp.o -MF src/wallet/CMakeFiles/wallet.dir/sqlite.cpp.o.d -o src/wallet/CMakeFiles/wallet.dir/sqlite.cpp.o -c ../../src/wallet/sqlite.cpp
In file included from ../../src/wallet/sqlite.cpp:5:
../../src/./wallet/sqlite.h:44:45: error: ‘maybe_unused’ attribute ignored [-Werror=attributes]
     [[maybe_unused]] const bool m_mock{false};
                                             ^
cc1plus: all warnings being treated as errors
[373/511] Building CXX object src/CMakeFiles/server.dir/timedata.cpp.o
[374/511] Building CXX object src/CMakeFiles/server.dir/node/psbt.cpp.o
[375/511] Building CXX object src/CMakeFiles/server.dir/script/scriptcache.cpp.o
[376/511] Building CXX object src/CMakeFiles/common.dir/netbase.cpp.o
[377/511] Linking CXX static library src/libcommon.a
[378/511] Linking CXX shared library src/libbitcoinconsensus.so.0.24.7
[379/511] Creating library symlink src/libbitcoinconsensus.so.0 src/libbitcoinconsensus.so
[380/511] Linking CXX executable src/bitcoin-cli
[381/511] Linking CXX executable src/bitcoin-tx
[382/511] Building CXX object src/CMakeFiles/server.dir/index/base.cpp.o
[383/511] Building CXX object src/wallet/CMakeFiles/wallet.dir/coinselection.cpp.o
[384/511] Building CXX object src/test/CMakeFiles/testutil.dir/util/wallet.cpp.o
[385/511] Building CXX object src/CMakeFiles/server.dir/rest.cpp.o
[386/511] Building CXX object src/wallet/CMakeFiles/wallet.dir/__/interfaces/wallet.cpp.o
[387/511] Building CXX object src/wallet/CMakeFiles/wallet.dir/walletdb.cpp.o
ninja: build stopped: cannot make progress due to previous errors.
Build build-diff failed with exit code 1

Tail of the build log:

[344/511] Linking CXX static library src/libbitcoinconsensus.a
[345/511] Linking C executable src/secp256k1/ecmult-bench
[346/511] Linking C executable src/secp256k1/internal-bench
[347/511] Building CXX object src/CMakeFiles/script.dir/script/descriptor.cpp.o
[348/511] Linking C executable src/secp256k1/sign-bench
[349/511] Building CXX object src/CMakeFiles/bitcoin-wallet.dir/bitcoin-wallet.cpp.o
[350/511] Linking CXX static library src/libscript.a
[351/511] Linking C executable src/secp256k1/verify-bench
[352/511] Linking C executable src/secp256k1/recover-bench
[353/511] Installing component secp256k1
-- Install configuration: "Debug"
-- Install component: "secp256k1"
-- Installing: /results/artifacts/lib/libsecp256k1.a
-- Installing: /results/artifacts/include/secp256k1.h
-- Installing: /results/artifacts/include/secp256k1_preallocated.h
-- Installing: /results/artifacts/include/secp256k1_recovery.h
-- Installing: /results/artifacts/include/secp256k1_schnorr.h
[354/511] Building CXX object src/wallet/CMakeFiles/wallet.dir/context.cpp.o
[355/511] Linking CXX static library src/libcommon.a
[356/511] Linking CXX shared library src/libbitcoinconsensus.so.0.24.7
[357/511] Creating library symlink src/libbitcoinconsensus.so.0 src/libbitcoinconsensus.so
[358/511] Linking CXX executable src/bitcoin-cli
[359/511] Building CXX object src/test/CMakeFiles/testutil.dir/util/transaction_utils.cpp.o
[360/511] Building CXX object src/test/CMakeFiles/testutil.dir/util/blockfilter.cpp.o
[361/511] Building CXX object src/CMakeFiles/bitcoin-tx.dir/bitcoin-tx.cpp.o
[362/511] Building CXX object src/test/CMakeFiles/testutil.dir/util/mining.cpp.o
[363/511] Linking CXX executable src/bitcoin-tx
[364/511] Building CXX object src/test/CMakeFiles/testutil.dir/util/net.cpp.o
[365/511] Building CXX object src/wallet/CMakeFiles/wallet.dir/coinselection.cpp.o
[366/511] Building CXX object src/wallet/CMakeFiles/wallet.dir/db.cpp.o
[367/511] Building CXX object src/wallet/CMakeFiles/wallet.dir/bdb.cpp.o
[368/511] Building CXX object src/wallet/CMakeFiles/wallet.dir/coincontrol.cpp.o
[369/511] Building CXX object src/wallet/CMakeFiles/wallet.dir/crypter.cpp.o
[370/511] Building CXX object src/test/CMakeFiles/testutil.dir/util/wallet.cpp.o
[371/511] Building CXX object src/wallet/CMakeFiles/wallet.dir/sqlite.cpp.o
FAILED: src/wallet/CMakeFiles/wallet.dir/sqlite.cpp.o 
/usr/bin/ccache /usr/bin/c++ -DABORT_ON_FAILED_ASSUME -DBOOST_AC_USE_STD_ATOMIC -DBOOST_SP_USE_STD_ATOMIC -DBUILD_BITCOIN_INTERNAL -DDEBUG -DDEBUG_LOCKORDER -DENABLE_AVX2 -DENABLE_SHANI -DENABLE_SSE41 -DHAVE_BUILD_INFO -DHAVE_CONFIG_H -DHAVE_CONSENSUS_LIB -I../../src/. -Isrc -I../../src/univalue/include -Isrc/crypto/.. -I../../src/secp256k1/include -isystem /usr/include/jemalloc -Werror -O0 -fPIC -fvisibility=hidden -g3 -ftrapv -fstack-reuse=none -fstack-protector-all -Wstack-protector -U_FORTIFY_SOURCE -Wall -Wextra -Wformat -Wvla -Wcast-align -Wunused-parameter -Wmissing-braces -Wredundant-decls -Wsign-compare -Wduplicated-branches -Wduplicated-cond -Wlogical-op -Wformat-security -Woverloaded-virtual -Wno-unused-parameter -Wno-implicit-fallthrough -pthread -std=gnu++17 -MD -MT src/wallet/CMakeFiles/wallet.dir/sqlite.cpp.o -MF src/wallet/CMakeFiles/wallet.dir/sqlite.cpp.o.d -o src/wallet/CMakeFiles/wallet.dir/sqlite.cpp.o -c ../../src/wallet/sqlite.cpp
In file included from ../../src/wallet/sqlite.cpp:5:
../../src/./wallet/sqlite.h:44:45: error: ‘maybe_unused’ attribute ignored [-Werror=attributes]
     [[maybe_unused]] const bool m_mock{false};
                                             ^
cc1plus: all warnings being treated as errors
[372/511] Building CXX object src/test/CMakeFiles/testutil.dir/util/setup_common.cpp.o
[373/511] Building CXX object src/seeder/CMakeFiles/seeder-base.dir/dns.cpp.o
[374/511] Building CXX object src/wallet/CMakeFiles/wallet-tool.dir/wallettool.cpp.o
[375/511] Building CXX object src/seeder/CMakeFiles/seeder-base.dir/db.cpp.o
[376/511] Building CXX object src/wallet/CMakeFiles/wallet.dir/fees.cpp.o
[377/511] Building CXX object src/wallet/CMakeFiles/wallet.dir/walletutil.cpp.o
[378/511] Building CXX object src/wallet/CMakeFiles/wallet.dir/load.cpp.o
[379/511] Building CXX object src/wallet/CMakeFiles/wallet.dir/__/interfaces/wallet.cpp.o
[380/511] Building CXX object src/seeder/CMakeFiles/bitcoin-seeder.dir/main.cpp.o
[381/511] Building CXX object src/wallet/CMakeFiles/wallet.dir/salvage.cpp.o
[382/511] Building CXX object src/seeder/CMakeFiles/seeder-base.dir/bitcoin.cpp.o
[383/511] Building CXX object src/wallet/CMakeFiles/wallet.dir/scriptpubkeyman.cpp.o
[384/511] Building CXX object src/wallet/CMakeFiles/wallet.dir/walletdb.cpp.o
[385/511] Building CXX object src/wallet/CMakeFiles/wallet.dir/rpcdump.cpp.o
[386/511] Building CXX object src/wallet/CMakeFiles/wallet.dir/rpcwallet.cpp.o
[387/511] Building CXX object src/wallet/CMakeFiles/wallet.dir/wallet.cpp.o
ninja: build stopped: cannot make progress due to previous errors.
Build build-debug failed with exit code 1
PiRK planned changes to this revision.Thu, Nov 25, 13:17
PiRK requested review of this revision.Thu, Nov 25, 13:49

The error: ‘maybe_unused’ attribute ignored [-Werror=attributes] can be safely ignored. It will go away in later commit from the same PR.

This revision is now accepted and ready to land.Fri, Nov 26, 12:42
This revision was automatically updated to reflect the committed changes.