New issue
Advanced search Search tips

Issue 752092 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 742527
Owner: ----
Closed: Aug 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 1
Type: Bug-Regression



Sign in to add a comment

Mac SDK 10.12 requirement appears to be based on files in the repository, which aren't 10.12

Project Member Reported by rdsmith@chromium.org, Aug 3 2017

Issue description

I recently tried a Chromium build @ p491708 and got the following error message:

ninja: Entering directory `out/Default'
[1/1] Regenerating ninja files
FAILED: build.ninja 
/Users/rdsmith/Sandboxen/chrome/src/buildtools/mac/gn --root=/Users/rdsmith/Sandboxen/chrome/src -q gen .
ERROR at //build/config/mac/mac_sdk.gni:55:5: Script returned non-zero exit code.
    exec_script("//build/mac/find_sdk.py", find_sdk_args, "list lines")
    ^----------
Current dir: /Users/rdsmith/Sandboxen/chrome/src/out/Default/
Command: python -- /Users/rdsmith/Sandboxen/chrome/src/build/mac/find_sdk.py --print_sdk_path --developer_dir /Users/rdsmith/Sandboxen/chrome/src/build/mac_files/Xcode.app 10.12
Returned 1.
stderr:

Traceback (most recent call last):
  File "/Users/rdsmith/Sandboxen/chrome/src/build/mac/find_sdk.py", line 89, in <module>
    print main()
  File "/Users/rdsmith/Sandboxen/chrome/src/build/mac/find_sdk.py", line 62, in main
    raise Exception('No %s+ SDK found' % min_sdk_version)
Exception: No 10.12+ SDK found

See //build/config/sysroot.gni:74:3: whence it was imported.
  import("//build/config/mac/mac_sdk.gni")
  ^--------------------------------------
See //base/BUILD.gn:28:1: whence it was imported.
import("//build/config/sysroot.gni")
^----------------------------------
See //BUILD.gn:72:5: which caused the file to be included.
    "//base:base_unittests",
    ^----------------------
ninja: error: rebuilding 'build.ninja': subcommand failed

The find_sdk.py script was given an argument of /Users/rdsmith/Sandboxen/chrome/src/build/mac_files/Xcode.app 10.12, which makes me think that the files needed should have been automatically downloaded by a gclient sync, but they weren't.  Either the script is giving a confusing and incomplete error message, or there's some problem with gclient sync that is not downloading the correct libraries.

 
I'm thinking that this is a dup of  issue 742527 , but I'm not an expert, so I'm going to leave this open until someone knowledgeable can look at it.  (I do indeed have target_os = ['ios'] in my .gclient file.)

Labels: OS-Mac
Mergedinto: 742527
Status: Duplicate (was: Untriaged)

Sign in to add a comment