New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 713753 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Apr 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 3
Type: Bug-Regression



Sign in to add a comment

Chromium cannot find the Mac OS 10.12.4 SDK in xcode 8.3.1, path to SDK has changed in current xcode version.

Reported by davec.b...@gmail.com, Apr 20 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36

Steps to reproduce the problem:
get chromium source for version release 58.0.3029.81 from git
Try to build on Mac OS v 10.12.4 with xcode 8.3.1

What is the expected behavior?
Build succeed.

What went wrong?
The build script is looking for the SDK in 
'/Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs' but the directory structure is now '/Library/Developer/CommandLineTools/SDKs' with the new Xcode 8.3.1 update.

Error output:

ERROR at //build/config/mac/mac_sdk.gni:61:5: Script returned non-zero exit code.
    exec_script("//build/mac/find_sdk.py", find_sdk_args, "list lines")
    ^----------
Current dir: /Volumes/hd2/src/chromium/src/out/Default/
Command: python -- /Volumes/hd2/src/chromium/src/build/mac/find_sdk.py --print_sdk_path 10.10
Returned 1.
stderr:

Traceback (most recent call last):
  File "/Volumes/hd2/src/chromium/src/build/mac/find_sdk.py", line 89, in <module>
    print main()
  File "/Volumes/hd2/src/chromium/src/build/mac/find_sdk.py", line 57, in main
    sdks = [re.findall('^MacOSX(10\.\d+)\.sdk$', s) for s in os.listdir(sdk_dir)]
OSError: [Errno 2] No such file or directory: '/Library/Developer/CommandLineTools/Platforms/MacOSX.platform/Developer/SDKs'

See //build/toolchain/mac/BUILD.gn:14:1: whence it was imported.
import("//build/config/mac/mac_sdk.gni")
^--------------------------------------
See //BUILD.gn:73:1: which caused the file to be included.

Did this work before? Yes 57.0.2987.133

Chrome version: 58.0.3029.81  Channel: stable
OS Version: OS X 10.12.4
Flash Version:
 
Cc: erikc...@chromium.org shrike@chromium.org ligim...@chromium.org
Labels: Needs-Triage-M58 Prestable-58.0.3029.81
TE do not have the setup to build chromium , looping to Mac experts for more updates.
Components: Build
Labels: -Pri-2 Pri-3
What is the output of 

"""
xcode-select -p
"""
[dave@macpro /Library/Developer/CommandLineTools/SDKs/]$ xcode-select -p
/Library/Developer/CommandLineTools
[dave@macpro /Library/Developer/CommandLineTools/SDKs/]$ 
Try something like:

sudo xcode-select -s <path-to-xcode-8>

and then make sure that xcode-select -p prints out the path to xcode, and not CommandLineTools.
[dave@macpro ~/]$ sudo xcode-select -s /Applications/Xcode.app/
[dave@macpro ~/]$ xcode-select -p
/Applications/Xcode.app/Contents/Developer
[dave@macpro ~/]$ 
Build proceeds now!
Status: WontFix (was: Unconfirmed)

Sign in to add a comment