Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#65842 closed defect (fixed)

nodejs18: 10.15 buildbot failure: Xcode version not found; CLT reinstall needed?

Reported by: mascguy (Christopher Nielsen) Owned by: admin@…
Priority: High Milestone:
Component: buildbot/mpbb Version: 2.7.2
Keywords: Cc: blair (Blair Zajac)
Port: nodejs18

Description

This looks like an issue with the buildbot VM, rather than anything port-specific. And it suggests that the Xcode CLT may need to be reinstalled, for whatever reason. (Was an Apple update just installed...?)

NOTE: Absolute work-area paths trimmed to relative, for readability purposes.

DEBUG: system:  cd "nodejs18/work/node-v18.9.0" && ./configure --prefix=/opt/local --without-npm --with-intl=system-icu --shared-zlib --shared-zlib-includes=nodejs18/work/zlib-inc --shared-zlib-libpath=/opt/local/lib --dest-cpu=x64 
No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.
No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.

Node.js configure: Found Python 3.10.7...
Traceback (most recent call last):
  File "nodejs18/work/node-v18.9.0/tools/gyp/pylib/gyp/xcode_emulation.py", line 1502, in XcodeVersion
    version_list = GetStdoutQuiet(["xcodebuild", "-version"]).splitlines()
  File "nodejs18/work/node-v18.9.0/tools/gyp/pylib/gyp/xcode_emulation.py", line 1563, in GetStdoutQuiet
    raise GypError("Error %d running %s" % (job.returncode, cmdlist[0]))
gyp.common.GypError: Error 1 running xcodebuild

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "nodejs18/work/node-v18.9.0/./configure", line 27, in <module>
    import configure
  File "nodejs18/work/node-v18.9.0/configure.py", line 2106, in <module>
    run_gyp(gyp_args)
  File "nodejs18/work/node-v18.9.0/tools/gyp_node.py", line 44, in run_gyp
    rc = gyp.main(args)
  File "nodejs18/work/node-v18.9.0/tools/gyp/pylib/gyp/__init__.py", line 662, in main
    return gyp_main(args)
  File "nodejs18/work/node-v18.9.0/tools/gyp/pylib/gyp/__init__.py", line 647, in gyp_main
    generator.GenerateOutput(flat_list, targets, data, params)
  File "nodejs18/work/node-v18.9.0/tools/gyp/pylib/gyp/generator/make.py", line 2606, in GenerateOutput
    writer.Write(
  File "nodejs18/work/node-v18.9.0/tools/gyp/pylib/gyp/generator/make.py", line 902, in Write
    self.WriteSources(
  File "nodejs18/work/node-v18.9.0/tools/gyp/pylib/gyp/generator/make.py", line 1385, in WriteSources
    cflags = self.xcode_settings.GetCflags(
  File "nodejs18/work/node-v18.9.0/tools/gyp/pylib/gyp/xcode_emulation.py", line 662, in GetCflags
    archs = self.GetActiveArchs(self.configname)
  File "nodejs18/work/node-v18.9.0/tools/gyp/pylib/gyp/xcode_emulation.py", line 512, in GetActiveArchs
    xcode_archs_default = GetXcodeArchsDefault()
  File "nodejs18/work/node-v18.9.0/tools/gyp/pylib/gyp/xcode_emulation.py", line 119, in GetXcodeArchsDefault
    xcode_version, _ = XcodeVersion()
  File "nodejs18/work/node-v18.9.0/tools/gyp/pylib/gyp/xcode_emulation.py", line 1513, in XcodeVersion
    version = CLTVersion()  # macOS Catalina returns 11.0.0.0.1.1567737322
  File "nodejs18/work/node-v18.9.0/tools/gyp/pylib/gyp/xcode_emulation.py", line 1551, in CLTVersion
    return re.search(regex, output).groupdict()["version"]
AttributeError: 'NoneType' object has no attribute 'groupdict'
Exit code: 1

Change History (2)

comment:1 Changed 2 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

I don't think I did any recent update on that machine, but you're right, the CLT receipt is gone, as per usual. I've reinstalled the CLT to get it back. I haven't rescheduled any builds that might have failed. Could you do that?

comment:2 in reply to:  1 Changed 2 years ago by mascguy (Christopher Nielsen)

Replying to ryandesign:

I don't think I did any recent update on that machine, but you're right, the CLT receipt is gone, as per usual. I've reinstalled the CLT to get it back. I haven't rescheduled any builds that might have failed. Could you do that?

You bet, thanks for the quick fix Ryan!

Note: See TracTickets for help on using tickets.