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

Qt5.6 iOS link fails - Undefined symbols for architecture arm64 / armv7

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.6.0 Beta, 5.6.0 RC
    • QPA
    • None
    • OSX 10.11.3 with Xcode 7.2.1; latest Qt 5.6.0 from Git; iPad with iOS 9 and iOS 8
    • iOS/tvOS/watchOS

    Description

      Hi all,

      I do have a problem compiling my (big) project with Qt 5.6.0 Beta and with Qt 5.6.0 RC latest (compiled from Git):

      • Undefined symbols for architecture arm64
      • Undefined symbols for architecture armv7

      The same code and configuration work fine with Qt 5.5.0 and 5.5.1.
      The code also works when compiled for OSX Clang with Qt 5.6.0 (both Beta and RC)
      Compiling for iOS Simulator with Qt5.6.0 fails with the same error.

      Summary:
      Qt 5.5.0 and Qt 5.5.1:

      • OSX Clang OK
      • IOS target OK
      • iOS Simulator OK

      Qt 5.6.0 Beta and Qt 5.6.0 RC:

      • OSX Clang OK
      • IOS target linker fail
      • iOS Simulator linker fail

      Link error:

      Ld VisualCycle.build/Release-iphoneos/VisualCycle.build/Objects-normal/arm64/VisualCycle normal arm64
          cd /Volumes/QtCreatorRamDisk/build-VisualCycle-iphoneos_clang_Qt_5_6_0_Qt5_6_0_OwnCompilation-Release
          export IPHONEOS_DEPLOYMENT_TARGET=8.1
          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:/usr/bin:/bin:/usr/sbin:/sbin"
          /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/Volumes/QtCreatorRamDisk/build-VisualCycle-iphoneos_clang_Qt_5_6_0_Qt5_6_0_OwnCompilation-Release/Release-iphoneos -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/plugins/platforms -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/lib -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtQuick.2 -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtQml/Models.2 -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtQuick/Controls -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtQuick/Layouts -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtQuick/Window.2 -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/Qt/labs/settings -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtQuick/Dialogs -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/Qt/labs/folderlistmodel -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtQuick/Dialogs/Private -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtQml/StateMachine -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtWebView -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtQuick/Extras -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtGraphicalEffects/private -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/plugins/iconengines -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/plugins/imageformats -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/plugins/qmltooling -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/plugins/bearer -F/Volumes/QtCreatorRamDisk/build-VisualCycle-iphoneos_clang_Qt_5_6_0_Qt5_6_0_OwnCompilation-Release/Release-iphoneos -filelist /Volumes/QtCreatorRamDisk/build-VisualCycle-iphoneos_clang_Qt_5_6_0_Qt5_6_0_OwnCompilation-Release/VisualCycle.build/Release-iphoneos/VisualCycle.build/Objects-normal/arm64/VisualCycle.LinkFileList -miphoneos-version-min=8.1 -dead_strip -headerpad_max_install_names -stdlib=libc++ -O3 -u _qt_registerPlatformPlugin -Wl,-e,_qt_main_wrapper -dead_strip -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/plugins/platforms -framework UIKit -framework AssetsLibrary -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/lib -framework MobileCoreServices -framework OpenGLES -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtQuick.2 -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtQml/Models.2 -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtQuick/Controls -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtQuick/Layouts -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtQuick/Window.2 -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/Qt/labs/settings -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtQuick/Dialogs -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/Qt/labs/folderlistmodel -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtQuick/Dialogs/Private -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtQml/StateMachine -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtWebView -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtQuick/Extras -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtGraphicalEffects/private -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/plugins/iconengines -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/plugins/imageformats -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/plugins/qmltooling -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/plugins/bearer -lz -lm -lqios -framework Foundation -framework QuartzCore -framework CoreFoundation -framework CoreText -framework CoreGraphics -lQt5PlatformSupport -lQt5DBus -lqtfreetype -framework Security -framework SystemConfiguration -lqtquick2plugin -lmodelsplugin -lqtquickcontrolsplugin -lqquicklayoutsplugin -lwindowplugin -lqmlsettingsplugin -ldialogplugin -lqmlfolderlistmodelplugin -ldialogsprivateplugin -lqtqmlstatemachine -ldeclarative_webview -lQt5WebView -lqtquickextrasplugin -lqtgraphicaleffectsprivate -lqsvgicon -lqdds -lqicns -lqico -lqsvg -lQt5Svg -lQt5Widgets -lqtga -lqtiff -lqwbmp -lqwebp -lqmldbg_debugger -lqmldbg_inspector -lQt5Quick -lqmldbg_local -lqmldbg_native -lQt5Gui -lqtharfbuzzng -lqmldbg_profiler -lqmldbg_server -lqmldbg_tcp -lQt5Qml -lqgenericbearer -lQt5Network -lQt5Core -lqtpcre -Xlinker -dependency_info -Xlinker /Volumes/QtCreatorRamDisk/build-VisualCycle-iphoneos_clang_Qt_5_6_0_Qt5_6_0_OwnCompilation-Release/VisualCycle.build/Release-iphoneos/VisualCycle.build/Objects-normal/arm64/VisualCycle_dependency_info.dat -o /Volumes/QtCreatorRamDisk/build-VisualCycle-iphoneos_clang_Qt_5_6_0_Qt5_6_0_OwnCompilation-Release/VisualCycle.build/Release-iphoneos/VisualCycle.build/Objects-normal/arm64/VisualCycle
      Undefined symbols for architecture arm64:
        "_main", referenced from:
            user_main_trampoline() in libqios.a(qioseventdispatcher.o)
           (maybe you meant: _jinit_c_main_controller, __Z20qt_mainwindow_layoutPK11QMainWindow , _jinit_d_main_controller , _qt_main_wrapper )
      
      Ld VisualCycle.build/Release-iphoneos/VisualCycle.build/Objects-normal/armv7/VisualCycle normal armv7
          cd /Volumes/QtCreatorRamDisk/build-VisualCycle-iphoneos_clang_Qt_5_6_0_Qt5_6_0_OwnCompilation-Release
          export IPHONEOS_DEPLOYMENT_TARGET=8.1
          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:/usr/bin:/bin:/usr/sbin:/sbin"
          /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/Volumes/QtCreatorRamDisk/build-VisualCycle-iphoneos_clang_Qt_5_6_0_Qt5_6_0_OwnCompilation-Release/Release-iphoneos -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/plugins/platforms -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk/System/Library/Frameworks -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/lib -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtQuick.2 -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtQml/Models.2 -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtQuick/Controls -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtQuick/Layouts -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtQuick/Window.2 -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/Qt/labs/settings -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtQuick/Dialogs -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/Qt/labs/folderlistmodel -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtQuick/Dialogs/Private -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtQml/StateMachine -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtWebView -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtQuick/Extras -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtGraphicalEffects/private -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/plugins/iconengines -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/plugins/imageformats -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/plugins/qmltooling -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/plugins/bearer -F/Volumes/QtCreatorRamDisk/build-VisualCycle-iphoneos_clang_Qt_5_6_0_Qt5_6_0_OwnCompilation-Release/Release-iphoneos -filelist /Volumes/QtCreatorRamDisk/build-VisualCycle-iphoneos_clang_Qt_5_6_0_Qt5_6_0_OwnCompilation-Release/VisualCycle.build/Release-iphoneos/VisualCycle.build/Objects-normal/armv7/VisualCycle.LinkFileList -miphoneos-version-min=8.1 -dead_strip -headerpad_max_install_names -stdlib=libc++ -O3 -u _qt_registerPlatformPlugin -Wl,-e,_qt_main_wrapper -dead_strip -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/plugins/platforms -framework UIKit -framework AssetsLibrary -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/lib -framework MobileCoreServices -framework OpenGLES -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtQuick.2 -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtQml/Models.2 -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtQuick/Controls -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtQuick/Layouts -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtQuick/Window.2 -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/Qt/labs/settings -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtQuick/Dialogs -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/Qt/labs/folderlistmodel -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtQuick/Dialogs/Private -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtQml/StateMachine -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtWebView -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtQuick/Extras -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/qml/QtGraphicalEffects/private -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/plugins/iconengines -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/plugins/imageformats -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/plugins/qmltooling -L/Users/thomasvogelpohl/Qt5_6_0_OwnCompilation/plugins/bearer -lz -lm -lqios -framework Foundation -framework QuartzCore -framework CoreFoundation -framework CoreText -framework CoreGraphics -lQt5PlatformSupport -lQt5DBus -lqtfreetype -framework Security -framework SystemConfiguration -lqtquick2plugin -lmodelsplugin -lqtquickcontrolsplugin -lqquicklayoutsplugin -lwindowplugin -lqmlsettingsplugin -ldialogplugin -lqmlfolderlistmodelplugin -ldialogsprivateplugin -lqtqmlstatemachine -ldeclarative_webview -lQt5WebView -lqtquickextrasplugin -lqtgraphicaleffectsprivate -lqsvgicon -lqdds -lqicns -lqico -lqsvg -lQt5Svg -lQt5Widgets -lqtga -lqtiff -lqwbmp -lqwebp -lqmldbg_debugger -lqmldbg_inspector -lQt5Quick -lqmldbg_local -lqmldbg_native -lQt5Gui -lqtharfbuzzng -lqmldbg_profiler -lqmldbg_server -lqmldbg_tcp -lQt5Qml -lqgenericbearer -lQt5Network -lQt5Core -lqtpcre -Xlinker -dependency_info -Xlinker /Volumes/QtCreatorRamDisk/build-VisualCycle-iphoneos_clang_Qt_5_6_0_Qt5_6_0_OwnCompilation-Release/VisualCycle.build/Release-iphoneos/VisualCycle.build/Objects-normal/armv7/VisualCycle_dependency_info.dat -o /Volumes/QtCreatorRamDisk/build-VisualCycle-iphoneos_clang_Qt_5_6_0_Qt5_6_0_OwnCompilation-Release/VisualCycle.build/Release-iphoneos/VisualCycle.build/Objects-normal/armv7/VisualCycle
      Undefined symbols for architecture armv7:
        "_main", referenced from:
            user_main_trampoline() in libqios.a(qioseventdispatcher.o)
           (maybe you meant: _jinit_c_main_controller, __Z20qt_mainwindow_layoutPK11QMainWindow , _jinit_d_main_controller , _qt_main_wrapper )
      ld: symbol(s) not found for architecture armv7
      clang: error: linker command failed with exit code 1 (use -v to see invocation)
      

      I have checked issue: https://bugreports.qt.io/browse/QTBUG-49886. The patches mentioned in the issue are contained in the latest Qt5.6.0 RC from git, but my problem still exists with the RC version.

      Letting Qt create an Xcode project and then compile in Xcode also fails.

      I have tried several of the Qt Quick examples and they all worked OK.
      And my project is way too big to test. So I have not found a stripped down version for you to try.

      I have attache the .pro file for you to have a look at.

      Do you have any idea what could go wrong ?

      Thanks for your help,
      Thomas

      Attachments

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

        Activity

          People

            vestbo Tor Arne Vestbø
            voptiplex Thomas
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes