-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Android arm64 build is broken on boringssl #24321
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
Comments
I have tried updating our android_tools, but the same error is produced by the newest version. |
This is most likely caused by the BoringSSL ARM32 assembly code being used on ARM64 as well. If BoringSSL does not have ARM64 assembly implementation we should use the generic C implementation. |
I have filed an issue with BoringSSL to ask if that is the case. It seems likely, but they actually specifically enable this file for aarch64 in the guards. But this might have been an oversight. There are also errors in the c file, though, so it is not just a matter of changing this guard. Here is the BoringSSL issue (which is public) that I filed. I'll try and get the exact compiler lines to them as well. https://code.google.com/p/chromium/issues/detail?id=530543 |
@zanderso : Could you try removing the "|| defined(aarch64)" from the guard in line 26 of chacha_vec_arm.S, and see if the compilation works? I think this might be sufficient to make it work. The file chacha_vec_arm.S is not included in Chromium builds on aarch64, because Chromium specifies different lists of files to include for each architecture, and doesn't include it for arm64. We include all files for all architectures, and rely on guards in the files to disable them for architectures they don't apply to. This may just be a mistake in the guard. |
The build succeeds after removing that. |
Great - I have submitted the change upstream. We can't change it locally, since the file with the problem is in our checkout of the boringssl repo. We could work around it, but I think it will be sufficient to get this once it is upstreamed. On Mon, Oct 5, 2015 at 5:17 PM, Zachary Anderson [email protected]
William Hesse |
It looks like this change was landed upstream, but we're still on an old version of boringssl. In fact, it looks like we have never update boringssl since it landed. How often do we expect to update it? |
Our update schedule will be limited by Chrome's update schedule, since the I expect we will update it somewhere between twice a year and monthly. We On Tue, Jan 5, 2016 at 12:49 AM, Ryan Macnak [email protected]
William Hesse |
While you are figuring out the ongoing schedule I suggest that you roll to the latest from Chrome now. This will likely solve at least some of the issues we are seeing with the switch to boringssl. Thanks! |
I have a CL that rolls to the lastest BoringSSL from Chrome, which is Dec I think we could do a patch in Dart, by copying the file to our local The Dart CL is https://codereview.chromium.org/1653973006/ The patch is https://boringssl-review.googlesource.com/#/c/7030/ On Mon, Jan 25, 2016 at 8:20 PM, Ivan Posva [email protected]
William Hesse |
to: https://boringssl.googlesource.com/boringssl/+/c880e42ba1c8032d4cdde2aba0541d8a9d9fa2e9 This change also prunes unneeded stuff from our boringssl gyp files. related #26343, #25630, #25256 fixes #25647, #24321 [email protected], [email protected] Review URL: https://codereview.chromium.org/1924693003 .
The fix is still in the pending BoringSSL roll, which is delayed on C11 support. The issue tracking this is |
We rolled BoringSSL, so I think we can close this one. |
Etc.
The text was updated successfully, but these errors were encountered: