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

Bazel 0.4 doesn't build on Darwin #30590

Closed
abbradar opened this issue Oct 19, 2017 · 7 comments
Closed

Bazel 0.4 doesn't build on Darwin #30590

abbradar opened this issue Oct 19, 2017 · 7 comments
Labels
0.kind: regression Something that worked before working no longer 6.topic: darwin Running or building packages on Darwin

Comments

@abbradar
Copy link
Member

Issue description

We didn't have it working before TensorFlow started to build from source, but we need it now to fix TensorFlow on Darwin. Unfortunately I don't have a Mac so I can't tackle this problem efficiently. Current error on Hydra:

🍃  Building Bazel from scratch......./usr/bin/xcrun clang -fobjc-arc -framework CoreServices -framework Foundation -o /private/tmp/nix-build-bazel-0.4.5.drv-0/bazel_6mTHoLID/archive/_embedded_binaries/xcode-locator tools/osx/xcode_locator.m
xcode-select: error: no developer tools were found at '/Applications/Xcode.app', and no install could be requested (perhaps no UI is present), please install manually from 'developer.apple.com'.
/nix/store/ncvjpvcpsixl8vx2g8nm71m25xyhx67w-stdenv-darwin/setup: line 1055: ./output/bazel: No such file or directory

How should this be fixed?

Worst case I'll retain TensorFlow binary packages specially for Darwin.

Steps to reproduce

  1. nix-build -A bazel_0_4

Technical details

  • Nixpkgs version: (run nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion) 9a84b52
@abbradar abbradar added 0.kind: regression Something that worked before working no longer 6.topic: darwin Running or building packages on Darwin labels Oct 19, 2017
@LnL7
Copy link
Member

LnL7 commented Oct 21, 2017

replacing /usr/bin/xcrun clang with clang or cc usually fixes these kind of issues.

@abbradar
Copy link
Member Author

What does /usr/bin/xcrun --sdk ${sdkString} --show-sdk-path return?

@copumpkin
Copy link
Member

If it really insists on there being an SDK path, we do actually have a fake xcrun that returns sensible data for our pure toolchain. Just include xcbuild in your buildInputs.

@mboes
Copy link
Contributor

mboes commented Jul 13, 2018

Close? cc @Profpatsch @uri-canva

@Profpatsch
Copy link
Member

Let’s see what ofborg says in #42735 (comment)

@uri-canva
Copy link
Contributor

I'm not using bazel 0.4 on darwin so I haven't looked into it, sorry.

@Profpatsch
Copy link
Member

Hm, I think we can close, since bazel is not yet buildable on Darwin and the newest version is 0.15.1. We are working on getting it to build there, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: regression Something that worked before working no longer 6.topic: darwin Running or building packages on Darwin
Projects
None yet
Development

No branches or pull requests

6 participants