-
Notifications
You must be signed in to change notification settings - Fork 74k
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
Fail to compile TF 2.12.0 with XCode 14.3 due to Compiler flag in boringssl/src/crypto/x509 #60191
Comments
The issue is related to an unused variable in Patch: issue_60191_patch.txt |
@feranick Thank you! |
At some point compilation will stop with the error in this issue. To fix it:
Patch: |
There might be ways to disable the Removing the variable should be applied in the ustream version as well (or make it do something useful, if that was the intent) |
Note: the issue is not present in the master git for boringssl: Th unused variable is simply removed as per my patch above. Therefore TF either needs to resync boringssl for a newer release or apply my patch (attached). |
Thanks for bringing this with the solution. If you are willing to contribute please feel free to raise a PR. Thanks! |
I would... Unfortunately the library is not included in the main TF tree, as it is pulled from private google servers. It needs to be fixed internally. BTW, TF pulls a specific version (can't tell you which one), but the bug is no longer present in the current master for boringssl (basically it has my patch applied). So bazel or whatever software pulls boringssl from the server needs to be updated to pull a more recent version, something only people with access to Google boringssl private repo can do. |
Also, correct me if I am wrong.The file you mentioned for correction seems to be a temp file generated during bazel build.Not sure we can fix this from TF source tree. May be its related to Bazel. I have gone through the bazel build docs in TF repo and found this one have some context for boring SSL. tensorflow/tensorflow/workspace2.bzl Lines 557 to 563 in bc54be8
Whether we can do something here by changing URL or any thing to rectify this problem ? |
Yes, you are correct. Bazel builds it within a temporary folder. And yes, I would think changing the URL might do it. However, I am not sure what URL/file to use from git as it probably uses an internal branch that is tar zipped. So the question is whether that package is there exclusively for TF... Maybe one can create a new package branched from main and placed in the same folder and then correct the reference URL in bazel.... |
OK, on a deeper inspection, it seems that the link has been already fixed in TF master. When looking at TF Master:
while for TF 2.12.0:
So, in principle, one would only need to replace the reference links in |
I am doing a test build where I replaced the strings above from main. Will report shortly. |
So far compilation is proceeding normally, beyond the point where it would crash because of this issue. It seems like the proposed solution (swapping the |
I can confirm that compilation proceeds correctly on any platform I tried (MacOSX, linux). |
Pull request is in #60259 |
Thanks for all your effort and time in resolving and raising the PR. Our Team will review and update. Thanks! |
Hi @feranick , I can see nightly build was updated as required. tensorflow/tensorflow/workspace2.bzl Lines 569 to 575 in 0bc361b
Can we mark this as resolved. Please spare some time to verify and close the issue. Thanks! |
It works now. Thanks for pushing it. Closing. |
Fetching boringssl within the flatbuffers repository, to patch the issues of not being able to upgrade to Xcode 14.3 due to buildkite throwing errors. The patch was inspired by the tenserflow patch tensorflow/tensorflow#60191 (comment) Removes references of swift from the windows pipeline for bazel Sets github actions to use xcode 14.3 for kotlin and sets the macOS build for intel cpus.
* Fixes Bazel issues for windows and ci Fetching boringssl within the flatbuffers repository, to patch the issues of not being able to upgrade to Xcode 14.3 due to buildkite throwing errors. The patch was inspired by the tenserflow patch tensorflow/tensorflow#60191 (comment) Removes references of swift from the windows pipeline for bazel Sets github actions to use xcode 14.3 for kotlin and sets the macOS build for intel cpus. * Update build.yml Remove comment that is not relevant any longer. --------- Co-authored-by: Derek Bailey <derekbailey@google.com>
Click to expand!
Issue Type
Bug
Have you reproduced the bug with TF nightly?
No
Source
source
Tensorflow Version
2.12.0
Custom Code
No
OS Platform and Distribution
macOS 13.3
Mobile device
No response
Python version
3.10
Bazel version
5.3.0
GCC/Compiler version
XCode 14.3
CUDA/cuDNN version
No response
GPU model and memory
No response
Current Behaviour?
Standalone code to reproduce the issue
Relevant log output
The text was updated successfully, but these errors were encountered: