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

Can't build Qt with Xcode 15

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • 5.15.11
    • Build System
    • None
    • Xcode 15, x64, arm64, macOS 14
    • macOS

    Description

      I'm having constant problem building QtWebEngine using the latest version of clang. I have applied necessary patches for qmake. The actual error is really confusing, because somehow MacosSDK header misses its own include. I haven't found anything similar to this issue and currently out of ideas.

      /Volumes/Transcend/conan2-build/b/qtf65e73536cd0e/b/qt5/qtbase/configure -top-level -shared -confirm-license -nomake examples -nomake tests -qt-harfbuzz -prefix /Volumes/Transcend/conan2-build/b/qtf65e73536cd0e/p -system-webp -qt-freetype -silent -pkg-config -webengine-jumbo-build 0 -v -opensource -release -skip qtscript -skip qtxmlpatterns -skip qttranslations -skip qtdoc -skip qtsensors -skip qtconnectivity -skip qtwayland -skip qt3d -skip qtserialbus -skip qtserialport -skip qtwebsockets -skip qtwebview -skip qtpurchasing -skip qtcharts -skip qtdatavis3d -skip qtvirtualkeyboard -skip qtgamepad -skip qtscxml -skip qtspeech -skip qtnetworkauth -skip qtremoteobjects -skip qtwebglplugin -skip qtlottie -skip qtquicktimeline -skip qtquick3d --zlib=system -opengl desktop -no-vulkan -openssl-runtime --glib=no --pcre=qt --fontconfig=no --icu=no --sql-mysql=no --sql-psql=no --sql-odbc=no --zstd=no --alsa=no --no-gstreamer --no-pulseaudio -webengine-proprietary-codecs -no-feature-gssapi -system-libjpeg -system-libpng ZLIB_LIBS=-lz OPENSSL_LIBS=-lssl -lcrypto LIBJPEG_LIBS=-lturbojpeg -ljpeg LIBPNG_LIBS=-lpng -lz WEBP_LIBS=-lwebpmux -lwebpdemux -lwebp -lsharpyuv -lwebpdecoder WEBENGINE_JPEGLIB_LIBS=-lturbojpeg -ljpeg -I /Volumes/Transcend/conan2-build/b/opens3467c594cfba3/p/include -L /Volumes/Transcend/conan2-build/b/opens3467c594cfba3/p/lib -I /Volumes/Transcend/conan2-build/b/jpeg-b385a17f37c2c/p/include -L /Volumes/Transcend/conan2-build/b/jpeg-b385a17f37c2c/p/lib -I /Volumes/Transcend/conan2-build/b/libwe2b814954e0012/p/include -L /Volumes/Transcend/conan2-build/b/libwe2b814954e0012/p/lib -I /Volumes/Transcend/conan2-build/b/pngbea174a6d9a7e/p/include -L /Volumes/Transcend/conan2-build/b/pngbea174a6d9a7e/p/lib -I /Volumes/Transcend/conan2-build/b/zlibf6cfe69e46d86/p/include -L /Volumes/Transcend/conan2-build/b/zlibf6cfe69e46d86/p/lib QMAKE_LIBDIR+=/Volumes/Transcend/conan2-build/b/opens3467c594cfba3/p/lib /Volumes/Transcend/conan2-build/b/jpeg-b385a17f37c2c/p/lib /Volumes/Transcend/conan2-build/b/libwe2b814954e0012/p/lib /Volumes/Transcend/conan2-build/b/pngbea174a6d9a7e/p/lib /Volumes/Transcend/conan2-build/b/zlibf6cfe69e46d86/p/lib -platform macx-clang QMAKE_LFLAGS+=-ld_classic
      
      [2023-11-10T19:39:40.607Z] [18262/32774] CXX obj/services/network/network_service/socket_tcp.o
      [2023-11-10T19:39:40.607Z] FAILED: obj/services/network/network_service/socket_tcp.o 
      [2023-11-10T19:39:40.607Z] ../../../../../../../../../../../Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -MMD -MF obj/services/network/network_service/socket_tcp.o.d -DIS_NETWORK_SERVICE_IMPL -DOFFICIAL_BUILD -DTOOLKIT_QT -D_LIBCPP_HAS_NO_ALIGNED_ALLOCATION -DCR_XCODE_VERSION=1501 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES=0 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DWEBP_EXTERN=extern -DGOOGLE_PROTOBUF_NO_RTTI -DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER -DHAVE_PTHREAD -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUSE_CHROMIUM_ICU=1 -DU_ENABLE_TRACING=1 -DU_ENABLE_RESOURCE_TRACING=0 -DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -DUCHAR_TYPE=uint16_t -DWEBRTC_ENABLE_AVX2 -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DWEBRTC_CHROMIUM_BUILD -DWEBRTC_POSIX -DWEBRTC_MAC -DABSL_ALLOCATOR_NOTHROW=1 -DWEBRTC_USE_BUILTIN_ISAC_FIX=0 -DWEBRTC_USE_BUILTIN_ISAC_FLOAT=1 -DHAVE_SCTP -DNO_MAIN_THREAD_WRAPPING -Igen -I../../../../../qt5/qtwebengine/src/3rdparty/chromium -I../../../../../qt5/qtwebengine/src/3rdparty/chromium/third_party/perfetto/include -Igen/third_party/perfetto/build_config -Igen/third_party/perfetto -I../../../../../qt5/qtwebengine/src/3rdparty/chromium/third_party/libyuv/include -I../../../../../qt5/qtwebengine/src/3rdparty/chromium/third_party/jsoncpp/source/include -I../../../../../qt5/qtwebengine/src/3rdparty/chromium/third_party/libwebp/src -I../../../../../qt5/qtwebengine/src/3rdparty/chromium/third_party/abseil-cpp -I../../../../../qt5/qtwebengine/src/3rdparty/chromium/third_party/boringssl/src/include -I../../../../../qt5/qtwebengine/src/3rdparty/chromium/third_party/protobuf/src -Igen/protoc_out -I../../../../../qt5/qtwebengine/src/3rdparty/chromium/third_party/protobuf/src -I../../../../../qt5/qtwebengine/src/3rdparty/chromium/third_party/ced/src -I../../../../../qt5/qtwebengine/src/3rdparty/chromium/third_party/icu/source/common -I../../../../../qt5/qtwebengine/src/3rdparty/chromium/third_party/icu/source/i18n -I../../../../../qt5/qtwebengine/src/3rdparty/chromium/third_party/webrtc_overrides -I../../../../../qt5/qtwebengine/src/3rdparty/chromium/third_party/webrtc -Igen/third_party/webrtc -fno-strict-aliasing -fstack-protector -Wno-unknown-attributes -Wno-unknown-pragmas -Wno-unknown-warning-option -fcolor-diagnostics -fmerge-all-constants -arch x86_64 -Wall -Wextra -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wimplicit-fallthrough -Wunreachable-code -Wthread-safety -Wextra-semi -Wunguarded-availability -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-psabi -Wno-ignored-pragma-optimize -Wno-implicit-int-float-conversion -Wno-final-dtor-non-final-class -Wno-builtin-assume-aligned-alignment -Wno-deprecated-copy -Wno-non-c-typedef-for-linkage -Wno-max-tokens -O2 -fno-omit-frame-pointer -g0 -isysroot ../../../../../../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk -mmacosx-version-min=10.13 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wexit-time-destructors -Wno-shorten-64-to-32 -Wno-parentheses-equality -Wno-tautological-compare -Wno-thread-safety-attributes -Wno-undefined-bool-conversion -Wno-tautological-undefined-compare -std=c++14 -fno-trigraphs -Wno-trigraphs -stdlib=libc++ -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -Wno-deprecated-declarations -c ../../../../../qt5/qtwebengine/src/3rdparty/chromium/services/network/p2p/socket_tcp.cc -o obj/services/network/network_service/socket_tcp.o
      [2023-11-10T19:39:40.607Z] In file included from ../../../../../qt5/qtwebengine/src/3rdparty/chromium/services/network/p2p/socket_tcp.cc:5:
      [2023-11-10T19:39:40.607Z] In file included from ../../../../../qt5/qtwebengine/src/3rdparty/chromium/services/network/p2p/socket_tcp.h:10:
      [2023-11-10T19:39:40.607Z] In file included from ../../../../../../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/memory:884:
      [2023-11-10T19:39:40.607Z] In file included from ../../../../../../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/__memory/allocate_at_least.h:13:
      [2023-11-10T19:39:40.607Z] In file included from ../../../../../../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/__memory/allocator_traits.h:14:
      [2023-11-10T19:39:40.607Z] In file included from ../../../../../../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/__memory/construct_at.h:23:
      [2023-11-10T19:39:40.607Z] In file included from ../../../../../../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/new:96:
      [2023-11-10T19:39:40.607Z] In file included from ../../../../../../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/cstdlib:87:
      [2023-11-10T19:39:40.607Z] In file included from ../../../../../../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/stdlib.h:94:
      [2023-11-10T19:39:40.607Z] ../../../../../../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/stdlib.h:66:10: fatal error: 'sys/wait.h' file not found
      [2023-11-10T19:39:40.607Z] #include <sys/wait.h>
      [2023-11-10T19:39:40.607Z]          ^~~~~~~~~~~~
      [2023-11-10T19:39:40.607Z] 1 error generated.
      

      If I run the same compilation command myself, it passes for some reason. So may be it can be connected to some ninja issue. Full build log attached.

      UPD: Got the same thing in non-WebEngine part. So it is just randomly appear somewhere or not.

      [2023-11-23T14:21:31.086Z] /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/memory:920:12: fatal error: 'concepts' file not found
      [2023-11-23T14:21:31.086Z] # include <concepts>
      [2023-11-23T14:21:31.086Z] ^~~~~~~~~~
      [2023-11-23T14:21:31.086Z] In file included from .moc/moc_fontpanel.cpp:9:
      [2023-11-23T14:21:31.086Z] In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/memory:903:
      [2023-11-23T14:21:31.086Z] In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/__memory/uses_allocator_construction.h:20:
      [2023-11-23T14:21:31.086Z] /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/tuple:1860:12: fatal error: 'utility' file not found
      [2023-11-23T14:21:31.086Z] # include <utility>
      [2023-11-23T14:21:31.086Z] ^~~~~~~~~

      Attachments

        1. mac-arm64-fail.log.zip
          3.71 MB
          Max Bespalov
        2. mac-arm64-success.log.zip
          6.15 MB
          Max Bespalov
        3. qt.log.zip
          2.68 MB
          Max Bespalov
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt_webengine_team Qt WebEngine Team
            mabean Max Bespalov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes