Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign uptools: update tooling to work with new macOS CLI #21173
Conversation
Trott
added
build
macos
labels
Jun 6, 2018
nodejs-github-bot
added
build
tools
labels
Jun 6, 2018
This comment has been minimized.
This comment has been minimized.
Trott
force-pushed the
Trott:fix-configure
branch
from
cda8ff4
to
7f4dba0
Jun 6, 2018
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
For reference, the gyp fix matches nodejs/node-gyp#1455. |
richardlau
approved these changes
Jun 6, 2018
|
Not a macOS user, but LGTM. |
This comment has been minimized.
This comment has been minimized.
|
Sole CI failure is infra, not code. Trying just that task again: https://ci.nodejs.org/job/node-test-commit-arm/16655/ |
lpinca
reviewed
Jun 6, 2018
| @@ -667,7 +667,7 @@ def get_llvm_version(cc): | |||
|
|
|||
| def get_xcode_version(cc): | |||
| return get_version_helper( | |||
| cc, r"(^Apple LLVM version) ([5-9]\.[0-9]+)") | |||
| cc, r"(^Apple LLVM version) ([1-9]?[0-9]+\.[0-9]+)") | |||
This comment has been minimized.
This comment has been minimized.
lpinca
Jun 6, 2018
•
Member
Isn't the [1-9]? part redundant? Was the intention to use 2 digits? If so it should be [1-9]?[0-9] without the +, I guess.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
lpinca
approved these changes
Jun 6, 2018
This was referenced Jun 6, 2018
mistydemeo
referenced this pull request
Jun 6, 2018
Closed
configure: fix comparing double-digit versions #21183
This comment has been minimized.
This comment has been minimized.
|
Hmmm.... |
This comment has been minimized.
This comment has been minimized.
$ make test-addons
/Library/Developer/CommandLineTools/usr/bin/make -C out BUILDTYPE=Release V=1
touch c6d5e3a8cbc4c6925abc7773ea7a8b5d20bd67b3.intermediate
LD_LIBRARY_PATH=/Users/trott/io.js/out/Release/lib.host:/Users/trott/io.js/out/Release/lib.target:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd ../.; mkdir -p /Users/trott/io.js/out/Release/obj/gen/src/node/inspector/protocol; python deps/v8/third_party/inspector_protocol/CodeGenerator.py --jinja_dir deps/v8/third_party/inspector_protocol/.. --output_base "/Users/trott/io.js/out/Release/obj/gen/src/" --config "/Users/trott/io.js/out/Release/obj/gen/node_protocol_config.json"
touch bca5cfa02b0b2280915e4521c79df9165beadac7.intermediate
LD_LIBRARY_PATH=/Users/trott/io.js/out/Release/lib.host:/Users/trott/io.js/out/Release/lib.target:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd ../deps/v8/gypfiles; mkdir -p /Users/trott/io.js/out/Release/obj/gen/src/inspector/protocol /Users/trott/io.js/out/Release/obj/gen/include/inspector; python ../third_party/inspector_protocol/CodeGenerator.py --jinja_dir ../third_party --output_base "/Users/trott/io.js/out/Release/obj/gen/src/inspector" --config ../src/inspector/inspector_protocol_config.json
rm bca5cfa02b0b2280915e4521c79df9165beadac7.intermediate c6d5e3a8cbc4c6925abc7773ea7a8b5d20bd67b3.intermediate
if [ ! -r node -o ! -L node ]; then ln -fs out/Release/node node; fi
Building addon /Users/trott/io.js/test/addons/01_function_arguments/
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
Traceback (most recent call last):
File "/Users/trott/io.js/deps/npm/node_modules/node-gyp/gyp/gyp_main.py", line 16, in <module>
sys.exit(gyp.script_main())
File "/Users/trott/io.js/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 545, in script_main
return main(sys.argv[1:])
File "/Users/trott/io.js/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 538, in main
return gyp_main(args)
File "/Users/trott/io.js/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/__init__.py", line 523, in gyp_main
generator.GenerateOutput(flat_list, targets, data, params)
File "/Users/trott/io.js/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py", line 2170, in GenerateOutput
part_of_all=qualified_target in needed_targets)
File "/Users/trott/io.js/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py", line 795, in Write
self.Pchify))
File "/Users/trott/io.js/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py", line 1190, in WriteSources
cflags = self.xcode_settings.GetCflags(configname)
File "/Users/trott/io.js/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py", line 551, in GetCflags
archs = self.GetActiveArchs(self.configname)
File "/Users/trott/io.js/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py", line 420, in GetActiveArchs
xcode_archs_default = GetXcodeArchsDefault()
File "/Users/trott/io.js/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py", line 118, in GetXcodeArchsDefault
xcode_version, _ = XcodeVersion()
File "/Users/trott/io.js/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py", line 1265, in XcodeVersion
version = re.match(r'(\d\.\d\.?\d*)', version).groups()[0]
AttributeError: 'NoneType' object has no attribute 'groups'
make: *** [test/addons/.buildstamp] Error 1 |
This comment has been minimized.
This comment has been minimized.
|
Argh...the bad regexp is inside deps/npm/node_modules/node-gyp so it will have to be fixed upstream. |
This comment has been minimized.
This comment has been minimized.
|
Copying |
This comment has been minimized.
This comment has been minimized.
|
Looks like someone already has a PR open for it, as @richardlau noted above: nodejs/node-gyp#1455 |
Trott
added
the
blocked
label
Jun 7, 2018
Trott
force-pushed the
Trott:fix-configure
branch
from
56d0213
to
ade91c9
Jun 7, 2018
This comment has been minimized.
This comment has been minimized.
|
Hmmm...since it's checked into the repo, the version in deps/npm/node_modules/node-gyp can be updated here, I suppose, but that's probably not the "right" thing to do, especially as there are more changes than just the one line. |
apapirovski
referenced this pull request
Jun 7, 2018
Closed
Fix configure script to work with Apple Clang 10 #21200
This comment has been minimized.
This comment has been minimized.
|
We can unblock this as node-gyp 3.6.3 has the fix now. |
Trott
removed
the
blocked
label
Jun 8, 2018
This comment has been minimized.
This comment has been minimized.
Are we waiting for npm to update to node-gyp 3.6.3 or float a patch ourselves via this PR? |
This comment has been minimized.
This comment has been minimized.
|
So, now that there's a new node-gyp that fixes build issues on macOS and smartOS, what's the correct way to update it in the |
This comment has been minimized.
This comment has been minimized.
I'd prefer to float a patch to get things fixed right away for folks here. Not sure the right way to update the |
shisama
added a commit
to shisama/node
that referenced
this pull request
Jun 12, 2018
This comment has been minimized.
This comment has been minimized.
|
@Trott It looks like this patch didn't make it into |
This comment has been minimized.
This comment has been minimized.
Argh! Yeah, the other three patches made it but not this one. I was wondering why I was having trouble building on 10.x. |
This comment has been minimized.
This comment has been minimized.
|
The patch is on v10.x-staging so it should be in the next v10.x release. It looks like it only landed on the staging branch yesterday which is probably why it wasn't in the release this week. |
Trott commentedJun 6, 2018
•
edited
Using High Sierra and
xcode-select --installwithout installing fullXcode, our build tooling breaks due to faulty regular expressions.
This fixes it for me...
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes