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

Incompatible clang flags -ffunction-sections -fdata-sections -fembed-bitcode are passed when building in Archive mode

    XMLWordPrintable

Details

    • iOS/tvOS/watchOS
    • 0844be34ba4b9dea5fb00e03becc2e086e58c0ef (qt/qtbase/5.12)

    Description

      Steps to reproduce:

      1. Create Xcode project by running 

      $QTDIR/5.12.0/ios/bin/qmake project.pro

      2. Open project.xcodeproj in XCode;
      3. Try to build project in "Archive" mode. You will see the following compiler errors:

      CompileC /Users/oleg/Library/Developer/Xcode/DerivedData/project-bfnyjgjpzbcvkyfcmqihwhdbgcim/ArchiveIntermediates/project/IntermediateBuildFilesPath/project.build/Release-iphoneos/project.build/Objects-normal/arm64/gifcreator.o src/gifcreator.cpp normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler
      cd /Users/oleg/Documents/iOS/project
      export LANG=en_US.US-ASCII
      export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
      /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -arch arm64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-c+11-extensions -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -miphoneos-version-min=11.0 -g -fvisibility=hidden -fvisibility-inlines-hidden -Wno-sign-conversion -Wno-infinite-recursion -Wno-move -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-range-loop-analysis -Wno-semicolon-before-method-body -fembed-bitcode -I/Users/oleg/Library/Developer/Xcode/DerivedData/project-bfnyjgjpzbcvkyfcmqihwhdbgcim/ArchiveIntermediates/project/IntermediateBuildFilesPath/project.build/Release-iphoneos/project.build/project.hmap -I/Users/oleg/Documents/iOS/project/Release-iphoneos/include -I. -I../../../Qt/5.12.0/ios/mkspecs/common/uikit -Iios/frameworks -I../../../Qt/5.12.0/ios/include -I../../../Qt/5.12.0/ios/include/QtQuickControls2 -I../../../Qt/5.12.0/ios/include/QtQuick -I../../../Qt/5.12.0/ios/include/QtMultimedia -I../../../Qt/5.12.0/ios/include/QtGui -I../../../Qt/5.12.0/ios/include/QtQml -I../../../Qt/5.12.0/ios/include/QtNetwork -I../../../Qt/5.12.0/ios/include/QtSql -I../../../Qt/5.12.0/ios/include/QtPurchasing -I../../../Qt/5.12.0/ios/include/QtCore -I../../../Qt/5.12.0/ios/mkspecs/macx-ios-clang -I/Users/oleg/Library/Developer/Xcode/DerivedData/project-bfnyjgjpzbcvkyfcmqihwhdbgcim/ArchiveIntermediates/project/IntermediateBuildFilesPath/project.build/Release-iphoneos/project.build/DerivedSources/arm64 -I/Users/oleg/Library/Developer/Xcode/DerivedData/project-bfnyjgjpzbcvkyfcmqihwhdbgcim/ArchiveIntermediates/project/IntermediateBuildFilesPath/project.build/Release-iphoneos/project.build/DerivedSources -F/Users/oleg/Documents/iOS/project/Release-iphoneos -F/Users/oleg/Documents/iOS/project/ios/frameworks -pipe -stdlib=libc+ -g -std=gnu++11 -fobjc-nonfragile-abi -fobjc-legacy-dispatch -Wall -W -ffunction-sections -fdata-sections -fPIC -DQT_COMPILER_SUPPORTS_SSE2 -DQT_DEPRECATED_WARNINGS -DQT_QUICKCONTROLS2_LIB -DQT_QUICK_LIB -DQT_MULTIMEDIA_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_SQL_LIB -DQT_PURCHASING_LIB -DQT_CORE_LIB -MMD -MT dependencies -MF /Users/oleg/Library/Developer/Xcode/DerivedData/project-bfnyjgjpzbcvkyfcmqihwhdbgcim/ArchiveIntermediates/project/IntermediateBuildFilesPath/project.build/Release-iphoneos/project.build/Objects-normal/arm64/gifcreator.d --serialize-diagnostics /Users/oleg/Library/Developer/Xcode/DerivedData/project-bfnyjgjpzbcvkyfcmqihwhdbgcim/ArchiveIntermediates/project/IntermediateBuildFilesPath/project.build/Release-iphoneos/project.build/Objects-normal/arm64/gifcreator.dia -c /Users/oleg/Documents/iOS/project/src/gifcreator.cpp -o /Users/oleg/Library/Developer/Xcode/DerivedData/project-bfnyjgjpzbcvkyfcmqihwhdbgcim/ArchiveIntermediates/project/IntermediateBuildFilesPath/project.build/Release-iphoneos/project.build/Objects-normal/arm64/gifcreator.o

      clang: error: -ffunction-sections is not supported with -fembed-bitcode
      clang: error: -fdata-sections is not supported with -fembed-bitcode

      Attachments

        1. project.zip
          2 kB
          Oleg Derevenetz
        2. Screen Shot 2019-08-23 at 11.51.47 AM.png
          20 kB
          Jason Hihn

        Issue Links

          For Gerrit Dashboard: QTBUG-73680
          # Subject Branch Project Status CR V

          Activity

            People

              vestbo Tor Arne Vestbø
              oleg_derevenetz Oleg Derevenetz
              Votes:
              3 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes