Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gyp build error on macOS 10.14 #57

Open
chrissimpkins opened this issue May 2, 2019 · 0 comments
Open

gyp build error on macOS 10.14 #57

chrissimpkins opened this issue May 2, 2019 · 0 comments

Comments

@chrissimpkins
Copy link
Member

chrissimpkins commented May 2, 2019

I attempted to build on macOS 10.14.4 with:

Python 2.7.16

Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.5.0
Thread model: posix

and received the following Exception:

Traceback (most recent call last):
  File "./src/third_party/gyp/gyp_main.py", line 16, in <module>
    sys.exit(gyp.script_main())
  File "./src/third_party/gyp/pylib/gyp/__init__.py", line 545, in script_main
    return main(sys.argv[1:])
  File "./src/third_party/gyp/pylib/gyp/__init__.py", line 538, in main
    return gyp_main(args)
  File "./src/third_party/gyp/pylib/gyp/__init__.py", line 523, in gyp_main
    generator.GenerateOutput(flat_list, targets, data, params)
  File "./src/third_party/gyp/pylib/gyp/generator/make.py", line 2168, in GenerateOutput
    part_of_all=qualified_target in needed_targets)
  File "./src/third_party/gyp/pylib/gyp/generator/make.py", line 795, in Write
    self.Pchify))
  File "./src/third_party/gyp/pylib/gyp/generator/make.py", line 1190, in WriteSources
    cflags = self.xcode_settings.GetCflags(configname)
  File "./src/third_party/gyp/pylib/gyp/xcode_emulation.py", line 581, in GetCflags
    archs = self.GetActiveArchs(self.configname)
  File "./src/third_party/gyp/pylib/gyp/xcode_emulation.py", line 439, in GetActiveArchs
    xcode_archs_default = GetXcodeArchsDefault()
  File "./src/third_party/gyp/pylib/gyp/xcode_emulation.py", line 118, in GetXcodeArchsDefault
    xcode_version, _ = XcodeVersion()
  File "./src/third_party/gyp/pylib/gyp/xcode_emulation.py", line 1359, in XcodeVersion
    version = re.match(r'(\d\.\d\.?\d*)', version).groups()[0]
AttributeError: 'NoneType' object has no attribute 'groups'

The regex change that was proposed in node-gyp (issue report) fixes this and the compile completes without issues when I edit the gyp submodule.

Does anyone here have a Chromium dev environment and Chromium submitter permissions set up to test and propose this in the gyp project?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant