Issue metadata
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:
,
Apr 20 2017
What is the output of """ xcode-select -p """
,
Apr 20 2017
[dave@macpro /Library/Developer/CommandLineTools/SDKs/]$ xcode-select -p /Library/Developer/CommandLineTools [dave@macpro /Library/Developer/CommandLineTools/SDKs/]$
,
Apr 20 2017
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.
,
Apr 20 2017
[dave@macpro ~/]$ sudo xcode-select -s /Applications/Xcode.app/ [dave@macpro ~/]$ xcode-select -p /Applications/Xcode.app/Contents/Developer [dave@macpro ~/]$
,
Apr 20 2017
Build proceeds now!
,
Apr 20 2017
|
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by ligim...@chromium.org
, Apr 20 2017Labels: Needs-Triage-M58 Prestable-58.0.3029.81