You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to cross-compile lldb-server for Android based on the public documentation here.
I can compile lldb-server for aarch64 using NDK 20 (20.0.5594570). However, using NDK 21 (I tried both 21.1.6352462 and 21.3.6528147) gives a compilation error. There might be a regression (in the compiler frontend?).
Summary:
Android NDK bionic with FORTIFY will override original `open()` definition and making folly `wrapNoInt` template failed to deduct.
The issue may happen only after NDK r21 because [this commit landed after r21](https://android.googlesource.com/platform/bionic/+/9349b9e51b41d12fd054b925802b626ca2db0afb%5E%21/#F0)
References:
android/ndk#1328llvm/llvm-project@0a0e411
Pull Request resolved: #1593
Test Plan:
Tested running `objdump -dr` on the object file generated in both `mode/opt`
and `mode/opt-gcc` build modes and confirmed the generated code was
identical.
Reviewed By: yfeldblum
Differential Revision: D28953120
Pulled By: simpkins
fbshipit-source-id: 225583a5a011e8456592a0bcfcd669fe966ea6af
Description
I was trying to cross-compile
lldb-server
for Android based on the public documentation here.I can compile
lldb-server
for aarch64 using NDK 20 (20.0.5594570). However, using NDK 21 (I tried both 21.1.6352462 and 21.3.6528147) gives a compilation error. There might be a regression (in the compiler frontend?).Here's the error:
Environment Details
Repro instructions
Some of the CMake/LLDB flags above may be redundant, but don't change the outcome.
Note: The following commit might be relevant: llvm/llvm-project@0a0e411
The text was updated successfully, but these errors were encountered: