Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-34842

OS X build fails while compiling JavaScriptCore

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.2.0 RC1
    • 5.1.1, 5.2.0 Beta1 , 5.2.0
    • Qt Script
    • macOS
    • 15bb30b0e90c628cc3812627923d1d459d461505 a2da34be8426b41047f895a3e8463d58baf3b576

    Description

      Building stock Qt 5.1.1, from Git stable branch.

      git clone git://gitorious.org/qt/qt5.git qt5
      cd qt5
      git checkout stable
      perl init-repository --no-webkit
      ./configure -static -opensource -nomake examples -nomake tests -prefix `pwd`/qtbase -debug-and-release -confirm-license -no-javascript-jit
      make -j4
      

      Fails with:

      In file included from ../3rdparty/javascriptcore/JavaScriptCore/runtime/UString.h:27:
      ../3rdparty/javascriptcore/JavaScriptCore/runtime/UStringImpl.h:82:20: warning: comparison of constant 9223372036854775791 with expression of type 'unsigned int' is always false
            [-Wtautological-constant-out-of-range-compare]
      27:
      ../3rdparty/javascriptcore/JavaScriptCore/runtime/UStringImpl.h        if (length > ((std::numeric_limits<size_t>::max() - sizeof(UStringImpl)) / sizeof(UChar)))
                  ~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      :82:20:../3rdparty/javascriptcore/JavaScriptCore/runtime/UStringImpl.h:96:20: warning: comparison of constant 9223372036854775791 with expression of type 'unsigned int' is always false
            [-Wtautological-constant-out-of-range-compare]
              if (length > ((std::numeric_limits<size_t>::max() - sizeof(UStringImpl)) / sizeof(UChar)))
                  ~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       warning: comparison of constant 9223372036854775791 with expression of type 'unsigned int' is always false
            [-Wtautological-constant-out-of-range-compare]
              if (length > ((std::numeric_limits<size_t>::max() - sizeof(UStringImpl)) / sizeof(UChar)))
                  ~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      ../3rdparty/javascriptcore/JavaScriptCore/runtime/UStringImpl.h:96:20: warning: comparison of constant 9223372036854775791 with expression of type 'unsigned int' is always false
            [-Wtautological-constant-out-of-range-compare]
              if (length > ((std::numeric_limits<size_t>::max() - sizeof(UStringImpl)) / sizeof(UChar)))
                  ~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      In file included from ../3rdparty/javascriptcore/JavaScriptCore/API/JSBase.cpp:30:
      In file included from ../3rdparty/javascriptcore/JavaScriptCore/API/APICast.h:29:
      In file included from ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSAPIValueWrapper.h:28:
      In file included from ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSCell.h:30:
      ../3rdparty/javascriptcore/JavaScriptCore/runtime/Structure.h:320:117: error: non-const reference cannot bind to bit-field 'm_attributesInPrevious'
                  add(StructureTransitionTableHash::Key(RefPtr<UString::Rep>(existingTransition->m_nameInPrevious.get()), existingTransition->m_attributesInPrevious), existingTr...
                                                                                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      ../3rdparty/javascriptcore/JavaScriptCore/runtime/Structure.h:219:18: note: bit-field is declared here
              unsigned m_attributesInPrevious : 7;
                       ^
      In file included from ../3rdparty/javascriptcore/JavaScriptCore/API/JSCallbackConstructor.cpp:27:
      In file included from ../3rdparty/javascriptcore/JavaScriptCore/API/JSCallbackConstructor.h:30:
      In file included from ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSObject.h:30:
      In file included from ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSCell.h:30:
      ../3rdparty/javascriptcore/JavaScriptCore/runtime/Structure.h:320:117: error: non-const reference cannot bind to bit-field 'm_attributesInPrevious'
                  add(StructureTransitionTableHash::Key(RefPtr<UString::Rep>(existingTransition->m_nameInPrevious.get()), existingTransition->m_attributesInPrevious), existingTr...
                                                                                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      ../3rdparty/javascriptcore/JavaScriptCore/runtime/Structure.h:219:18: note: bit-field is declared here
              unsigned m_attributesInPrevious : 7;
                       ^
      2 warnings and 1 error generated.
      2 warnings and 1 error generated.
      make[4]: *** [obj/release/release/JSCallbackConstructor.o] Error 1
      make[4]: *** Waiting for unfinished jobs....
      make[4]: *** [obj/release/release/JSBase.o] Error 1
      make[3]: *** [release-all] Error 2
      make[2]: *** [sub-script-make_first-ordered] Error 2
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            erikv Erik Verbruggen
            samangh Saman G.
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes