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

tvOS port fails to build anything starting from 5.9.0 due to undefined symbols in libqtpcre2

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.9.0, 5.9.1
    • Fix Version/s: 5.9.2
    • Component/s: Core: Other
    • Labels:
      None
    • Environment:
      Darwin MacBook-Pro.local 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64

      QMake version 3.1
      Using Qt version 5.9.2 in /usr/local/Qt-5.9.2/lib
    • Platform/s:
      iOS/tvOS/watchOS
    • Commits:
      e8e0895a335d76b594fc1e2fe9d97d4776d09c86

      Description

      Starting with 5.9.0, with migration from libqtpcre to libqtpcre2, the tvOS port looks broken.
      tvOS is in TP afaik, so this is probably less important than a regular regression in supported platforms.

      Qt itself builds just fine, but trying to build anything (e.g. the quick/window example from Examples) fails.

      The exact error message, verified on 5.9.0, 5.9.1 (releases), and 5.9.2 (pre-release):

      Ld Release-appletvos/window.app/window normal arm64
          cd /Users/chalker/test
          export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
          export TVOS_DEPLOYMENT_TARGET=10.2
          /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS10.2.sdk -L/Users/chalker/test/Release-appletvos -L/usr/local/Qt-5.9.2/plugins/platforms -L/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS10.2.sdk/System/Library/Frameworks -L/usr/local/Qt-5.9.2/lib -L/usr/local/Qt-5.9.2/plugins/imageformats -L/usr/local/Qt-5.9.2/plugins/qmltooling -L/usr/local/Qt-5.9.2/plugins/bearer -L/usr/local/Qt-5.9.2/qml/QtQuick.2 -L/usr/local/Qt-5.9.2/qml/QtQuick/Window.2 -F/Users/chalker/test/Release-appletvos -filelist /Users/chalker/test/window.build/Release-appletvos/window.build/Objects-normal/arm64/window.LinkFileList -mtvos-version-min=10.2 -dead_strip -fembed-bitcode-marker -stdlib=libc++ -Wl,-e,_qt_main_wrapper -Wl,-rpath,@executable_path/Frameworks -L/usr/local/Qt-5.9.2/plugins/platforms -framework UIKit -L/usr/local/Qt-5.9.2/lib -framework MobileCoreServices -framework OpenGLES -L/usr/local/Qt-5.9.2/plugins/imageformats -L/usr/local/Qt-5.9.2/plugins/qmltooling -L/usr/local/Qt-5.9.2/plugins/bearer -L/usr/local/Qt-5.9.2/qml/QtQuick.2 -L/usr/local/Qt-5.9.2/qml/QtQuick/Window.2 -lm -lz -framework Foundation -framework QuartzCore -framework AudioToolbox -framework CoreFoundation -framework CoreGraphics -framework CoreText -lqios -lQt5FontDatabaseSupport -lqtfreetype -lQt5GraphicsSupport -lQt5ClipboardSupport -lqgif -lqicns -lqico -lqjpeg -lqmacjp2 -framework ImageIO -lqtga -lqtiff -lqwbmp -lqwebp -lqmldbg_debugger -framework Security -lqmldbg_inspector -lqmldbg_local -lqmldbg_messages -lqmldbg_native -lqmldbg_nativedebugger -lqmldbg_profiler -lqmldbg_quickprofiler -lqmldbg_server -lQt5PacketProtocol -lqmldbg_tcp -lqgenericbearer -lqtquick2plugin -lwindowplugin -lQt5Quick -lQt5Gui -lqtlibpng -lqtharfbuzz -lQt5Qml -lQt5Network -lQt5Core -lqtpcre2 -Xlinker -dependency_info -Xlinker /Users/chalker/test/window.build/Release-appletvos/window.build/Objects-normal/arm64/window_dependency_info.dat -o /Users/chalker/test/Release-appletvos/window.app/window
      Undefined symbols for architecture arm64:
        "___clear_cache", referenced from:
            _jit_compile in libqtpcre2.a(pcre2_jit_compile.o)
      ld: symbol(s) not found for architecture arm64
      clang: error: linker command failed with exit code 1 (use -v to see invocation)
      
      ** BUILD FAILED **
      
      
      The following build commands failed:
      	Ld Release-appletvos/window.app/window normal arm64
      (1 failure)
      make: *** [xcodebuild-release-device] Error 65
      

      5.8.0 is working just fine on the exact same example code.

        Attachments

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

          Activity

            People

            • Assignee:
              peppe Giuseppe D'Angelo
              Reporter:
              chalker Сковорода Никита
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes