Electrs: Compiling error on Ubuntu 20.04

Created on 13 Aug 2020  路  4Comments  路  Source: romanz/electrs

Compiling rocksdb/librocksdb-sys v5.18.3 fails after updating both rust with rustup and electrs to 0.8.5.

It also fails with the same error on a brand new install of Ubuntu 20.04 server with the latest rust.

It compiles fine if electrs is updated to 0.8.5 but rust is not updated. But after rust is updated, downgrading it doesn't fix the issue. Tried to downgrade to 1.41.0, 1.39.0 and 1.34.0 to no avail.

Last error lines it gives:

cargo:warning=In file included from rocksdb/util/delete_scheduler.cc:17:
cargo:warning=In file included from rocksdb/util/sst_file_manager_impl.h:14:
cargo:warning=In file included from rocksdb/db/compaction.h:11:
cargo:warning=In file included from rocksdb/db/version_set.h:31:
cargo:warning=In file included from rocksdb/db/column_family.h:17:
cargo:warning=In file included from rocksdb/db/memtable_list.h:17:
cargo:warning=In file included from rocksdb/db/memtable.h:21:
cargo:warning=rocksdb/db/version_edit.h:55:19: warning: definition of implicit copy constructor for 'FileDescriptor' is deprecated because it has a user-declared copy assignment operator [-Wdeprecated-copy]
cargo:warning=  FileDescriptor& operator=(const FileDescriptor& fd) {
cargo:warning=                  ^
cargo:warning=rocksdb/db/version_edit.h:175:9: note: in implicit copy constructor for 'rocksdb::FileDescriptor' first required here
cargo:warning=      : fd(_fd),
cargo:warning=        ^
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/utilities/transactions/optimistic_transaction.o" "-c" "rocksdb/utilities/transactions/optimistic_transaction.cc"
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/util/slice.o" "-c" "rocksdb/util/slice.cc"
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/utilities/merge_operators/uint64add.o" "-c" "rocksdb/utilities/merge_operators/uint64add.cc"
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/util/auto_roll_logger.o" "-c" "rocksdb/util/auto_roll_logger.cc"
cargo:warning=1 warning generated.
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/utilities/transactions/optimistic_transaction_db_impl.o" "-c" "rocksdb/utilities/transactions/optimistic_transaction_db_impl.cc"
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/util/sst_file_manager_impl.o" "-c" "rocksdb/util/sst_file_manager_impl.cc"
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/utilities/merge_operators/bytesxor.o" "-c" "rocksdb/utilities/merge_operators/bytesxor.cc"
cargo:warning=In file included from rocksdb/utilities/transactions/transaction_util.cc:18:
cargo:warning=In file included from rocksdb/db/db_impl.h:22:
cargo:warning=In file included from rocksdb/db/column_family.h:17:
cargo:warning=In file included from rocksdb/db/memtable_list.h:17:
cargo:warning=In file included from rocksdb/db/memtable.h:21:
cargo:warning=rocksdb/db/version_edit.h:55:19: warning: definition of implicit copy constructor for 'FileDescriptor' is deprecated because it has a user-declared copy assignment operator [-Wdeprecated-copy]
cargo:warning=  FileDescriptor& operator=(const FileDescriptor& fd) {
cargo:warning=                  ^
cargo:warning=rocksdb/db/version_edit.h:175:9: note: in implicit copy constructor for 'rocksdb::FileDescriptor' first required here
cargo:warning=      : fd(_fd),
cargo:warning=        ^
cargo:warning=1 warning generated.
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/util/status.o" "-c" "rocksdb/util/status.cc"
cargo:warning=In file included from rocksdb/utilities/transactions/optimistic_transaction.cc:12:
cargo:warning=In file included from rocksdb/db/column_family.h:17:
cargo:warning=In file included from rocksdb/db/memtable_list.h:17:
cargo:warning=In file included from rocksdb/db/memtable.h:21:
cargo:warning=rocksdb/db/version_edit.h:55:19: warning: definition of implicit copy constructor for 'FileDescriptor' is deprecated because it has a user-declared copy assignment operator [-Wdeprecated-copy]
cargo:warning=  FileDescriptor& operator=(const FileDescriptor& fd) {
cargo:warning=                  ^
cargo:warning=rocksdb/db/version_edit.h:175:9: note: in implicit copy constructor for 'rocksdb::FileDescriptor' first required here
cargo:warning=      : fd(_fd),
cargo:warning=        ^
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/utilities/option_change_migration/option_change_migration.o" "-c" "rocksdb/utilities/option_change_migration/option_change_migration.cc"
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/util/bloom.o" "-c" "rocksdb/util/bloom.cc"
cargo:warning=1 warning generated.
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/utilities/ttl/db_ttl_impl.o" "-c" "rocksdb/utilities/ttl/db_ttl_impl.cc"
cargo:warning=In file included from rocksdb/utilities/transactions/optimistic_transaction_db_impl.cc:13:
cargo:warning=In file included from rocksdb/db/db_impl.h:22:
cargo:warning=In file included from rocksdb/db/column_family.h:17:
cargo:warning=In file included from rocksdb/db/memtable_list.h:17:
cargo:warning=In file included from rocksdb/db/memtable.h:21:
cargo:warning=rocksdb/db/version_edit.h:55:19: warning: definition of implicit copy constructor for 'FileDescriptor' is deprecated because it has a user-declared copy assignment operator [-Wdeprecated-copy]
cargo:warning=  FileDescriptor& operator=(const FileDescriptor& fd) {
cargo:warning=                  ^
cargo:warning=rocksdb/db/version_edit.h:175:9: note: in implicit copy constructor for 'rocksdb::FileDescriptor' first required here
cargo:warning=      : fd(_fd),
cargo:warning=        ^
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/util/string_util.o" "-c" "rocksdb/util/string_util.cc"
cargo:warning=In file included from rocksdb/util/sst_file_manager_impl.cc:6:
cargo:warning=In file included from rocksdb/util/sst_file_manager_impl.h:14:
cargo:warning=In file included from rocksdb/db/compaction.h:11:
cargo:warning=In file included from rocksdb/db/version_set.h:31:
cargo:warning=In file included from rocksdb/db/column_family.h:17:
cargo:warning=In file included from rocksdb/db/memtable_list.h:17:
cargo:warning=In file included from rocksdb/db/memtable.h:21:
cargo:warning=rocksdb/db/version_edit.h:55:19: warning: definition of implicit copy constructor for 'FileDescriptor' is deprecated because it has a user-declared copy assignment operator [-Wdeprecated-copy]
cargo:warning=  FileDescriptor& operator=(const FileDescriptor& fd) {
cargo:warning=                  ^
cargo:warning=rocksdb/db/version_edit.h:175:9: note: in implicit copy constructor for 'rocksdb::FileDescriptor' first required here
cargo:warning=      : fd(_fd),
cargo:warning=        ^
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/options/options_parser.o" "-c" "rocksdb/options/options_parser.cc"
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/table/block_based_table_reader.o" "-c" "rocksdb/table/block_based_table_reader.cc"
cargo:warning=1 warning generated.
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/utilities/transactions/write_prepared_txn.o" "-c" "rocksdb/utilities/transactions/write_prepared_txn.cc"
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/utilities/write_batch_with_index/write_batch_with_index_internal.o" "-c" "rocksdb/utilities/write_batch_with_index/write_batch_with_index_internal.cc"
cargo:warning=In file included from rocksdb/utilities/ttl/db_ttl_impl.cc:6:
cargo:warning=In file included from rocksdb/utilities/ttl/db_ttl_impl.h:18:
cargo:warning=In file included from rocksdb/db/db_impl.h:22:
cargo:warning=In file included from rocksdb/db/column_family.h:17:
cargo:warning=In file included from rocksdb/db/memtable_list.h:17:
cargo:warning=In file included from rocksdb/db/memtable.h:21:
cargo:warning=rocksdb/db/version_edit.h:55:19: warning: definition of implicit copy constructor for 'FileDescriptor' is deprecated because it has a user-declared copy assignment operator [-Wdeprecated-copy]
cargo:warning=  FileDescriptor& operator=(const FileDescriptor& fd) {
cargo:warning=                  ^
cargo:warning=rocksdb/db/version_edit.h:175:9: note: in implicit copy constructor for 'rocksdb::FileDescriptor' first required here
cargo:warning=      : fd(_fd),
cargo:warning=        ^
cargo:warning=1 warning generated.
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/options/options_sanity_check.o" "-c" "rocksdb/options/options_sanity_check.cc"
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/util/sync_point.o" "-c" "rocksdb/util/sync_point.cc"
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/table/cuckoo_table_factory.o" "-c" "rocksdb/table/cuckoo_table_factory.cc"
cargo:warning=rocksdb/options/options_parser.cc:412:21: warning: loop variable 'pair' of type 'const std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >' creates a copy from type 'const std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >' [-Wrange-loop-construct]
cargo:warning=    for (const auto pair : opt_map) {
cargo:warning=                    ^
cargo:warning=rocksdb/options/options_parser.cc:412:10: note: use reference type 'const std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> > &' to prevent copying
cargo:warning=    for (const auto pair : opt_map) {
cargo:warning=         ^~~~~~~~~~~~~~~~~
cargo:warning=                    &
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/port/port_posix.o" "-c" "rocksdb/port/port_posix.cc"
cargo:warning=In file included from rocksdb/utilities/transactions/write_prepared_txn.cc:8:
cargo:warning=In file included from rocksdb/utilities/transactions/write_prepared_txn.h:29:
cargo:warning=In file included from rocksdb/utilities/transactions/pessimistic_transaction_db.h:16:
cargo:warning=In file included from rocksdb/db/db_iter.h:13:
cargo:warning=In file included from rocksdb/db/db_impl.h:22:
cargo:warning=In file included from rocksdb/db/column_family.h:17:
cargo:warning=In file included from rocksdb/db/memtable_list.h:17:
cargo:warning=In file included from rocksdb/db/memtable.h:21:
cargo:warning=rocksdb/db/version_edit.h:55:19: warning: definition of implicit copy constructor for 'FileDescriptor' is deprecated because it has a user-declared copy assignment operator [-Wdeprecated-copy]
cargo:warning=  FileDescriptor& operator=(const FileDescriptor& fd) {
cargo:warning=                  ^
cargo:warning=rocksdb/db/version_edit.h:175:9: note: in implicit copy constructor for 'rocksdb::FileDescriptor' first required here
cargo:warning=      : fd(_fd),
cargo:warning=        ^
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/port/stack_trace.o" "-c" "rocksdb/port/stack_trace.cc"
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/table/adaptive_table_factory.o" "-c" "rocksdb/table/adaptive_table_factory.cc"
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/util/sync_point_impl.o" "-c" "rocksdb/util/sync_point_impl.cc"
cargo:warning=1 warning generated.
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/table/block_fetcher.o" "-c" "rocksdb/table/block_fetcher.cc"
cargo:warning=In file included from rocksdb/utilities/write_batch_with_index/write_batch_with_index_internal.cc:10:
cargo:warning=In file included from rocksdb/db/column_family.h:17:
cargo:warning=In file included from rocksdb/db/memtable_list.h:17:
cargo:warning=In file included from rocksdb/db/memtable.h:21:
cargo:warning=rocksdb/db/version_edit.h:55:19: warning: definition of implicit copy constructor for 'FileDescriptor' is deprecated because it has a user-declared copy assignment operator [-Wdeprecated-copy]
cargo:warning=  FileDescriptor& operator=(const FileDescriptor& fd) {
cargo:warning=                  ^
cargo:warning=rocksdb/db/version_edit.h:175:9: note: in implicit copy constructor for 'rocksdb::FileDescriptor' first required here
cargo:warning=      : fd(_fd),
cargo:warning=        ^
cargo:warning=1 warning generated.
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/utilities/transactions/pessimistic_transaction.o" "-c" "rocksdb/utilities/transactions/pessimistic_transaction.cc"
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/util/thread_local.o" "-c" "rocksdb/util/thread_local.cc"
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/table/cuckoo_table_reader.o" "-c" "rocksdb/table/cuckoo_table_reader.cc"
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/table/block.o" "-c" "rocksdb/table/block.cc"
cargo:warning=1 warning generated.
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/build_version.o" "-c" "build_version.cc"
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/utilities/write_batch_with_index/write_batch_with_index.o" "-c" "rocksdb/utilities/write_batch_with_index/write_batch_with_index.cc"
cargo:warning=In file included from rocksdb/utilities/transactions/pessimistic_transaction.cc:15:
cargo:warning=In file included from rocksdb/db/column_family.h:17:
cargo:warning=In file included from rocksdb/db/memtable_list.h:17:
cargo:warning=In file included from rocksdb/db/memtable.h:21:
cargo:warning=rocksdb/db/version_edit.h:55:19: warning: definition of implicit copy constructor for 'FileDescriptor' is deprecated because it has a user-declared copy assignment operator [-Wdeprecated-copy]
cargo:warning=  FileDescriptor& operator=(const FileDescriptor& fd) {
cargo:warning=                  ^
cargo:warning=rocksdb/db/version_edit.h:175:9: note: in implicit copy constructor for 'rocksdb::FileDescriptor' first required here
cargo:warning=      : fd(_fd),
cargo:warning=        ^
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/util/threadpool_imp.o" "-c" "rocksdb/util/threadpool_imp.cc"
cargo:warning=1 warning generated.
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/table/block_based_filter_block.o" "-c" "rocksdb/table/block_based_filter_block.cc"
cargo:warning=1 warning generated.
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/table/block_based_table_builder.o" "-c" "rocksdb/table/block_based_table_builder.cc"
cargo:warning=1 warning generated.
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/table/bloom_block.o" "-c" "rocksdb/table/bloom_block.cc"
cargo:warning=In file included from rocksdb/utilities/write_batch_with_index/write_batch_with_index.cc:12:
cargo:warning=In file included from rocksdb/db/column_family.h:17:
cargo:warning=In file included from rocksdb/db/memtable_list.h:17:
cargo:warning=In file included from rocksdb/db/memtable.h:21:
cargo:warning=rocksdb/db/version_edit.h:55:19: warning: definition of implicit copy constructor for 'FileDescriptor' is deprecated because it has a user-declared copy assignment operator [-Wdeprecated-copy]
cargo:warning=  FileDescriptor& operator=(const FileDescriptor& fd) {
cargo:warning=                  ^
cargo:warning=rocksdb/db/version_edit.h:175:9: note: in implicit copy constructor for 'rocksdb::FileDescriptor' first required here
cargo:warning=      : fd(_fd),
cargo:warning=        ^
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/table/block_prefix_index.o" "-c" "rocksdb/table/block_prefix_index.cc"
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/table/cuckoo_table_builder.o" "-c" "rocksdb/table/cuckoo_table_builder.cc"
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/util/transaction_test_util.o" "-c" "rocksdb/util/transaction_test_util.cc"
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/table/data_block_hash_index.o" "-c" "rocksdb/table/data_block_hash_index.cc"
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/table/block_builder.o" "-c" "rocksdb/table/block_builder.cc"
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/util/trace_replay.o" "-c" "rocksdb/util/trace_replay.cc"
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/table/data_block_footer.o" "-c" "rocksdb/table/data_block_footer.cc"
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/utilities/blob_db/blob_compaction_filter.o" "-c" "rocksdb/utilities/blob_db/blob_compaction_filter.cc"
cargo:warning=1 warning generated.
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/util/xxhash.o" "-c" "rocksdb/util/xxhash.cc"
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/utilities/backupable/backupable_db.o" "-c" "rocksdb/utilities/backupable/backupable_db.cc"
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/table/format.o" "-c" "rocksdb/table/format.cc"
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/table/flush_block_policy.o" "-c" "rocksdb/table/flush_block_policy.cc"
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/utilities/blob_db/blob_db_impl.o" "-c" "rocksdb/utilities/blob_db/blob_db_impl.cc"
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/utilities/blob_db/blob_db_impl_filesnapshot.o" "-c" "rocksdb/utilities/blob_db/blob_db_impl_filesnapshot.cc"
cargo:warning=In file included from rocksdb/utilities/backupable/backupable_db.cc:16:
cargo:warning=rocksdb/util/channel.h:35:33: error: no matching constructor for initialization of 'std::lock_guard<std::mutex>'
cargo:warning=    std::lock_guard<std::mutex> lk(lock_);
cargo:warning=                                ^  ~~~~~
cargo:warning=/usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/std_mutex.h:158:16: note: candidate constructor not viable: 1st argument ('const std::mutex') would lose const qualifier
cargo:warning=      explicit lock_guard(mutex_type& __m) : _M_device(__m)
cargo:warning=               ^
cargo:warning=/usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/std_mutex.h:167:7: note: candidate constructor not viable: no known conversion from 'const std::mutex' to 'const std::lock_guard<std::mutex>' for 1st argument
cargo:warning=      lock_guard(const lock_guard&) = delete;
cargo:warning=      ^
cargo:warning=/usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/std_mutex.h:161:7: note: candidate constructor not viable: requires 2 arguments, but 1 was provided
cargo:warning=      lock_guard(mutex_type& __m, adopt_lock_t) noexcept : _M_device(__m)
cargo:warning=      ^
cargo:warning=1 warning generated.
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/utilities/blob_db/blob_db.o" "-c" "rocksdb/utilities/blob_db/blob_db.cc"
cargo:warning=In file included from rocksdb/util/trace_replay.cc:11:
cargo:warning=In file included from rocksdb/db/db_impl.h:22:
cargo:warning=In file included from rocksdb/db/column_family.h:17:
cargo:warning=In file included from rocksdb/db/memtable_list.h:17:
cargo:warning=In file included from rocksdb/db/memtable.h:21:
cargo:warning=rocksdb/db/version_edit.h:55:19: warning: definition of implicit copy constructor for 'FileDescriptor' is deprecated because it has a user-declared copy assignment operator [-Wdeprecated-copy]
cargo:warning=  FileDescriptor& operator=(const FileDescriptor& fd) {
cargo:warning=                  ^
cargo:warning=rocksdb/db/version_edit.h:175:9: note: in implicit copy constructor for 'rocksdb::FileDescriptor' first required here
cargo:warning=      : fd(_fd),
cargo:warning=        ^
exit code: 0
running: "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/table/full_filter_block.o" "-c" "rocksdb/table/full_filter_block.cc"
cargo:warning=In file included from rocksdb/utilities/blob_db/blob_compaction_filter.cc:8:
cargo:warning=In file included from rocksdb/utilities/blob_db/blob_compaction_filter.h:13:
cargo:warning=In file included from rocksdb/utilities/blob_db/blob_db_impl.h:22:
cargo:warning=In file included from rocksdb/db/db_iter.h:13:
cargo:warning=In file included from rocksdb/db/db_impl.h:22:
cargo:warning=In file included from rocksdb/db/column_family.h:17:
cargo:warning=In file included from rocksdb/db/memtable_list.h:17:
cargo:warning=In file included from rocksdb/db/memtable.h:21:
cargo:warning=rocksdb/db/version_edit.h:55:19: warning: definition of implicit copy constructor for 'FileDescriptor' is deprecated because it has a user-declared copy assignment operator [-Wdeprecated-copy]
cargo:warning=  FileDescriptor& operator=(const FileDescriptor& fd) {
cargo:warning=                  ^
cargo:warning=rocksdb/db/version_edit.h:175:9: note: in implicit copy constructor for 'rocksdb::FileDescriptor' first required here
cargo:warning=      : fd(_fd),
cargo:warning=        ^
exit code: 0
cargo:warning=In file included from rocksdb/utilities/blob_db/blob_db_impl.cc:7:
cargo:warning=In file included from rocksdb/utilities/blob_db/blob_db_impl.h:22:
cargo:warning=In file included from rocksdb/db/db_iter.h:13:
cargo:warning=In file included from rocksdb/db/db_impl.h:22:
cargo:warning=In file included from rocksdb/db/column_family.h:17:
cargo:warning=In file included from rocksdb/db/memtable_list.h:17:
cargo:warning=In file included from rocksdb/db/memtable.h:21:
cargo:warning=rocksdb/db/version_edit.h:55:19: warning: definition of implicit copy constructor for 'FileDescriptor' is deprecated because it has a user-declared copy assignment operator [-Wdeprecated-copy]
cargo:warning=  FileDescriptor& operator=(const FileDescriptor& fd) {
cargo:warning=                  ^
cargo:warning=rocksdb/db/version_edit.h:175:9: note: in implicit copy constructor for 'rocksdb::FileDescriptor' first required here
cargo:warning=      : fd(_fd),
cargo:warning=        ^
cargo:warning=1 error generated.
exit code: 1
exit code: 0
cargo:warning=In file included from rocksdb/utilities/blob_db/blob_db_impl_filesnapshot.cc:8:
cargo:warning=In file included from rocksdb/utilities/blob_db/blob_db_impl.h:22:
cargo:warning=In file included from rocksdb/db/db_iter.h:13:
cargo:warning=In file included from rocksdb/db/db_impl.h:22:
cargo:warning=In file included from rocksdb/db/column_family.h:17:
cargo:warning=In file included from rocksdb/db/memtable_list.h:17:
cargo:warning=In file included from rocksdb/db/memtable.h:21:
cargo:warning=rocksdb/db/version_edit.h:55:19: warning: definition of implicit copy constructor for 'FileDescriptor' is deprecated because it has a user-declared copy assignment operator [-Wdeprecated-copy]
cargo:warning=  FileDescriptor& operator=(const FileDescriptor& fd) {
cargo:warning=                  ^
cargo:warning=rocksdb/db/version_edit.h:175:9: note: in implicit copy constructor for 'rocksdb::FileDescriptor' first required here
cargo:warning=      : fd(_fd),
cargo:warning=        ^
cargo:warning=In file included from rocksdb/utilities/blob_db/blob_db.cc:15:
cargo:warning=In file included from rocksdb/utilities/blob_db/blob_db_impl.h:22:
cargo:warning=In file included from rocksdb/db/db_iter.h:13:
cargo:warning=In file included from rocksdb/db/db_impl.h:22:
cargo:warning=In file included from rocksdb/db/column_family.h:17:
cargo:warning=In file included from rocksdb/db/memtable_list.h:17:
cargo:warning=In file included from rocksdb/db/memtable.h:21:
cargo:warning=rocksdb/db/version_edit.h:55:19: warning: definition of implicit copy constructor for 'FileDescriptor' is deprecated because it has a user-declared copy assignment operator [-Wdeprecated-copy]
cargo:warning=  FileDescriptor& operator=(const FileDescriptor& fd) {
cargo:warning=                  ^
cargo:warning=rocksdb/db/version_edit.h:175:9: note: in implicit copy constructor for 'rocksdb::FileDescriptor' first required here
cargo:warning=      : fd(_fd),
cargo:warning=        ^
exit code: 0
cargo:warning=1 warning generated.
exit code: 0
cargo:warning=1 warning generated.
exit code: 0
exit code: 0
cargo:warning=1 warning generated.
exit code: 0
cargo:warning=1 warning generated.
exit code: 0
cargo:warning=1 warning generated.
exit code: 0

--- stderr


error occurred: Command "c++" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "rocksdb/include/" "-I" "rocksdb/" "-I" "rocksdb/third-party/gtest-1.7.0/fused-src/" "-I" "snappy/" "-I" "lz4/lib/" "-I" "zstd/lib/" "-I" "zstd/lib/dictBuilder/" "-I" "zlib/" "-I" "bzip2/" "-I" "." "-Wall" "-Wextra" "-std=c++11" "-Wno-unused-parameter" "-DSNAPPY=1" "-DLZ4=1" "-DZSTD=1" "-DZLIB=1" "-DBZIP2=1" "-DNDEBUG=1" "-DOS_LINUX=1" "-DROCKSDB_PLATFORM_POSIX=1" "-DROCKSDB_LIB_IO_POSIX=1" "-o" "/home/witnet/electrs/target/release/build/librocksdb-sys-66bfcafa6869bfa8/out/rocksdb/utilities/backupable/backupable_db.o" "-c" "rocksdb/utilities/backupable/backupable_db.cc" with args "c++" did not execute successfully (status code exit code: 1).

Most helpful comment

This error goes away if you
sudo apt install build-essential

then cargo build --release again.
I'll submit a PR in the usage instruction page to add this in.

All 4 comments

Did you also upgrade libstdc++ or something similar related to C++? That error is coming from librocksdb-sys which is written in C++.

Maybe @rust-rocksdb know something about it?

Did you also upgrade libstdc++ or something similar related to C++? That error is coming from librocksdb-sys which is written in C++.

Only rust and electrs were updated. I can reproduce this error on an Ubuntu 20.04 server installed from scratch with the latest electrs and rust.

electrs 0.8.5 compiles just fine on a clean Ubuntu 18.04 server install with rust 1.45.2.

Looks like an issue with the upstream rocksdb, I've filed the report on your behalf.

This error goes away if you
sudo apt install build-essential

then cargo build --release again.
I'll submit a PR in the usage instruction page to add this in.

Was this page helpful?
0 / 5 - 0 ratings