Opened 5 years ago

Last modified 5 years ago

#59419 assigned defect

nodejs12 @ 12.12.0_1: gyp: No Xcode or CLT version detected!

Reported by: ruckonator Owned by: ci42
Priority: Normal Milestone:
Component: ports Version: 2.6.2
Keywords: Cc: inyeollee
Port: nodejs12

Description

Running 'sudo port update outdated' after running a software today.

intersting bits of the main.log:

version:1
:debug:sysinfo macOS 10.15 (darwin/19.0.0) arch i386
:debug:sysinfo MacPorts 2.6.2
:debug:sysinfo Xcode 11.1
:debug:sysinfo SDK 10.15
:debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 10.15
...
:info:configure No receipt for 'com.apple.pkg.CLTools_Executables' found at '/'.
:info:configure No receipt for 'com.apple.pkg.DeveloperToolsCLILeo' found at '/'.
:info:configure No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.
:info:configure gyp: No Xcode or CLT version detected!
:info:configure Error running GYP
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_nodejs12/nodejs12/work/node-v12.12.0" && ./configure --prefix=/opt/local --without-npm --with-intl=system-icu --shared-openssl --shared-openssl-includes=/opt/local/include/openssl --shared-openssl-libpath=/opt/local/lib --dest-cpu=x64 
:info:configure Exit code: 1

I have open xcode which installed an update but I didn't fix this problem. I also ran xcode -p which returned:

  % xcode-select -p                                                                                              !10084
/Applications/Xcode.app/Contents/Developer

Thanks

Change History (8)

comment:1 Changed 5 years ago by jmroot (Joshua Root)

Cc: ciserlohn@… removed
Owner: set to ci42
Status: newassigned

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

Summary: nodejs12 @ 12.12.0_1 configure failure: command execution failednodejs12 @ 12.12.0_1: gyp: No Xcode or CLT version detected!

Maybe the port needs use_xcode yes.

comment:3 Changed 5 years ago by inyeollee

Cc: inyeollee added

comment:4 Changed 5 years ago by fuzunspm (Hüseyin Fahri Uzun)

getting the same error as well

comment:5 Changed 5 years ago by helmling

Had the same problem, fix by manually installing Command Line Tools for Xcode 11

comment:6 Changed 5 years ago by kencu (Ken)

This might prove helpful for Catalina users <https://github.com/nodejs/node-gyp/blob/master/macOS_Catalina.md>.

comment:7 Changed 5 years ago by jmroot (Joshua Root)

The Catalina build of nodejs12 12.14.1 failed the same way on the buildbot: https://build.macports.org/builders/ports-10.15_x86_64-builder/builds/21147

But interestingly there are archives of 12.13.1 and 12.14.0.

comment:8 in reply to:  6 Changed 5 years ago by jmroot (Joshua Root)

Replying to kencu:

This might prove helpful for Catalina users <https://github.com/nodejs/node-gyp/blob/master/macOS_Catalina.md>.

Looks like they experienced the same issue worked around by wiki:ProblemHotlist#reinstall-clt. A full Xcode would work except that we enforce using the CLTs.

Note: See TracTickets for help on using tickets.