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

iOS: PCH files built with unused SSE2 argument

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 6.x
    • Fix Version/s: None
    • Component/s: Build System: CMake
    • Labels:
      None
    • Platform/s:
      iOS/tvOS/watchOS

      Description

      By default we build with warnings are errors, meaning this breaks the build out of the box on iOS

      ❯  /usr/bin/clang++ -DGLES_SILENCE_DEPRECATION -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_CONCURRENT_LIB -DQT_COMPILER_SUPPORTS_SSE2 -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_MOC_COMPAT -DQT_NO_CAST_TO_ASCII -DQT_NO_FOREACH -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_USING_NAMESPACE -DQT_STRICT_QLIST_ITERATORS -DQT_USE_QSTRINGBUILDER -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/Users/torarne/build/qt/6.x-ios/qtbase/src/concurrent/Concurrent_autogen/include -I/Users/torarne/build/qt/6.x-ios/qtbase/include -I/Users/torarne/build/qt/6.x-ios/qtbase/include/QtConcurrent -I/Users/torarne/dev/qt/qtbase/src/concurrent -I/Users/torarne/build/qt/6.x-ios/qtbase/src/concurrent -I/Users/torarne/build/qt/6.x-ios/qtbase/include/QtCore -I/Users/torarne/build/qt/6.x-ios/qtbase/mkspecs/macx-ios-clang -I/Users/torarne/build/qt/6.x-ios/qtbase/src/corelib -I/Users/torarne/build/qt/6.x-ios/qtbase/include/QtCore/6.3.0 -I/Users/torarne/build/qt/6.x-ios/qtbase/include/QtCore/6.3.0/QtCore -fcolor-diagnostics -g -arch arm64 -Xarch_arm64 -isysroot/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk -miphoneos-version-min=13.0 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -msse2 -fapplication-extension -fembed-bitcode-marker -std=c++17 -Winvalid-pch -Xclang -emit-pch -Xclang -include -Xclang /Users/torarne/build/qt/6.x-ios/qtbase/src/concurrent/CMakeFiles/Concurrent.dir/cmake_pch_arm64.hxx -x c++-header -MD -MT qtbase/src/concurrent/CMakeFiles/Concurrent.dir/cmake_pch_arm64.hxx.pch -MF q
      tbase/src/concurrent/CMakeFiles/Concurrent.dir/cmake_pch_arm64.hxx.pch.d -o qtbase/src/concurrent/CMakeFiles/Concurrent.dir/cmake_pch_arm64.hxx.pch -c /Users/torarne/build/qt/6.x-ios/qtbase/src/concurrent/CMakeFiles/Concurrent.dir/cmake_pch_arm64.hxx.cxx
      clang: warning: argument unused during compilation: '-msse2' [-Wunused-command-line-argument]
      

      Wrapping in a -Xarch_x86_64 did not help: https://codereview.qt-project.org/c/qt/qtbase/+/386690

      Need to exclude the -sse2 argument completey, or alternatively disable the warning for the PCHs

        Attachments

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

          Activity

            People

            Assignee:
            qtbuildsystem Qt Build System Team
            Reporter:
            vestbo Tor Arne Vestbø
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes