MacOS: Errors in make (qt) after upgrade from High Sierra to Mojave #14901

issue ch4ot1c opened this issue on December 9, 2018
  1. ch4ot1c commented at 5:42 PM on December 9, 2018: contributor

    Had already run ./autogen on High Sierra. Now rerunning ./configure and make -j 4 after the upgrade. Both with and without the --disable-qt flag:

      GEN      qt/locale/bitcoin_zh_HK.qm
      GEN      qt/locale/bitcoin_zh.qm
      GEN      qt/locale/bitcoin_zh_TW.qm
      CXX      test/qt_test_test_bitcoin_qt-test_bitcoin.o
      CXX      wallet/test/qt_test_test_bitcoin_qt-wallet_test_fixture.o
      CXX      qt/test/test_bitcoin_qt-paymentservertests.o
    In file included from qt/test/paymentservertests.cpp:5:
    In file included from ./qt/test/paymentservertests.h:8:
    In file included from ./qt/paymentserver.h:40:
    In file included from ./qt/paymentrequestplus.h:18:
    In file included from /usr/local/Cellar/qt/5.11.2/include/QtCore/QByteArray:1:
    In file included from /usr/local/Cellar/qt/5.11.2/include/QtCore/qbytearray.h:44:
    /usr/local/Cellar/qt/5.11.2/include/QtCore/qrefcount.h:54:22: error: expected ';' at end of declaration list
        inline bool ref() Q_DECL_NOTHROW {
                         ^
                         ;
    In file included from qt/test/paymentservertests.cpp:5:
    In file included from ./qt/test/paymentservertests.h:8:
    In file included from ./qt/paymentserver.h:40:
    In file included from ./qt/paymentrequestplus.h:18:
    In file included from /usr/local/Cellar/qt/5.11.2/include/QtCore/QByteArray:1:
    In file included from /usr/local/Cellar/qt/5.11.2/include/QtCore/qbytearray.h:46:
    /usr/local/Cellar/qt/5.11.2/include/QtCore/qarraydata.h:116:66: error: expected ';' at end of declaration list
                size_t capacity, AllocationOptions options = Default) Q_DECL_NOTHROW;
                                                                     ^
                                                                     ;
    /usr/local/Cellar/qt/5.11.2/include/QtCore/qarraydata.h:118:72: error: expected ';' at end of declaration list
                size_t newCapacity, AllocationOptions newOptions = Default) Q_DECL_NOTHROW;
                                                                           ^
                                                                           ;
    /usr/local/Cellar/qt/5.11.2/include/QtCore/qarraydata.h:120:30: error: expected ';' at end of declaration list
                size_t alignment) Q_DECL_NOTHROW;
                                 ^
                                 ;
    /usr/local/Cellar/qt/5.11.2/include/QtCore/qarraydata.h:123:36: error: expected ';' at end of declaration list
        static QArrayData *sharedNull() Q_DECL_NOTHROW { return const_cast<QArrayData*>(shared_null); }
                                       ^
                                       ;
    /usr/local/Cellar/qt/5.11.2/include/QtCore/qarraydata.h:255:41: error: expected ';' at end of declaration list
        static QTypedArrayData *sharedNull() Q_DECL_NOTHROW
                                            ^
                                            ;
    /usr/local/Cellar/qt/5.11.2/include/QtCore/qarraydata.h:221:9: error: use of undeclared identifier 'Q_STATIC_ASSERT'
            Q_STATIC_ASSERT(sizeof(QTypedArrayData) == sizeof(QArrayData));
            ^
    /usr/local/Cellar/qt/5.11.2/include/QtCore/qarraydata.h:229:9: error: use of undeclared identifier 'Q_STATIC_ASSERT'
            Q_STATIC_ASSERT(sizeof(QTypedArrayData) == sizeof(QArrayData));
            ^
    /usr/local/Cellar/qt/5.11.2/include/QtCore/qarraydata.h:236:9: error: use of undeclared identifier 'Q_STATIC_ASSERT'
            Q_STATIC_ASSERT(sizeof(QTypedArrayData) == sizeof(QArrayData));
            ^
    /usr/local/Cellar/qt/5.11.2/include/QtCore/qarraydata.h:243:9: error: use of undeclared identifier 'Q_STATIC_ASSERT'
            Q_STATIC_ASSERT(sizeof(QTypedArrayData) == sizeof(QArrayData));
            ^
    In file included from qt/test/paymentservertests.cpp:5:
    In file included from ./qt/test/paymentservertests.h:8:
    In file included from ./qt/paymentserver.h:40:
    In file included from ./qt/paymentrequestplus.h:18:
    In file included from /usr/local/Cellar/qt/5.11.2/include/QtCore/QByteArray:1:
    /usr/local/Cellar/qt/5.11.2/include/QtCore/qbytearray.h:60:1: error: unknown type name 'Q_FORWARD_DECLARE_CF_TYPE'
    Q_FORWARD_DECLARE_CF_TYPE(CFData);
    ^
    /usr/local/Cellar/qt/5.11.2/include/QtCore/qbytearray.h:61:1: error: unknown type name 'Q_FORWARD_DECLARE_OBJC_CLASS'
    Q_FORWARD_DECLARE_OBJC_CLASS(NSData);
    ^
    /usr/local/Cellar/qt/5.11.2/include/QtCore/qbytearray.h:109:62: error: no type named 'ChecksumType' in namespace 'Qt'
    Q_CORE_EXPORT quint16 qChecksum(const char *s, uint len, Qt::ChecksumType standard); // ### Qt 6: Use Qt::Chec...
                                                             ~~~~^
    /usr/local/Cellar/qt/5.11.2/include/QtCore/qbytearray.h:125:25: error: no member named 'isStatic' in
          'QtPrivate::RefCount'
            Q_ASSERT(ba.ref.isStatic());
                     ~~~~~~ ^
    /usr/local/include/QtCore/qglobal.h:1938:32: note: expanded from macro 'Q_ASSERT'
    #    define Q_ASSERT(cond) ((!(cond)) ? qt_assert(#cond,__FILE__,__LINE__) : qt_noop())
                                   ^~~~
    In file included from qt/test/paymentservertests.cpp:5:
    In file included from ./qt/test/paymentservertests.h:8:
    In file included from ./qt/paymentserver.h:40:
    In file included from ./qt/paymentrequestplus.h:18:
    In file included from /usr/local/Cellar/qt/5.11.2/include/QtCore/QByteArray:1:
    /usr/local/Cellar/qt/5.11.2/include/QtCore/qbytearray.h:170:24: error: expected ';' at end of declaration list
        inline QByteArray() Q_DECL_NOTHROW;
                           ^
                           ;
    /usr/local/Cellar/qt/5.11.2/include/QtCore/qbytearray.h:174:42: error: expected ';' at end of declaration list
        inline QByteArray(const QByteArray &) Q_DECL_NOTHROW;
                                             ^
                                             ;
    /usr/local/Cellar/qt/5.11.2/include/QtCore/qbytearray.h:177:46: error: expected ';' at end of declaration list
        QByteArray &operator=(const QByteArray &) Q_DECL_NOTHROW;
                                                 ^
                                                 ;
    /usr/local/Cellar/qt/5.11.2/include/QtCore/qbytearray.h:180:43: error: expected ';' at end of declaration list
        inline QByteArray(QByteArray && other) Q_DECL_NOTHROW : d(other.d) { other.d = Data::sharedNull(); }
                                              ^
                                              ;
    /usr/local/Cellar/qt/5.11.2/include/QtCore/qbytearray.h:383:34: error: unknown type name 'CFDataRef'
        static QByteArray fromCFData(CFDataRef data);
                                     ^
    fatal error: too many errors emitted, stopping now [-ferror-limit=]
    20 errors generated.
    make[2]: *** [Makefile:9483: qt/test/test_bitcoin_qt-paymentservertests.o] Error 1
    make[2]: *** Waiting for unfinished jobs....
    make[2]: Leaving directory '/Users/Jon/Z/bitcoin/src'
    make[1]: *** [Makefile:10806: all-recursive] Error 1
    make[1]: Leaving directory '/Users/Jon/Z/bitcoin/src'
    make: *** [Makefile:775: all-recursive] Error 1
    

    Qt is installed via Homebrew:

    brew install qt:

    Error: qt 5.11.2 is already installed
    To upgrade to 5.12.0, run `brew upgrade qt`
    

    Ran brew upgrade qt, ran ./configure and make - no luck, same thing.

    Ran brew link qt5 --force, had to brew unlink qt@4 and then brew link qt5 --force - Build successful.

    Segfault on run: ./src/bitcoind -regtest, even after cleaning datadir (??)

    Ran make clean and retried, same thing.

    On master

    Retrying on Ubuntu: Builds and runs fine.

  2. jonasschnelli commented at 8:59 PM on December 9, 2018: contributor

    I think you somehow misconfigured your build setup. If you don't have local changes or any other files, try to clean your working copy (git clean -dxf DANGER).

    You could also paste bin your config.log if it still fails.

  3. fanquake added the label macOS on Dec 9, 2018
  4. ch4ot1c closed this on Dec 10, 2018

  5. DrahtBot locked this on Sep 8, 2021
Labels

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-21 18:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me