[MacPorts] #65842: nodejs18: 10.15 buildbot failure: Xcode version not found; CLT reinstall needed?

MacPorts noreply at macports.org
Thu Sep 15 14:32:32 UTC 2022


#65842: nodejs18: 10.15 buildbot failure: Xcode version not found; CLT reinstall
needed?
---------------------------+----------------------
 Reporter:  mascguy        |      Owner:  admin@…
     Type:  defect         |     Status:  new
 Priority:  High           |  Milestone:
Component:  buildbot/mpbb  |    Version:  2.7.2
 Keywords:                 |       Port:  nodejs18
---------------------------+----------------------
 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
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/65842>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list