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

chromium not building with Xcode 11.4 on macOS 10.15.4 with MacOSX10.5 sdk

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.12.9, 5.15.0 Beta4
    • 5.12.8, 5.14.2, 5.15
    • WebEngine
    • None
    • New iMacPro with macOS 10.15.4 and Xcode 11.4
    • macOS
    • 5d2026cb04ef8fd408e5722a84e2affb5b9a3119 (qt/qtwebengine/5.15) 1dae478232ac22a92637d919287fbbf11c32b7c7 (qt/qtwebengine/5.12)

    Description

      I have been building Qt successfully for many, many years. For example, on older macOS High Sierra system with Xcode 10 has been doing successful shadow builds of Qt 5.12.x since the middle 2018.

      Well now with the covid-19 my old computer is stuck at the office.

      I have just finished setting up a new iMacPro with macOS 10.15.4 and Xcode 11.4.

      After following the steps to shadow build from git sources I cannot build Qt 5.14.2.

      This is the ERROR that causing chromium and qtwebengine to fail:

      ERROR at //build/config/mac/mac_sdk.gni:80:5: Script returned non-zero exit code.
          exec_script("//build/mac/find_sdk.py", find_sdk_args, "list lines")
          ^----------
      Current dir: /Users/transdel/ws/qt-build-env/external/Qt5/tmp/macx64-clang-frameworks-10.15/qtwebengine/src/core/debug/
      Command: /usr/bin/python2 /Users/transdel/ws/qt-build-env/external/Qt5/src/qtwebengine/src/3rdparty/chromium/build/mac/find_sdk.py --print_sdk_path --print_bin_path 10.15.4
      Returned 1.
      stderr:Traceback (most recent call last):
        File "/Users/transdel/ws/qt-build-env/external/Qt5/src/qtwebengine/src/3rdparty/chromium/build/mac/find_sdk.py", line 127, in <module>
          print(main())
        File "/Users/transdel/ws/qt-build-env/external/Qt5/src/qtwebengine/src/3rdparty/chromium/build/mac/find_sdk.py", line 96, in main
          raise Exception('No %s+ SDK found' % min_sdk_version)
      Exception: No 10.15.4+ SDK foundSee //build/config/sysroot.gni:65:3: whence it was imported.
        import("//build/config/mac/mac_sdk.gni")
        ^--------------------------------------
      See //chrome/installer/BUILD.gn:7:1: whence it was imported.
      import("//build/config/sysroot.gni")
      ^----------------------------------
      See //BUILD.gn:72:5: which caused the file to be included.
          "//chrome/installer",
          ^-------------------
      Project ERROR: GN run error!
      make[3]: *** [sub-gn_run-pro-make_first] Error 3
      make[2]: *** [sub-core-make_first] Error 2
      make[1]: *** [sub-src-make_first] Error 2
      make: *** [module-qtwebengine-make_first] Error 2
      

      This seems to be some sort of garbage-in-garbage-out error because there the find_sdk.py script should never be given an input of 10.15.4 for an sdk.

      Once we give that same script valid input like 10.15, 10.14 or 10.13 the the output is correct, like so

      % python /Users/transdel/ws/qt-build-env/external/Qt5/src/qtwebengine/src/3rdparty/chromium/build/mac/find_sdk.py --print_sdk_path --print_bin_path 10.15  /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/
      10.15
      % python /Users/transdel/ws/qt-build-env/external/Qt5/src/qtwebengine/src/3rdparty/chromium/build/mac/find_sdk.py --print_sdk_path --print_bin_path 10.14 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/
      10.14
      % python /Users/transdel/ws/qt-build-env/external/Qt5/src/qtwebengine/src/3rdparty/chromium/build/mac/find_sdk.py --print_sdk_path --print_bin_path 10.13 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/
      10.14
      

      The attached file, config_output.zip, contains the config.log, config.opt, config.status and config.summary from my shadow build directory for your review.

      I can send the entire output from the build if necessary.
      We are a commercial customer so please set the priority and label appropriately

      Thanks in advance for your help.

       

      Attachments

        1. config_output.zip
          14 kB
          Tom Ransdell
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            pvarga Peter Varga
            tom.ransdell Tom Ransdell
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes