Uh oh!
There was an error while loading. Please reload this page.
tools: update gyp to make xcode tools work - #21520
Conversation
bnoordhuis
left a comment
There was a problem hiding this comment.
Can I sign off on my own code? Of course I can!
Trott
commented
Jun 26, 2018
Not a blocking objection, but I think the commit message here could be revised. It seems to say (or at least imply?) that building without full XCode is broken. But if I understand correctly, it's not broken. It just shows an error message that happens to not matter. This doesn't "fix" a broken build process. It suppresses an erroneous error message. (Or am I mistaken?) |
ryzokuken
commented
Jun 26, 2018
@Trott no. The error message still keeps coming (and is very irritating), but without this patch, I found it impossible to build without full XCode, so yeah, it's probably broken. |
Trott
commented
Jun 26, 2018
Interesting. I find it nearly impossible to believe that building with full XCode could be broken without it impacting a significant percentage of core devs. But I suppose it's possible that it affects just the right version of XCode and/or OS or something like that. |
Trott
commented
Jun 26, 2018
I don't want to be too annoying about my fixation on this, and you can totally ignore me if you want. That said, some other observations: FWIW, I don't have a full XCode installed an either of the machines I use to build Node.js and I haven't had a problem building. The bug that this fixes is over a year old but the commit message talks of a "recent change"... I guess it's possible that the bug first manifested as an irritating-but-harmless message over a year ago and then started causing a completely build failure more recently under certain conditions. It might be good to simply remove speculation. Maybe something more like this? Maybe those errors mean you can't build and maybe they don't, but either way, let's navigate around them. |
ryzokuken
commented
Jun 26, 2018
@Trott not at all! I'd love to get to the bottom of this as well.
Strange, right? I should've mentioned that this happened only when setting up the project from scratch on a new machine (my home machine works just fine). So I also believe this has something to do with a specific XCode/MacOS version maybe? |
ryzokuken
commented
Jun 27, 2018
@Trott I hope this looks good to you? Planning to land this soon-ish. |
Trott
commented
Jun 28, 2018
Yup, as I wrote above, "not a blocking objection". If CI is green and no one else objects, feel free to land. I would prefer the commit message get revised (and provided my suggestion above), but it's fine if it doesn't. |
ryzokuken
commented
Jun 28, 2018
@Trott it's fine. I'll amend the commit message, run CI and land tomorrow morning. |
FWIW applying nodejs/node-gyp#1370 to the in-tree copy of gyp should fix the other error. I haven't done it because I'm not sure how updating gyp in node works, but if someone else would like to pull that change in they're more than welcome to. |
gibfahn
commented
Jun 29, 2018
To clarify:
This PR: This PR + nodejs/node-gyp#1370: I applied the patch by doing: @ryzokuken if you would be willing to apply that one (probably best left to a separate PR) then I think we could get |
gibfahn
left a comment
There was a problem hiding this comment.
LGTM with the commit message changed
gibfahn
commented
Jun 29, 2018
Commit message suggestion: |
gibfahn
commented
Jun 29, 2018
It's not really a big deal if it's fixed by this, but it sounds like something is different about your machine that makes xcode fail rather than just logging the errors and continuing, I also have no problems with the command line tools. I would say let's debug it, but if this PR fixes the issue let's just land it. |
@gibfahn it actually does fix the issue, and I think @bnoordhuis would have much more insight over how thing even works, but I'm thinking that because they were able to hack up a solution this quick, then there must be a catch. P.S. totally using your suggestion for the commit message, thanks. |
ryzokuken
commented
Jun 29, 2018
ryzokuken
commented
Jun 29, 2018
Force pushed to update failing master, rerunning tests. |
gibfahn
commented
Jun 30, 2018
Still LGTM, but if you wanted to credit Ben you could use the |
ryzokuken
commented
Jun 30, 2018
@gibfahn awesome! I'll add that line. |
Previously running ./configure with only the Xcode Command Line Tools installed would give: xcrun: error: unable to lookup item 'PlatformPath' from command line tools installation xcrun: error: unable to lookup item 'PlatformPath' in SDK '/' Co-authored-by: Ben Noordhuis <info@bnoordhuis.nl> Fixes: nodejs#12531
ryzokuken
commented
Jun 30, 2018
ryzokuken
commented
Jun 30, 2018
Windows Fanned: https://ci.nodejs.org/job/node-test-commit-windows-fanned/19058/ |
Windows fanned passed, landing once linux passes: https://ci.nodejs.org/job/node-test-commit-linux/19881/ |
ryzokuken
commented
Jul 8, 2018
maclover7
commented
Jul 10, 2018
Should this patch be applied to |
ryzokuken
commented
Jul 10, 2018
@maclover7 is node-gyp affected by this? I tried it with our version of gyp and it just won't work without a full XCode installation. Let's check if node-gyp requires this patch too? |
gibfahn
commented
Jul 10, 2018
@maclover7 yep, that's a separate PR someone should raise (but it doesn't block or affect this PR). tl;dr: 2 changes in 2 repos, once they've all landed we should be warning-free everywhere:
|
ryzokuken
commented
Jul 10, 2018
via email
Replying by mail so cannot use emoji responses, but will be glad to submit
the two patches in the next few hours. …On Tue 10 Jul, 2018, 11:55 PM Gibson Fahnestock, ***@***.***> wrote:
Should this patch be applied to node-gyp's version of GYP too?
@maclover7 <https://github.com/maclover7> yep, that's a separate PR
someone should raise (but it doesn't block or affect this PR).
tl;dr: 2 changes in 2 repos, once they've all landed we should be
warning-free everywhere:
- xcrun error:
- node: This PR
- node-gyp: another PR (if someone would like to raise it then 👍 )
- xcode-select error:
- node: another PR (if someone would like to raise it then 👍 )
- node-gyp: nodejs/node-gyp#1370
<nodejs/node-gyp#1370>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#21520 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AMg3MsYOiipFxzzOdvFkZko7c0J8grxYks5uFPGrgaJpZM4U18HO>
.
|
ryzokuken
commented
Jul 12, 2018
Muffle gyp from creating xcode-select related warnings, essentially flooding the console. Co-authored-by: Gibson Fahnestock <gibfahn@gmail.com> Refs: nodejs/node-gyp#1370 Refs: nodejs#21520
ryzokuken
commented
Jul 29, 2018
Final CI run (hopefully): https://ci.nodejs.org/job/node-test-pull-request/16055/ |
ryzokuken
commented
Jul 29, 2018
Windows rebuild: https://ci.nodejs.org/job/node-test-commit-windows-fanned/19536/ |
ryzokuken
commented
Jul 29, 2018
Tests passed, landing this. |
ryzokuken
commented
Jul 29, 2018
Landed in 51812ff |
Previously running ./configure with only the Xcode Command Line Tools installed would give: xcrun: error: unable to lookup item 'PlatformPath' from command line tools installation xcrun: error: unable to lookup item 'PlatformPath' in SDK '/' Co-authored-by: Ben Noordhuis <info@bnoordhuis.nl> Fixes: #12531 PR-URL: #21520 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Previously running ./configure with only the Xcode Command Line Tools installed would give: xcrun: error: unable to lookup item 'PlatformPath' from command line tools installation xcrun: error: unable to lookup item 'PlatformPath' in SDK '/' Co-authored-by: Ben Noordhuis <info@bnoordhuis.nl> Fixes: #12531 PR-URL: #21520 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Previously running ./configure with only the Xcode Command Line Tools installed would give: xcrun: error: unable to lookup item 'PlatformPath' from command line tools installation xcrun: error: unable to lookup item 'PlatformPath' in SDK '/' Co-authored-by: Ben Noordhuis <info@bnoordhuis.nl> Fixes: nodejs/node#12531 PR-URL: nodejs/node#21520 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Previously running ./configure with only the Xcode Command Line Tools installed would give: xcrun: error: unable to lookup item 'PlatformPath' from command line tools installation xcrun: error: unable to lookup item 'PlatformPath' in SDK '/' Co-authored-by: Ben Noordhuis <info@bnoordhuis.nl> Fixes: nodejs/node#12531 PR-URL: nodejs/node#21520 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Previously running ./configure with only the Xcode Command Line Tools installed would give: xcrun: error: unable to lookup item 'PlatformPath' from command line tools installation xcrun: error: unable to lookup item 'PlatformPath' in SDK '/' Co-authored-by: Ben Noordhuis <info@bnoordhuis.nl> Fixes: nodejs#12531 PR-URL: nodejs#21520 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> (cherry picked from commit 51812ff)
A recent change must have started requiring a full XCode installation in
order to run "./configure" and pretty much everything related.
This patch ensures that a full installation isn't required and the tools
work just fine.
Credits: @bnoordhuis
Fixes: #12531
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes/cc @bnoordhuis@refack @nodejs/gyp