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

build: configure failed with python 3.7.4 #30215

Closed
legendecas opened this issue Nov 2, 2019 · 5 comments
Closed

build: configure failed with python 3.7.4 #30215

legendecas opened this issue Nov 2, 2019 · 5 comments
Labels
build Issues and PRs related to build files or the CI.

Comments

@legendecas
Copy link
Member

legendecas commented Nov 2, 2019

  • Version: python 3.7.4
  • Platform: macOS Catalina
  • Subsystem: build

Failed with python3:

> ~/D/g/node on master ◦ python3 --version
Python 3.7.4
> ~/D/g/node on master ◦ python3 ./configure.py -C
INFO: Using floating patch "tools/icu/patches/64/source/common/putil.cpp" from "tools/icu"
INFO: Using floating patch "tools/icu/patches/64/source/i18n/dtptngen.cpp" from "tools/icu"
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 '/'.
gyp: No Xcode or CLT version detected!
Error running GYP

Running with python2:

> ~/D/g/node on master ◦ python --version
Python 2.7.16
> ~/D/g/node on master ◦ python ./configure.py -C
INFO: Using floating patch "tools/icu/patches/64/source/common/putil.cpp" from "tools/icu"
INFO: Using floating patch "tools/icu/patches/64/source/i18n/dtptngen.cpp" from "tools/icu"
INFO: configure completed successfully
@legendecas legendecas added the build Issues and PRs related to build files or the CI. label Nov 2, 2019
@cclauss
Copy link
Contributor

cclauss commented Nov 2, 2019

As discussed in https://github.com/nodejs/node-gyp/blob/master/macOS_Catalina.md

  1. sudo rm -rf $(xcode-select -print-path) # Enter root password. No output is normal.
  2. xcode-select --install

@cclauss cclauss closed this as completed Nov 2, 2019
@legendecas
Copy link
Member Author

I've using node-gyp a lot in node-addon-api and didn't fail recently. Also xcode-select -print-path prints /Applications/Xcode.app/Contents/Developer which shall be expected output?

@legendecas
Copy link
Member Author

And python2 doesn't complain about it. I'm wondering what's the difference in it with xcode-select about python3. Trying to look into it.

@cclauss
Copy link
Contributor

cclauss commented Nov 2, 2019

As discussed in macOS_Catalina.md you are on the first path of using the full Xcode. Can you please follow those instructions in that doc?

@legendecas
Copy link
Member Author

Duplicated issue of #30129

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues and PRs related to build files or the CI.
Projects
None yet
Development

No branches or pull requests

2 participants