Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QT compile errors on OS X with qt5 #9521

Closed
leto opened this issue Jan 12, 2017 · 2 comments
Closed

QT compile errors on OS X with qt5 #9521

leto opened this issue Jan 12, 2017 · 2 comments
Labels

Comments

@leto
Copy link
Contributor

leto commented Jan 12, 2017

Description

Compile errors when compiling QT with qt5:

$ make
Making all in src
  CXX      crypto/libbitcoinconsensus_la-aes.lo
  CXX      crypto/libbitcoinconsensus_la-hmac_sha256.lo
  CXX      crypto/libbitcoinconsensus_la-hmac_sha512.lo
  CXX      crypto/libbitcoinconsensus_la-ripemd160.lo
  CXX      crypto/libbitcoinconsensus_la-sha1.lo
  CXX      crypto/libbitcoinconsensus_la-sha256.lo
  CXX      crypto/libbitcoinconsensus_la-sha512.lo
  CXX      libbitcoinconsensus_la-arith_uint256.lo
  CXX      consensus/libbitcoinconsensus_la-merkle.lo
  CXX      libbitcoinconsensus_la-hash.lo
  CXX      primitives/libbitcoinconsensus_la-block.lo
  CXX      primitives/libbitcoinconsensus_la-transaction.lo
  CXX      libbitcoinconsensus_la-pubkey.lo
  CXX      script/libbitcoinconsensus_la-bitcoinconsensus.lo
  CXX      script/libbitcoinconsensus_la-interpreter.lo
  CXX      script/libbitcoinconsensus_la-script.lo
  CXX      script/libbitcoinconsensus_la-script_error.lo
  CXX      libbitcoinconsensus_la-uint256.lo
  CXX      libbitcoinconsensus_la-utilstrencodings.lo
gcc -I. -g -O2 -Wall -Wextra -Wno-unused-function -c src/gen_context.c -o gen_context.o
gcc gen_context.o -o gen_context
./gen_context
  CC       src/libsecp256k1_la-secp256k1.lo
  CCLD     libsecp256k1.la
  CXXLD    libbitcoinconsensus.la
clang: warning: argument unused during compilation: '-pthread'
clang: warning: argument unused during compilation: '-pthread'
  CXX      bitcoind-bitcoind.o
  CXX      libbitcoin_server_a-addrman.o
  CXX      libbitcoin_server_a-bloom.o
  CXX      libbitcoin_server_a-blockencodings.o
  CXX      libbitcoin_server_a-chain.o
  CXX      libbitcoin_server_a-checkpoints.o
  CXX      libbitcoin_server_a-httprpc.o
  CXX      libbitcoin_server_a-httpserver.o
  CXX      libbitcoin_server_a-init.o
  CXX      libbitcoin_server_a-dbwrapper.o
  CXX      libbitcoin_server_a-main.o
  CXX      libbitcoin_server_a-merkleblock.o
  CXX      libbitcoin_server_a-miner.o
  CXX      libbitcoin_server_a-net.o
  CXX      libbitcoin_server_a-noui.o
  CXX      policy/libbitcoin_server_a-fees.o
  CXX      policy/libbitcoin_server_a-policy.o
  CXX      libbitcoin_server_a-pow.o
  CXX      libbitcoin_server_a-rest.o
  CXX      rpc/libbitcoin_server_a-blockchain.o
  CXX      rpc/libbitcoin_server_a-mining.o
  CXX      rpc/libbitcoin_server_a-misc.o
  CXX      rpc/libbitcoin_server_a-net.o
  CXX      rpc/libbitcoin_server_a-rawtransaction.o
  CXX      rpc/libbitcoin_server_a-server.o
  CXX      script/libbitcoin_server_a-sigcache.o
  CXX      script/libbitcoin_server_a-ismine.o
  CXX      libbitcoin_server_a-timedata.o
  CXX      libbitcoin_server_a-torcontrol.o
  CXX      libbitcoin_server_a-txdb.o
  CXX      libbitcoin_server_a-txmempool.o
  CXX      libbitcoin_server_a-ui_interface.o
  CXX      libbitcoin_server_a-validationinterface.o
  CXX      libbitcoin_server_a-versionbits.o
  AR       libbitcoin_server.a
  CXX      libbitcoin_common_a-amount.o
  CXX      libbitcoin_common_a-base58.o
  CXX      libbitcoin_common_a-chainparams.o
  CXX      libbitcoin_common_a-coins.o
  CXX      libbitcoin_common_a-compressor.o
  CXX      libbitcoin_common_a-core_read.o
  CXX      libbitcoin_common_a-core_write.o
  CXX      libbitcoin_common_a-key.o
  CXX      libbitcoin_common_a-keystore.o
  CXX      libbitcoin_common_a-netbase.o
  CXX      libbitcoin_common_a-protocol.o
  CXX      libbitcoin_common_a-scheduler.o
  CXX      script/libbitcoin_common_a-sign.o
  CXX      script/libbitcoin_common_a-standard.o
  AR       libbitcoin_common.a
  CXX      lib/libunivalue_la-univalue.lo
  CXX      lib/libunivalue_la-univalue_read.lo
  CXX      lib/libunivalue_la-univalue_write.lo
  CXXLD    libunivalue.la
  CXX      support/libbitcoin_util_a-pagelocker.o
  CXX      libbitcoin_util_a-chainparamsbase.o
  CXX      libbitcoin_util_a-clientversion.o
  CXX      compat/libbitcoin_util_a-glibc_sanity.o
  CXX      compat/libbitcoin_util_a-glibcxx_sanity.o
  CXX      compat/libbitcoin_util_a-strnlen.o
  CXX      libbitcoin_util_a-random.o
  CXX      rpc/libbitcoin_util_a-protocol.o
  CXX      support/libbitcoin_util_a-cleanse.o
  CXX      libbitcoin_util_a-sync.o
  CXX      libbitcoin_util_a-util.o
  CXX      libbitcoin_util_a-utilmoneystr.o
  CXX      libbitcoin_util_a-utilstrencodings.o
  CXX      libbitcoin_util_a-utiltime.o
  AR       libbitcoin_util.a
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libbitcoin_util.a(libbitcoin_util_a-strnlen.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: libbitcoin_util.a(libbitcoin_util_a-strnlen.o) has no symbols
  CXX      wallet/libbitcoin_wallet_a-crypter.o
  CXX      wallet/libbitcoin_wallet_a-db.o
  CXX      wallet/libbitcoin_wallet_a-rpcdump.o
  CXX      wallet/libbitcoin_wallet_a-rpcwallet.o
  CXX      wallet/libbitcoin_wallet_a-wallet.o
  CXX      wallet/libbitcoin_wallet_a-walletdb.o
  CXX      policy/libbitcoin_wallet_a-rbf.o
  AR       libbitcoin_wallet.a
  CXX      libbitcoin_consensus_a-arith_uint256.o
  CXX      consensus/libbitcoin_consensus_a-merkle.o
  CXX      libbitcoin_consensus_a-hash.o
  CXX      primitives/libbitcoin_consensus_a-block.o
  CXX      primitives/libbitcoin_consensus_a-transaction.o
  CXX      libbitcoin_consensus_a-pubkey.o
  CXX      script/libbitcoin_consensus_a-bitcoinconsensus.o
  CXX      script/libbitcoin_consensus_a-interpreter.o
  CXX      script/libbitcoin_consensus_a-script.o
  CXX      script/libbitcoin_consensus_a-script_error.o
  CXX      libbitcoin_consensus_a-uint256.o
  CXX      libbitcoin_consensus_a-utilstrencodings.o
  AR       libbitcoin_consensus.a
  CXX      crypto/crypto_libbitcoin_crypto_a-aes.o
  CXX      crypto/crypto_libbitcoin_crypto_a-hmac_sha256.o
  CXX      crypto/crypto_libbitcoin_crypto_a-hmac_sha512.o
  CXX      crypto/crypto_libbitcoin_crypto_a-ripemd160.o
  CXX      crypto/crypto_libbitcoin_crypto_a-sha1.o
  CXX      crypto/crypto_libbitcoin_crypto_a-sha256.o
  CXX      crypto/crypto_libbitcoin_crypto_a-sha512.o
  AR       crypto/libbitcoin_crypto.a
  CXX      leveldb/db/leveldb_libleveldb_a-builder.o
  CXX      leveldb/db/leveldb_libleveldb_a-c.o
  CXX      leveldb/db/leveldb_libleveldb_a-dbformat.o
  CXX      leveldb/db/leveldb_libleveldb_a-db_impl.o
  CXX      leveldb/db/leveldb_libleveldb_a-db_iter.o
  CXX      leveldb/db/leveldb_libleveldb_a-dumpfile.o
  CXX      leveldb/db/leveldb_libleveldb_a-filename.o
  CXX      leveldb/db/leveldb_libleveldb_a-log_reader.o
  CXX      leveldb/db/leveldb_libleveldb_a-log_writer.o
  CXX      leveldb/db/leveldb_libleveldb_a-memtable.o
leveldb/db/memtable.cc:104:31: warning: comparison of integers of different signs: 'long' and 'const size_t' (aka 'const unsigned long') [-Wsign-compare]
  assert((p + val_size) - buf == encoded_len);
         ~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~
/usr/include/assert.h:93:25: note: expanded from macro 'assert'
    (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __FILE__, __LINE__, #e) : (void)0)
                        ^
1 warning generated.
  CXX      leveldb/db/leveldb_libleveldb_a-repair.o
  CXX      leveldb/db/leveldb_libleveldb_a-table_cache.o
  CXX      leveldb/db/leveldb_libleveldb_a-version_edit.o
  CXX      leveldb/db/leveldb_libleveldb_a-version_set.o
  CXX      leveldb/db/leveldb_libleveldb_a-write_batch.o
  CXX      leveldb/table/leveldb_libleveldb_a-block_builder.o
  CXX      leveldb/table/leveldb_libleveldb_a-block.o
  CXX      leveldb/table/leveldb_libleveldb_a-filter_block.o
  CXX      leveldb/table/leveldb_libleveldb_a-format.o
  CXX      leveldb/table/leveldb_libleveldb_a-iterator.o
  CXX      leveldb/table/leveldb_libleveldb_a-merger.o
  CXX      leveldb/table/leveldb_libleveldb_a-table_builder.o
  CXX      leveldb/table/leveldb_libleveldb_a-table.o
  CXX      leveldb/table/leveldb_libleveldb_a-two_level_iterator.o
  CXX      leveldb/util/leveldb_libleveldb_a-arena.o
  CXX      leveldb/util/leveldb_libleveldb_a-bloom.o
leveldb/util/bloom.cc:50:26: warning: comparison of integers of different signs: 'size_t' (aka 'unsigned long') and 'int' [-Wsign-compare]
    for (size_t i = 0; i < n; i++) {
                       ~ ^ ~
1 warning generated.
  CXX      leveldb/util/leveldb_libleveldb_a-cache.o
  CXX      leveldb/util/leveldb_libleveldb_a-coding.o
  CXX      leveldb/util/leveldb_libleveldb_a-comparator.o
  CXX      leveldb/util/leveldb_libleveldb_a-crc32c.o
  CXX      leveldb/util/leveldb_libleveldb_a-env.o
  CXX      leveldb/util/leveldb_libleveldb_a-env_posix.o
  CXX      leveldb/util/leveldb_libleveldb_a-env_win.o
  CXX      leveldb/util/leveldb_libleveldb_a-filter_policy.o
  CXX      leveldb/util/leveldb_libleveldb_a-hash.o
  CXX      leveldb/util/leveldb_libleveldb_a-histogram.o
  CXX      leveldb/util/leveldb_libleveldb_a-logging.o
leveldb/util/logging.cc:58:40: warning: comparison of integers of different signs: 'const int' and 'unsigned long long' [-Wsign-compare]
          (v == kMaxUint64/10 && delta > kMaxUint64%10)) {
                                 ~~~~~ ^ ~~~~~~~~~~~~~
1 warning generated.
  CXX      leveldb/util/leveldb_libleveldb_a-options.o
  CXX      leveldb/util/leveldb_libleveldb_a-status.o
  CXX      leveldb/port/leveldb_libleveldb_a-port_posix.o
  AR       leveldb/libleveldb.a
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: leveldb/libleveldb.a(leveldb_libleveldb_a-env_win.o) has no symbols
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: leveldb/libleveldb.a(leveldb_libleveldb_a-env_win.o) has no symbols
  CXX      leveldb/helpers/memenv/leveldb_libmemenv_a-memenv.o
  AR       leveldb/libmemenv.a
  CXXLD    bitcoind
  CXX      bitcoin_cli-bitcoin-cli.o
  CXX      rpc/libbitcoin_cli_a-client.o
  AR       libbitcoin_cli.a
  CXXLD    bitcoin-cli
  CXX      bitcoin_tx-bitcoin-tx.o
  CXXLD    bitcoin-tx
Generated test/data/script_tests.json.h
Generated test/data/base58_keys_valid.json.h
Generated test/data/base58_encode_decode.json.h
Generated test/data/base58_keys_invalid.json.h
Generated test/data/tx_invalid.json.h
Generated test/data/tx_valid.json.h
Generated test/data/sighash.json.h
  CXX      test/test_test_bitcoin-arith_uint256_tests.o
  CXX      test/test_test_bitcoin-addrman_tests.o
  CXX      test/test_test_bitcoin-amount_tests.o
  CXX      test/test_test_bitcoin-allocator_tests.o
  CXX      test/test_test_bitcoin-base32_tests.o
  CXX      test/test_test_bitcoin-base58_tests.o
  CXX      test/test_test_bitcoin-base64_tests.o
  CXX      test/test_test_bitcoin-bip32_tests.o
  CXX      test/test_test_bitcoin-blockencodings_tests.o
  CXX      test/test_test_bitcoin-bloom_tests.o
  CXX      test/test_test_bitcoin-coins_tests.o
  CXX      test/test_test_bitcoin-compress_tests.o
  CXX      test/test_test_bitcoin-crypto_tests.o
  CXX      test/test_test_bitcoin-DoS_tests.o
  CXX      test/test_test_bitcoin-getarg_tests.o
  CXX      test/test_test_bitcoin-hash_tests.o
  CXX      test/test_test_bitcoin-key_tests.o
  CXX      test/test_test_bitcoin-limitedmap_tests.o
  CXX      test/test_test_bitcoin-dbwrapper_tests.o
  CXX      test/test_test_bitcoin-main_tests.o
  CXX      test/test_test_bitcoin-mempool_tests.o
  CXX      test/test_test_bitcoin-merkle_tests.o
  CXX      test/test_test_bitcoin-miner_tests.o
  CXX      test/test_test_bitcoin-multisig_tests.o
  CXX      test/test_test_bitcoin-net_tests.o
  CXX      test/test_test_bitcoin-netbase_tests.o
  CXX      test/test_test_bitcoin-pmt_tests.o
  CXX      test/test_test_bitcoin-policyestimator_tests.o
  CXX      test/test_test_bitcoin-pow_tests.o
  CXX      test/test_test_bitcoin-prevector_tests.o
  CXX      test/test_test_bitcoin-reverselock_tests.o
  CXX      test/test_test_bitcoin-rpc_tests.o
  CXX      test/test_test_bitcoin-sanity_tests.o
  CXX      test/test_test_bitcoin-scheduler_tests.o
  CXX      test/test_test_bitcoin-script_P2SH_tests.o
  CXX      test/test_test_bitcoin-script_tests.o
  CXX      test/test_test_bitcoin-scriptnum_tests.o
  CXX      test/test_test_bitcoin-serialize_tests.o
  CXX      test/test_test_bitcoin-sighash_tests.o
  CXX      test/test_test_bitcoin-sigopcount_tests.o
  CXX      test/test_test_bitcoin-skiplist_tests.o
  CXX      test/test_test_bitcoin-streams_tests.o
  CXX      test/test_test_bitcoin-test_bitcoin.o
  CXX      test/test_test_bitcoin-testutil.o
  CXX      test/test_test_bitcoin-timedata_tests.o
  CXX      test/test_test_bitcoin-transaction_tests.o
  CXX      test/test_test_bitcoin-txvalidationcache_tests.o
  CXX      test/test_test_bitcoin-versionbits_tests.o
  CXX      test/test_test_bitcoin-uint256_tests.o
  CXX      test/test_test_bitcoin-univalue_tests.o
  CXX      test/test_test_bitcoin-util_tests.o
  CXX      wallet/test/test_test_bitcoin-wallet_test_fixture.o
  CXX      wallet/test/test_test_bitcoin-accounting_tests.o
  CXX      wallet/test/test_test_bitcoin-wallet_tests.o
  CXX      wallet/test/test_test_bitcoin-crypto_tests.o
  CXX      wallet/test/test_test_bitcoin-rpc_wallet_tests.o
  CXXLD    test/test_bitcoin
  CXX      bench/bench_bench_bitcoin-bench_bitcoin.o
  CXX      bench/bench_bench_bitcoin-bench.o
  CXX      bench/bench_bench_bitcoin-Examples.o
  CXX      bench/bench_bench_bitcoin-rollingbloom.o
  CXX      bench/bench_bench_bitcoin-crypto_hash.o
  CXX      bench/bench_bench_bitcoin-base58.o
  CXXLD    bench/bench_bitcoin
  GEN      qt/paymentrequest.pb.h
  GEN      qt/forms/ui_addressbookpage.h
  GEN      qt/forms/ui_askpassphrasedialog.h
  GEN      qt/forms/ui_coincontroldialog.h
  GEN      qt/forms/ui_editaddressdialog.h
  GEN      qt/forms/ui_helpmessagedialog.h
  GEN      qt/forms/ui_intro.h
  GEN      qt/forms/ui_openuridialog.h
  GEN      qt/forms/ui_optionsdialog.h
  GEN      qt/forms/ui_overviewpage.h
  GEN      qt/forms/ui_receivecoinsdialog.h
  GEN      qt/forms/ui_receiverequestdialog.h
  GEN      qt/forms/ui_debugwindow.h
  GEN      qt/forms/ui_sendcoinsdialog.h
  GEN      qt/forms/ui_sendcoinsentry.h
  GEN      qt/forms/ui_signverifymessagedialog.h
  GEN      qt/forms/ui_transactiondescdialog.h
  GEN      qt/bitcoin.moc
  GEN      qt/bitcoinamountfield.moc
  GEN      qt/intro.moc
  GEN      qt/overviewpage.moc
  GEN      qt/rpcconsole.moc
  CXX      qt/qt_bitcoin_qt-bitcoin.o
  OBJCXX   qt/qt_bitcoin_qt-macdockiconhandler.o
  OBJCXX   qt/qt_bitcoin_qt-macnotificationhandler.o
  CXX      qt/qt_libbitcoinqt_a-bantablemodel.o
  CXX      qt/qt_libbitcoinqt_a-bitcoinaddressvalidator.o
  CXX      qt/qt_libbitcoinqt_a-bitcoinamountfield.o
  CXX      qt/qt_libbitcoinqt_a-bitcoingui.o
  CXX      qt/qt_libbitcoinqt_a-bitcoinunits.o
  CXX      qt/qt_libbitcoinqt_a-clientmodel.o
  CXX      qt/qt_libbitcoinqt_a-csvmodelwriter.o
  CXX      qt/qt_libbitcoinqt_a-guiutil.o
  CXX      qt/qt_libbitcoinqt_a-intro.o
  CXX      qt/qt_libbitcoinqt_a-networkstyle.o
  CXX      qt/qt_libbitcoinqt_a-notificator.o
qt/notificator.cpp:66:27: warning: 'LSGetApplicationForInfo' is deprecated: first deprecated in OS X 10.10 - Use LSCopyDefaultApplicationURLForContentType instead.
      [-Wdeprecated-declarations]
        OSStatus status = LSGetApplicationForInfo(kLSUnknownType, kLSUnknownCreator, CFSTR("growlTicket"), kLSRolesAll, 0, &cfurl);
                          ^
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LSInfo.h:720:1: note: 'LSGetApplicationForInfo' has been explicitly marked
      deprecated here
LSGetApplicationForInfo(
^
1 warning generated.
  CXX      qt/qt_libbitcoinqt_a-optionsdialog.o
  CXX      qt/qt_libbitcoinqt_a-optionsmodel.o
  CXX      qt/qt_libbitcoinqt_a-peertablemodel.o
  CXX      qt/qt_libbitcoinqt_a-platformstyle.o
  CXX      qt/qt_libbitcoinqt_a-qvalidatedlineedit.o
  CXX      qt/qt_libbitcoinqt_a-qvaluecombobox.o
  CXX      qt/qt_libbitcoinqt_a-rpcconsole.o
  CXX      qt/qt_libbitcoinqt_a-splashscreen.o
  CXX      qt/qt_libbitcoinqt_a-trafficgraphwidget.o
  CXX      qt/qt_libbitcoinqt_a-utilitydialog.o
  CXX      qt/qt_libbitcoinqt_a-addressbookpage.o
  CXX      qt/qt_libbitcoinqt_a-addresstablemodel.o
  CXX      qt/qt_libbitcoinqt_a-askpassphrasedialog.o
In file included from qt/askpassphrasedialog.cpp:13:
In file included from ./qt/walletmodel.h:8:
In file included from ./qt/paymentrequestplus.h:10:
In file included from ./base58.h:17:
In file included from ./chainparams.h:10:
In file included from ./consensus/params.h:9:
In file included from ./uint256.h:15:
In file included from ./crypto/common.h:14:
In file included from ./compat/endian.h:14:
./compat/byteswap.h:19:17: error: C++ requires a type specifier for all declarations
inline uint16_t bswap_16(uint16_t x)
                ^
/usr/local/Cellar/protobuf/3.1.0/include/google/protobuf/stubs/port.h:298:21: note: expanded from macro 'bswap_16'
#define bswap_16(x) OSSwapInt16(x)
                    ^
/usr/include/libkern/OSByteOrder.h:54:24: note: expanded from macro 'OSSwapInt16'
#define OSSwapInt16(x)  __DARWIN_OSSwapInt16(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:72:19: note: expanded from macro '__DARWIN_OSSwapInt16'
    ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : _OSSwapInt16(x)))
                  ^
In file included from qt/askpassphrasedialog.cpp:13:
In file included from ./qt/walletmodel.h:8:
In file included from ./qt/paymentrequestplus.h:10:
In file included from ./base58.h:17:
In file included from ./chainparams.h:10:
In file included from ./consensus/params.h:9:
In file included from ./uint256.h:15:
In file included from ./crypto/common.h:14:
In file included from ./compat/endian.h:14:
./compat/byteswap.h:19:17: error: expected ')'
/usr/local/Cellar/protobuf/3.1.0/include/google/protobuf/stubs/port.h:298:21: note: expanded from macro 'bswap_16'
#define bswap_16(x) OSSwapInt16(x)
                    ^
/usr/include/libkern/OSByteOrder.h:54:24: note: expanded from macro 'OSSwapInt16'
#define OSSwapInt16(x)  __DARWIN_OSSwapInt16(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:72:43: note: expanded from macro '__DARWIN_OSSwapInt16'
    ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : _OSSwapInt16(x)))
                                          ^
./compat/byteswap.h:19:17: note: to match this '('
/usr/local/Cellar/protobuf/3.1.0/include/google/protobuf/stubs/port.h:298:21: note: expanded from macro 'bswap_16'
#define bswap_16(x) OSSwapInt16(x)
                    ^
/usr/include/libkern/OSByteOrder.h:54:24: note: expanded from macro 'OSSwapInt16'
#define OSSwapInt16(x)  __DARWIN_OSSwapInt16(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:72:18: note: expanded from macro '__DARWIN_OSSwapInt16'
    ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : _OSSwapInt16(x)))
                 ^
In file included from qt/askpassphrasedialog.cpp:13:
In file included from ./qt/walletmodel.h:8:
In file included from ./qt/paymentrequestplus.h:10:
In file included from ./base58.h:17:
In file included from ./chainparams.h:10:
In file included from ./consensus/params.h:9:
In file included from ./uint256.h:15:
In file included from ./crypto/common.h:14:
In file included from ./compat/endian.h:14:
./compat/byteswap.h:21:13: error: use of undeclared identifier 'x'; did you mean 'AskPassphraseDialog::x'?
    return (x >> 8) | ((x & 0x00ff) << 8);
            ^
            AskPassphraseDialog::x
/usr/local/Cellar/qt5/5.7.1_1/include/QtWidgets/qwidget.h:250:9: note: 'AskPassphraseDialog::x' declared here
    int x() const;
        ^
In file included from qt/askpassphrasedialog.cpp:13:
In file included from ./qt/walletmodel.h:8:
In file included from ./qt/paymentrequestplus.h:10:
In file included from ./base58.h:17:
In file included from ./chainparams.h:10:
In file included from ./consensus/params.h:9:
In file included from ./uint256.h:15:
In file included from ./crypto/common.h:14:
In file included from ./compat/endian.h:14:
./compat/byteswap.h:21:13: error: call to non-static member function without an object argument
    return (x >> 8) | ((x & 0x00ff) << 8);
            ^
./compat/byteswap.h:21:25: error: use of undeclared identifier 'x'; did you mean 'AskPassphraseDialog::x'?
    return (x >> 8) | ((x & 0x00ff) << 8);
                        ^
                        AskPassphraseDialog::x
/usr/local/Cellar/qt5/5.7.1_1/include/QtWidgets/qwidget.h:250:9: note: 'AskPassphraseDialog::x' declared here
    int x() const;
        ^
In file included from qt/askpassphrasedialog.cpp:13:
In file included from ./qt/walletmodel.h:8:
In file included from ./qt/paymentrequestplus.h:10:
In file included from ./base58.h:17:
In file included from ./chainparams.h:10:
In file included from ./consensus/params.h:9:
In file included from ./uint256.h:15:
In file included from ./crypto/common.h:14:
In file included from ./compat/endian.h:14:
./compat/byteswap.h:21:25: error: call to non-static member function without an object argument
    return (x >> 8) | ((x & 0x00ff) << 8);
                        ^
./compat/byteswap.h:26:17: error: expected ')'
inline uint32_t bswap_32(uint32_t x)
                ^
/usr/local/Cellar/protobuf/3.1.0/include/google/protobuf/stubs/port.h:299:21: note: expanded from macro 'bswap_32'
#define bswap_32(x) OSSwapInt32(x)
                    ^
/usr/include/libkern/OSByteOrder.h:55:24: note: expanded from macro 'OSSwapInt32'
#define OSSwapInt32(x)  __DARWIN_OSSwapInt32(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:75:30: note: expanded from macro '__DARWIN_OSSwapInt32'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt32(x) : _OSSwapInt32(x))
                             ^
./compat/byteswap.h:26:17: note: to match this '('
/usr/local/Cellar/protobuf/3.1.0/include/google/protobuf/stubs/port.h:299:21: note: expanded from macro 'bswap_32'
#define bswap_32(x) OSSwapInt32(x)
                    ^
/usr/include/libkern/OSByteOrder.h:55:24: note: expanded from macro 'OSSwapInt32'
#define OSSwapInt32(x)  __DARWIN_OSSwapInt32(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:75:5: note: expanded from macro '__DARWIN_OSSwapInt32'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt32(x) : _OSSwapInt32(x))
    ^
In file included from qt/askpassphrasedialog.cpp:13:
In file included from ./qt/walletmodel.h:8:
In file included from ./qt/paymentrequestplus.h:10:
In file included from ./base58.h:17:
In file included from ./chainparams.h:10:
In file included from ./consensus/params.h:9:
In file included from ./uint256.h:15:
In file included from ./crypto/common.h:14:
In file included from ./compat/endian.h:14:
./compat/byteswap.h:26:17: error: functions that differ only in their return type cannot be overloaded
inline uint32_t bswap_32(uint32_t x)
                ^
/usr/local/Cellar/protobuf/3.1.0/include/google/protobuf/stubs/port.h:299:21: note: expanded from macro 'bswap_32'
#define bswap_32(x) OSSwapInt32(x)
                    ^
/usr/include/libkern/OSByteOrder.h:55:24: note: expanded from macro 'OSSwapInt32'
#define OSSwapInt32(x)  __DARWIN_OSSwapInt32(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:75:6: note: expanded from macro '__DARWIN_OSSwapInt32'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt32(x) : _OSSwapInt32(x))
     ^
/usr/local/Cellar/protobuf/3.1.0/include/google/protobuf/stubs/port.h:392:47: note: previous implicit declaration is here
  static uint16 FromHost16(uint16 x) { return bswap_16(x); }
                                              ^
/usr/local/Cellar/protobuf/3.1.0/include/google/protobuf/stubs/port.h:298:21: note: expanded from macro 'bswap_16'
#define bswap_16(x) OSSwapInt16(x)
                    ^
/usr/include/libkern/OSByteOrder.h:54:24: note: expanded from macro 'OSSwapInt16'
#define OSSwapInt16(x)  __DARWIN_OSSwapInt16(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:72:19: note: expanded from macro '__DARWIN_OSSwapInt16'
    ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : _OSSwapInt16(x)))
                  ^
In file included from qt/askpassphrasedialog.cpp:13:
In file included from ./qt/walletmodel.h:8:
In file included from ./qt/paymentrequestplus.h:10:
In file included from ./base58.h:17:
In file included from ./chainparams.h:10:
In file included from ./consensus/params.h:9:
In file included from ./uint256.h:15:
In file included from ./crypto/common.h:14:
In file included from ./compat/endian.h:14:
./compat/byteswap.h:34:17: error: expected ')'
inline uint64_t bswap_64(uint64_t x)
                ^
/usr/local/Cellar/protobuf/3.1.0/include/google/protobuf/stubs/port.h:300:21: note: expanded from macro 'bswap_64'
#define bswap_64(x) OSSwapInt64(x)
                    ^
/usr/include/libkern/OSByteOrder.h:56:24: note: expanded from macro 'OSSwapInt64'
#define OSSwapInt64(x)  __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:30: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
                             ^
./compat/byteswap.h:34:17: note: to match this '('
/usr/local/Cellar/protobuf/3.1.0/include/google/protobuf/stubs/port.h:300:21: note: expanded from macro 'bswap_64'
#define bswap_64(x) OSSwapInt64(x)
                    ^
/usr/include/libkern/OSByteOrder.h:56:24: note: expanded from macro 'OSSwapInt64'
#define OSSwapInt64(x)  __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:5: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
    ^
In file included from qt/askpassphrasedialog.cpp:13:
In file included from ./qt/walletmodel.h:8:
In file included from ./qt/paymentrequestplus.h:10:
In file included from ./base58.h:17:
In file included from ./chainparams.h:10:
In file included from ./consensus/params.h:9:
In file included from ./uint256.h:15:
In file included from ./crypto/common.h:14:
In file included from ./compat/endian.h:14:
./compat/byteswap.h:34:17: error: functions that differ only in their return type cannot be overloaded
inline uint64_t bswap_64(uint64_t x)
                ^
/usr/local/Cellar/protobuf/3.1.0/include/google/protobuf/stubs/port.h:300:21: note: expanded from macro 'bswap_64'
#define bswap_64(x) OSSwapInt64(x)
                    ^
/usr/include/libkern/OSByteOrder.h:56:24: note: expanded from macro 'OSSwapInt64'
#define OSSwapInt64(x)  __DARWIN_OSSwapInt64(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:78:6: note: expanded from macro '__DARWIN_OSSwapInt64'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt64(x) : _OSSwapInt64(x))
     ^
/usr/local/Cellar/protobuf/3.1.0/include/google/protobuf/stubs/port.h:392:47: note: previous implicit declaration is here
  static uint16 FromHost16(uint16 x) { return bswap_16(x); }
                                              ^
/usr/local/Cellar/protobuf/3.1.0/include/google/protobuf/stubs/port.h:298:21: note: expanded from macro 'bswap_16'
#define bswap_16(x) OSSwapInt16(x)
                    ^
/usr/include/libkern/OSByteOrder.h:54:24: note: expanded from macro 'OSSwapInt16'
#define OSSwapInt16(x)  __DARWIN_OSSwapInt16(x)
                        ^
/usr/include/libkern/_OSByteOrder.h:72:19: note: expanded from macro '__DARWIN_OSSwapInt16'
    ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : _OSSwapInt16(x)))
                  ^
10 errors generated.
make[2]: *** [qt/qt_libbitcoinqt_a-askpassphrasedialog.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

real	10m57.340s
user	10m14.360s
sys	0m34.152s

Can you reliably reproduce the issue?

If so, please list the steps to reproduce below:

  1. brew install automake berkeley-db4 libtool boost --c++11 miniupnpc openssl pkg-config protobuf --c++11 qt5 libevent

git clone https://github.com/bitcoin/bitcoin
cd bitcoin
git checkout v0.13.2
./autogen.sh
./configure
make

Expected behaviour

QT UI should compile successfully.

Actual behaviour

Command-line client builds, but QT fails.

What version of bitcoin-core are you using?

The v0.13.2 tag

Machine specs:

  • OS: OS X 10.10.3
  • CPU: 2.5Ghz i7
  • RAM: 16GB
  • Disk size: 500GB
  • Disk Type (HD/SDD): SSD
@fanquake fanquake added the macOS label Jan 12, 2017
@fanquake
Copy link
Member

fanquake commented Jan 12, 2017

The issue here is using Protobuf v3.x . Changes have been made in master to fix up issues with Protobuf 3.x, but I don't think they we're back-ported, so you'll need to use Protobuf 2.60 with the 0.13.x branch. See the 0.13.x osx dependencies.

You should be able to uninstall/unlink protobuf and install

homebrew/versions/protobuf260 --c++11

@leto
Copy link
Contributor Author

leto commented Jan 12, 2017

@fanquake thanks for the quick update, I was using the dependencies from the master branch of that doc

@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants