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

Cannot compile applications for iOS device

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.6.0 Beta
    • Fix Version/s: 5.6.0 RC
    • Component/s: QPA
    • Labels:
      None
    • Environment:
      OS X 10.11, Xcode 7.2, iOS SDK 9.2
      Qt 5.6.0 beta build 225
    • Platform/s:
      iOS/tvOS/watchOS

      Description

      Compilation of any iOS application for device fails:

      Ld untitled.build/Debug-iphoneos/untitled.build/Objects-normal/arm64/untitled normal arm64
          cd /Users/ziller/build-untitled-iphoneos_clang_Qt_5_6_0_for_iOS-Debug
          export IPHONEOS_DEPLOYMENT_TARGET=6.0
          export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/Users/ziller/git/qt/5.6/build/qtbase/bin:/Users/ziller/git/qt/5.6/build/qtbase/tools/qdoc3:/Users/ziller/git/qt/5.6/src/qtbase/../qtrepotools/bin:/Users/ziller/git/devtools/shell:/Users/ziller/bin:/usr/local/bin:/usr/local/git/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin"
          /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk -L/Users/ziller/build-untitled-iphoneos_clang_Qt_5_6_0_for_iOS-Debug/Debug-iphoneos -L/Users/ziller/Qt5.6.0-test/5.6/ios/plugins/platforms -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks -L/Users/ziller/Qt5.6.0-test/5.6/ios/lib -L/Users/ziller/Qt5.6.0-test/5.6/ios/plugins/imageformats -F/Users/ziller/build-untitled-iphoneos_clang_Qt_5_6_0_for_iOS-Debug/Debug-iphoneos -filelist /Users/ziller/build-untitled-iphoneos_clang_Qt_5_6_0_for_iOS-Debug/untitled.build/Debug-iphoneos/untitled.build/Objects-normal/arm64/untitled.LinkFileList -miphoneos-version-min=6.0 -dead_strip -headerpad_max_install_names -stdlib=libc++ -u _qt_registerPlatformPlugin -Wl,-e,_qt_main_wrapper -L/Users/ziller/Qt5.6.0-test/5.6/ios/plugins/platforms -framework UIKit -framework AssetsLibrary -L/Users/ziller/Qt5.6.0-test/5.6/ios/lib -framework MobileCoreServices -framework OpenGLES -L/Users/ziller/Qt5.6.0-test/5.6/ios/plugins/imageformats -lz -lm -lqios_debug -framework Foundation -framework QuartzCore -framework CoreFoundation -framework CoreText -framework CoreGraphics -lQt5PlatformSupport_debug -lQt5DBus_debug -lqtfreetype_debug -lQt5Widgets_debug -lqdds_debug -lqicns_debug -lqico_debug -lqtga_debug -lqtiff_debug -lqwbmp_debug -lqwebp_debug -lQt5Gui_debug -lqtharfbuzzng_debug -lQt5Core_debug -lqtpcre_debug -Xlinker -dependency_info -Xlinker /Users/ziller/build-untitled-iphoneos_clang_Qt_5_6_0_for_iOS-Debug/untitled.build/Debug-iphoneos/untitled.build/Objects-normal/arm64/untitled_dependency_info.dat -o /Users/ziller/build-untitled-iphoneos_clang_Qt_5_6_0_for_iOS-Debug/untitled.build/Debug-iphoneos/untitled.build/Objects-normal/arm64/untitled
      Undefined symbols for architecture arm64:
        "qt_memfill32(unsigned int*, unsigned int, int)", referenced from:
            void qt_memfill<unsigned int>(unsigned int*, unsigned int, int) in libQt5Gui_debug.a(qimage.o)
            void qt_memfill<unsigned int>(unsigned int*, unsigned int, int) in libQt5Gui_debug.a(qdrawhelper.o)
            GradientBase32::memfill(unsigned int*, unsigned int, int) in libQt5Gui_debug.a(qdrawhelper.o)
            void qt_memfill<unsigned int>(unsigned int*, unsigned int, int) in libQt5Gui_debug.a(qcompositionfunctions.o)
      ld: symbol(s) not found for architecture arm64
      clang: error: linker command failed with exit code 1 (use -v to see invocation)
      
      Ld untitled.build/Debug-iphoneos/untitled.build/Objects-normal/armv7/untitled normal armv7
          cd /Users/ziller/build-untitled-iphoneos_clang_Qt_5_6_0_for_iOS-Debug
          export IPHONEOS_DEPLOYMENT_TARGET=6.0
          export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:/Users/ziller/git/qt/5.6/build/qtbase/bin:/Users/ziller/git/qt/5.6/build/qtbase/tools/qdoc3:/Users/ziller/git/qt/5.6/src/qtbase/../qtrepotools/bin:/Users/ziller/git/devtools/shell:/Users/ziller/bin:/usr/local/bin:/usr/local/git/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin"
          /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk -L/Users/ziller/build-untitled-iphoneos_clang_Qt_5_6_0_for_iOS-Debug/Debug-iphoneos -L/Users/ziller/Qt5.6.0-test/5.6/ios/plugins/platforms -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks -L/Users/ziller/Qt5.6.0-test/5.6/ios/lib -L/Users/ziller/Qt5.6.0-test/5.6/ios/plugins/imageformats -F/Users/ziller/build-untitled-iphoneos_clang_Qt_5_6_0_for_iOS-Debug/Debug-iphoneos -filelist /Users/ziller/build-untitled-iphoneos_clang_Qt_5_6_0_for_iOS-Debug/untitled.build/Debug-iphoneos/untitled.build/Objects-normal/armv7/untitled.LinkFileList -miphoneos-version-min=6.0 -dead_strip -headerpad_max_install_names -stdlib=libc++ -u _qt_registerPlatformPlugin -Wl,-e,_qt_main_wrapper -L/Users/ziller/Qt5.6.0-test/5.6/ios/plugins/platforms -framework UIKit -framework AssetsLibrary -L/Users/ziller/Qt5.6.0-test/5.6/ios/lib -framework MobileCoreServices -framework OpenGLES -L/Users/ziller/Qt5.6.0-test/5.6/ios/plugins/imageformats -lz -lm -lqios_debug -framework Foundation -framework QuartzCore -framework CoreFoundation -framework CoreText -framework CoreGraphics -lQt5PlatformSupport_debug -lQt5DBus_debug -lqtfreetype_debug -lQt5Widgets_debug -lqdds_debug -lqicns_debug -lqico_debug -lqtga_debug -lqtiff_debug -lqwbmp_debug -lqwebp_debug -lQt5Gui_debug -lqtharfbuzzng_debug -lQt5Core_debug -lqtpcre_debug -Xlinker -dependency_info -Xlinker /Users/ziller/build-untitled-iphoneos_clang_Qt_5_6_0_for_iOS-Debug/untitled.build/Debug-iphoneos/untitled.build/Objects-normal/armv7/untitled_dependency_info.dat -o /Users/ziller/build-untitled-iphoneos_clang_Qt_5_6_0_for_iOS-Debug/untitled.build/Debug-iphoneos/untitled.build/Objects-normal/armv7/untitled
      Undefined symbols for architecture armv7:
        "qt_memfill32(unsigned int*, unsigned int, int)", referenced from:
            void qt_memfill<unsigned int>(unsigned int*, unsigned int, int) in libQt5Gui_debug.a(qimage.o)
            void qt_memfill<unsigned int>(unsigned int*, unsigned int, int) in libQt5Gui_debug.a(qdrawhelper.o)
            GradientBase32::memfill(unsigned int*, unsigned int, int) in libQt5Gui_debug.a(qdrawhelper.o)
            void qt_memfill<unsigned int>(unsigned int*, unsigned int, int) in libQt5Gui_debug.a(qcompositionfunctions.o)
      
      ** BUILD FAILED **
      
      
      The following build commands failed:
      	Ld untitled.build/Debug-iphoneos/untitled.build/Objects-normal/arm64/untitled normal arm64
      (1 failure)
      make: *** [xcodebuild-debug-iphoneos] Error 65
      15:43:08: The process "/usr/bin/make" exited with code 2.
      Error while building/deploying project untitled (kit: iphoneos-clang Qt 5.6.0 for iOS)
      When executing step "Make"
      

      Worked when I tested build 220. (Though I think there was an Xcode update in between.)

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              vestbo Tor Arne Vestbø
              Reporter:
              con Eike Ziller
              Votes:
              4 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes