-
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
Combination of Apple toolchain and java change leading to test failures #17762
Comments
looks like commit was reverted a50cca5 so any CI jobs failing for this will be back to green. @zhengwei143 can you provide context on the internal failures so I can fix them and resubmit? |
also looks like this commit #17767 could solve the original issue here |
I have a fix forward for the internal failure. |
*** Reason for rollback *** Conflicts with #17762 Will instead go with the alternative idea discussed in this PR: #17767 *** Original change description *** Add darwin_arm64 java_tools Build a fat universal binary for java_tools_prebuilt on darwin Work towards: bazelbuild/java_tools#57 and #13944 Closes #16960. PiperOrigin-RevId: 516799739 Change-Id: I2ff5f615bd7c23e38a334bf836c31ed964443c31
*** Reason for rollback *** Conflicts with bazelbuild#17762 Will instead go with the alternative idea discussed in this PR: bazelbuild#17767 *** Original change description *** Add darwin_arm64 java_tools Build a fat universal binary for java_tools_prebuilt on darwin Work towards: bazelbuild/java_tools#57 and bazelbuild#13944 Closes bazelbuild#16960. PiperOrigin-RevId: 516799739 Change-Id: I2ff5f615bd7c23e38a334bf836c31ed964443c31
Thank you for contributing to the Bazel repository! This issue has been marked as stale since it has not had any activity in the last 1+ years. It will be closed in the next 90 days unless any other activity occurs. If you think this issue is still relevant and should stay open, please post any comment here and the issue will no longer be marked as stale. |
Since we took an alternative approach with #17767 I think is now obsolete, closing. |
The combination of #16619 and #16960 lead to some test failures in bazel itself when building targets that depend on the
darwin_universal_binary
rule added in java PR.The failure looks like this:
And is caused by the fact that if you want to build non-host platform macOS binaries you must use the new toolchain that lives in the apple_support repo, which bazel does not. I don't have full context on the java issue so I wanted to file this to discuss possible solutions. I see at least 2 options:
-target
flags, which are just not passed and the compiler picks the default todayI wonder if this change #17547 also would help with that.
I'm happy to take on the changes here soon so we can ideally avoid reverts, but I'm hoping for some feedback before choosing a path here.
// @googlewalt, @comius, @hvadehra
The text was updated successfully, but these errors were encountered: