-
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
Problems building release-6.1.1 on osx 13.3.1 (22E261) / Xcode 14.3 (14E222b) #18278
Comments
This is a duplicate of #17956. In particular the discussion starting from #17956 (comment). |
That issue is similar, but eventually leads to |
Now seeing the same error on Bazel CI: https://buildkite.com/bazel/bazel-bazel/builds/23347#0188282d-5359-496a-8f03-d004561adf2e |
@keith @googlewalt Is this an issue we should fix in the apple cc toolchain? |
Looks like it's a common problem with Xcode 14.3: https://stackoverflow.com/questions/75574268/missing-file-libarclite-iphoneos-a-xcode-14-3 |
The fix at least on rules_apple was to bump the minimum OS for the affected targets. Is that ok to do for the case failing here too? I think this is just a bad error for Xcode dropping support for old platforms, but I didn't dig since bumping the version was fine for our cases that failed |
and for the zlib warning, at least in bazel, we could just flip that warning flag off. but maybe there's also a version with a fix? |
zlib is being somewhat recalcitrant about fixing: madler/zlib#633 |
Which minimum OS version is required?
The zlib failure has been worked around with a patch. |
With Xcode 14.3+ on x86_64 machines there is an opaque error when linking binaries on macOS because Apple removed an old support library. That library is only linked if the macOS target is < 10.11, so this bumps the default versions past that. This macOS version was released in September 2015. Fixes bazelbuild#18278
Here's a patch #18460, we only have to bump 1 more version. @adam-singer I see you changed a few more places in your patch, can you verify mine is enough? I didn't see any more issues (although I didn't run all tests either) |
(the same patch would need to be applied to the 6.x release branch as well) |
@keith Thanks! I since it's just a minor version bump, I think we should just do it! |
@keith IIUC, users can also work around this issue by passing |
Yep! |
|
With Xcode 14.3+ on x86_64 machines there is an opaque error when linking binaries on macOS because Apple removed an old support library. That library is only linked if the macOS target is < 10.11, so this bumps the default versions past that. This macOS version was released in September 2015. Fixes bazelbuild#18278 Closes bazelbuild#18460. PiperOrigin-RevId: 534743568 Change-Id: I131880096c941df0097fe3b1faabd5a6afada4f3
With Xcode 14.3+ on x86_64 machines there is an opaque error when linking binaries on macOS because Apple removed an old support library. That library is only linked if the macOS target is < 10.11, so this bumps the default versions past that. This macOS version was released in September 2015. Fixes #18278 Closes #18460. PiperOrigin-RevId: 534743568 Change-Id: I131880096c941df0097fe3b1faabd5a6afada4f3 Co-authored-by: Keith Smiley <keithbsmiley@gmail.com>
With Xcode 14.3+ on x86_64 machines there is an opaque error when linking binaries on macOS because Apple removed an old support library. That library is only linked if the macOS target is < 10.11, so this bumps the default versions past that. This macOS version was released in September 2015. Fixes bazelbuild#18278 Closes bazelbuild#18460. PiperOrigin-RevId: 534743568 Change-Id: I131880096c941df0097fe3b1faabd5a6afada4f3
Description of the bug:
Seems to be a few different failures when trying to build bazel for osx locally using OSX 13.3.1 (22E261) / Xcode 14.3 (14E222b).
The following seems to have resolved the build issue for me, but it just highlights what I removed to get things working, does not resolve the potential issue of version/breaking situations with latest Xcode and bazel osx build setup:
release-6.1.1...adam-singer:bazel:adam-singer/release-6.1.1-arc-removed-min-os-13.3
Main things added / removed
unistd.h
for osx inthird_party/zlib
headers.macos_minimum_os
to13.3
-fobjc-arc
flag.zlib failure message
ARC failure messages
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Using OSX 13.3.1 (22E261) / Xcode 14.3 (14E222b) on release-6.1.1
Which operating system are you running Bazel on?
OSX 13.3.1 (22E261)
What is the output of
bazel info release
?release 6.1.2
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD
?Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: