-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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.5.0 build fails on Mac OS X El Capitan #3063
Comments
Can you try to rebuild after |
(I use macOS El Capitan without issue, btw) |
I still have the same issue:
|
/cc @mhlopko undetected regression of 0.5.0 :( @c-parsons this is happening because xcode_locator does not returns any toolchain, I don't know how it works but if we do not find a user side workaround, we need to do a patch release. |
@zanes2016: as much information about your xcode installation would help. |
|
/cc @c-parsons now Bazel is failing to build C++ code if you don't have xcode installed. @zanes2016 seems like my only fix right now is to install xcode :( sorry for that. |
I've thrown together a fix for this, sending it to you right now, Damien. |
Well if installing xcode fix the issue this might be an acceptable workaround. 0.5.1 should be in less than a month. Yes having all the use case in a CI is hard. |
Looks like #3060 is another instance of this? |
Indeed it is, we will start seeing a lot of bug report, good thing I am in the US right now, I'll might cut a patch release if that start to have a lot of feedback. |
(but first I would like to confirm @c-parsons fix is working, which I believe should be ok) |
Any idea how to test it? |
@damienmg I should be available for a hangout in about 20 minutes |
@damienmg I am available right now. |
Best plan of action we have right now:
Up to 4 there is no need for further agreement, I let the rest of the Munich team decide on 3 on Monday while the US are on holidays. @zanes2016 @zhexuany thanks! mail me at [email protected] so we can chat on hangout (or ping me on irc freenode / dmarting). I need 10-20 min to prepare the rc branch |
Closes #13967. Signed-off-by: ilovezfs <[email protected]>
For completeness, I've also verified that this issue exists on MacOS Sierra:
|
@zhexuany tested it with Xcode, still failing, might need more than the default install. With definitely needs a patch release. |
hope this can help in some senses. |
FTR the test rc failed to build the release notes, I'll can extract the binary for test but a patch release seems like it has a hard time or it is because I tweaked the cherry-picking. |
The darwin package has been suceesfully built so we can at least test the fix itself. |
I fully agree, let's wait for @c-parsons to tell us what parts of Xcode Bazel needs. |
RELNOTES: None PiperOrigin-RevId: 157393208
US are on holiday today. The principle fix will takes several patch to do,
I was leaning toward a rollback but the rollback has conflict with 2 of
your changes, it was already late so I just handover the bug to you.
Homebrew has reverted the update so no new client will install it, avoiding
more people coming here. I added a message to the release notes page, maybe
it is not really visible.
Bazel does not requires Xcode to build C++ code, only to bootstrap. We
should keep it that way.
…On Mon, May 29, 2017 at 4:32 AM Marcel Hlopko ***@***.***> wrote:
I fully agree, let's wait for @c-parsons <https://github.com/c-parsons>
to tell us what parts of Xcode Bazel needs.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3063 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADjHf9yyLElnoXeI0UmHiiETD9vqxi0yks5r-qzhgaJpZM4NoEvI>
.
|
RELNOTES: None. PiperOrigin-RevId: 157401168
Hello folks. Sorry for the inconvenience. |
Hello everybody, https://storage.googleapis.com/bazel/0.5.1/rc1/index.html If yes, I'll close this issue. Thanks! |
Marcel,
0.5.1 will only contain this fix, right?
…On Wed, 31 May 2017 at 18:17 Marcel Hlopko ***@***.***> wrote:
Hello everybody,
Chris was super fast with the fix, and we have a 0.5.1RC1 ready. Would you
mind testing it if it fixes the problem for you? You can get it from
https://storage.googleapis.com/bazel/0.5.1/rc1/index.html
If yes, I'll close this issue. Thanks!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3063 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABUIF-v-in6R55kyWhFB9grTJ6iJ4wUUks5r_YSPgaJpZM4NoEvI>
.
|
0.5.1RC1 seems to fix the problem for me on OS X 10.11.6. Thanks! |
I've now shipped 0.5.1 in Homebrew. |
@c-parsons |
Just to be sure, also after |
My bad. Now error is gone. Thanks. |
Error is still present in 10.13 High Sierra |
Ran into this error today after upgrading to 0.5.2 in homebrew. |
@philipposslicher @varming: reopening a new bug. |
ERROR: /private/var/tmp/_bazel_phynero/759a3c362e95012bc330dc146849fc13/external/local_config_cc/BUILD:49:5: in apple_cc_toolchain rule @local_config_cc//:cc-compiler-darwin_x86_64: Xcode version must be specified to use an Apple CROSSTOOL. T-T WHAT CAN IDO |
xcode_config(name = 'host_xcodes') Error: Running xcodebuild -version failed, return code 72, stderr: xcrun: error: unable to find utility "xcodebuild", not a developer tool or in PATH , stdout: |
What type of target are you trying to build? |
I fixed this by running (Sadly, I then encountered |
I just had this problem on OSX 10.12.6 with bazel 0.5.4, and it was fixed by running |
dpursehouse: Can you provide more information? Did you have XCode installed beforehand? What kind of project were you trying to build? |
@c-parsons yes, I have XCode (version 9.0) installed. I was building the gerrit project. The error appeared suddenly, having not appeared before. I had not upgraded bazel or XCode. The only thing that might be related is that I regularly switch between and build different branches. |
Description of the problem / feature request / question:
Bazel build fails on Mac OS X El Capitan (Version 10.11.6). The same build completes without any issue on Ubuntu 14.04. It looks like this is a mac specific issue.
Mac (build error):
Ubuntu (no error):
If possible, provide a minimal example to reproduce the problem:
On a mac, the following produces the error
Environment info
Operating System:
ProductName: Mac OS X
ProductVersion: 10.11.6
BuildVersion: 15G1510
Bazel version (output of
bazel info release
):release 0.5.0-homebrew
Anything else, information or logs or outputs that would be helpful?
I'm trying to build the same project on both mac and ubuntu which is version controlled with git. So i'm confident that the two build sources are identical.
The text was updated successfully, but these errors were encountered: