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

Building QSharedMemory fails when bootstrapping

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 6.2.2, 6.3.0 Alpha
    • Fix Version/s: 6.3.0 Beta1, 6.4.0 Beta1
    • Component/s: Core: Other
    • Labels:
      None
    • Platform/s:
      iOS/tvOS/watchOS, macOS
    • Commits:
      75082c9f20 (qt/qtbase/dev) 75082c9f20 (qt/tqtc-qtbase/dev) 92d6f74cfd (qt/qtbase/6.3) 92d6f74cfd (qt/tqtc-qtbase/6.3) 29e474bb5c (qt/qtbase/6.2) 29e474bb5c (qt/tqtc-qtbase/6.2)

      Description

      Bootstrap building fails when ipc_posix is enabled at QSharedMemory because QT_NO_CAST_FROM_ASCII is defined:

      FAILED: src/tools/bootstrap/CMakeFiles/Bootstrap.dir/_/_/corelib/kernel/qsharedmemory.cpp.o
      /usr/bin/clang++ -DGL_SILENCE_DEPRECATION -DHAVE_CONFIG_H -DPCRE2_CODE_UNIT_WIDTH=16 -DPCRE2_DISABLE_JIT -DQT_BOOTSTRAPPED -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_NO_FOREACH -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_STRICT_QLIST_ITERATORS -DQT_TYPESAFE_FLAGS -DQT_USE_QSTRINGBUILDER -DQT_VERSION_MAJOR=6 -DQT_VERSION_MINOR=3 -DQT_VERSION_PATCH=0 -DQT_VERSION_STR=\"6.3.0\" -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/Users/qt/work/qt/qtbase/src/corelib/Core_autogen/include -I/Users/qt/work/qt/qtbase/include -I/Users/qt/work/qt/qtbase/include/QtCore -I/Users/qt/work/qt/qtbase/lib/QtCore.framework/Headers -I/Users/qt/work/qt/qtbase/src/corelib -I/Users/qt/work/qt/qtbase/src/corelib/global -I/Users/qt/work/qt/qtbase/src/corelib/kernel -I/Users/qt/work/qt/qtbase/src/corelib/../3rdparty/tinycbor/src -I/Users/qt/work/qt/qtbase/include/QtCore/6.3.0 -I/Users/qt/work/qt/qtbase/include/QtCore/6.3.0/QtCore -I/Users/qt/work/qt/qtbase/src/corelib/../3rdparty/double-conversion/double-conversion -I/Users/qt/work/qt/qtbase/src/corelib/../3rdparty/double-conversion -I/Users/qt/work/qt/qtbase/src/corelib/../3rdparty/forkfd -I/Users/qt/work/qt/qtbase/src/corelib/.rcc -I/Users/qt/work/qt/qtbase/mkspecs/macx-clang -I/Users/qt/work/qt/qtbase/src/3rdparty/pcre2/src -I/Users/qt/work/qt/qtbase/src/xml/Xml_autogen/include -I/Users/qt/work/qt/qtbase/include/QtXml -I/Users/qt/work/qt/qtbase/lib/QtXml.framework/Headers -I/Users/qt/work/qt/qtbase/src/xml -I/Users/qt/work/qt/qtbase/include/QtXml/6.3.0 -I/Users/qt/work/qt/qtbase/include/QtXml/6.3.0/QtXml -I/Users/qt/work/qt/qtbase/src/tools/bootstrap/.. -I/Users/qt/work/qt/qtbase/src/tools/bootstrap/../../3rdparty/tinycbor/src -I/Users/qt/work/qt/qtbase/src/tools/bootstrap/../../3rdparty/pcre2/src -g -DNDEBUG -O2 -arch arm64 -isysroot /Applications/Xcode13.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -mmacosx-version-min=10.14 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -ffunction-sections -fdata-sections -std=gnu++17 -MD -MT src/tools/bootstrap/CMakeFiles/Bootstrap.dir/_//corelib/kernel/qsharedmemory.cpp.o -MF src/tools/bootstrap/CMakeFiles/Bootstrap.dir///corelib/kernel/qsharedmemory.cpp.o.d -o src/tools/bootstrap/CMakeFiles/Bootstrap.dir//_/corelib/kernel/qsharedmemory.cpp.o -c /Users/qt/work/qt/qtbase/src/corelib/kernel/qsharedmemory.cpp
      In file included from /Users/qt/work/qt/qtbase/src/corelib/kernel/qsharedmemory.cpp:40:
      In file included from /Users/qt/work/qt/qtbase/src/corelib/kernel/qsharedmemory.h:49:
      In file included from /Users/qt/work/qt/qtbase/include/QtCore/qstring.h:1:
      In file included from /Users/qt/work/qt/qtbase/include/QtCore/../../src/corelib/text/qstring.h:1597:
      In file included from /Users/qt/work/qt/qtbase/include/QtCore/qstringbuilder.h:1:
      /Users/qt/work/qt/qtbase/include/QtCore/../../src/corelib/text/qstringbuilder.h:424:41: error: non-const lvalue reference to type 'char *' cannot bind to a value of unrelated type 'QChar *'

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              jbornema Joerg Bornemann
              Reporter:
              papetaja Pasi Petäjäjärvi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes