-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
v8_3_16_14: fix OS X build by passing deployment version #26772
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
Conversation
@robx, thanks for your PR! By analyzing the history of the files in this pull request, we identified @pikajude, @cstrahan and @wkennington to be potential reviewers. |
(This was initially reported as a comment on the related but different issue #10168.) |
@@ -29,6 +29,7 @@ stdenv.mkDerivation rec { | |||
export PATH=$TMPDIR:$PATH | |||
'' + '' | |||
PYTHONPATH="tools/generate_shim_headers:$PYTHONPATH" \ | |||
GYP_DEFINES="mac_deployment_target=$MACOSX_DEPLOYMENT_TARGET" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, clearly this should be darwin only, let me see...
Still fails to build without Xcode, probably just needs the no-xcode.patch |
@LnL7 nope, seems that patch doesn't apply... (There's What is that no-xcode problem? |
The issue is that gyp fails if Xcode is not installed, even tho it has a perfectly working version of clang from nix available. So it doesn't work on hydra
|
This is as far as I get. Next would seem to be using nix-provided libtool, compare https://github.com/robx/nixpkgs/tree/v8-sandbox. But it's not clear at all to me how to get that to work. |
@LnL7 Could we consider merging the initial commit as a way to fix the xcode build at least? Changing the build to handle GNU libtool and whatnot may be a worthy goal, but it's certainly out of my reach right now, and the initial commit seems to be a clear improvement of the current state. |
Nevermind, might have found a way around (if |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good now! can you squash this?
Issues addressed: - xcode build failed with ... was built for newer OSX version (10.10) than being linked (10.5) fixed by setting GYP mac deployment target to the nix value - a gyp bug when SDKROOT is not set (and removed an orphaned gyp patch - path to python in generated gyp-mac-tool - noisy build due to static assert warnings, by silencing warnings - use of system xcodebuild and libtool replaced by darwin.cctools
@LnL7 done |
Before this,
nix-build -A v8_3_16_14
failed with a linking error... was built for newer OSX version (10.10) than being linked (10.5)
since build/standalone.gypi sets
'mac_deployment_target%': '10.5'
This fixes the build to set the GYP mac deployment target to the nix
default as set in pkgs/stdenv/darwin/default.nix.
Motivation for this change
v8_3_16_4 was failing to build for me:
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)