Issue 54727
Summary build android lldb-server error
Labels new issue
Assignees
Reporter RickyCong
    ## this is my command
```bash
export PATH=/home/ubuntu/Android/Sdk/ndk/25.0.8221429/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH
export PATH=/home/ubuntu/Downloads/ninja/build-cmake:$PATH
export ANDROID_NDK_HOME=/home/ubuntu/Android/Sdk/ndk/25.0.8221429


cd /home/ubuntu/Downloads/llvm-project

mkdir build 
cd build

cmake -B /home/ubuntu/Downloads/llvm-project/build -G Ninja -DLLVM_ENABLE_PROJECTS="clang;lldb" \
-DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_HOME/build/cmake/android.toolchain.cmake \
-DANDROID_ABI=arm64-v8a \
-DANDROID_PLATFORM=android-21 \
-DANDROID_ALLOW_UNDEFINED_SYMBOLS=On \
-DLLVM_HOST_TRIPLE=aarch64-unknown-linux-android \
-DCROSS_TOOLCHAIN_FLAGS_NATIVE='-DCMAKE_C_COMPILER=cc;-DCMAKE_CXX_COMPILER=c++' \
/home/ubuntu/Downloads/llvm-project/llvm

ninja lldb-server

```
## this is get error
``` bash
/home/ubuntu/Downloads/llvm-project/lldb/source/Host/common/PseudoTerminal.cpp:94:20: error: no matching function for call to 'RetryAfterSignal'
  m_secondary_fd = llvm::sys::RetryAfterSignal(-1, ::open, name.c_str(), oflag);
                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ubuntu/Downloads/llvm-project/llvm/include/llvm/Support/Errno.h:32:23: note: candidate template ignored: couldn't infer template argument 'Fun'
inline decltype(auto) RetryAfterSignal(const FailT &Fail, const Fun &F,
                      ^
1 error generated.
[2118/2730] Building CXX object tools/clang/lib/Ser...akeFiles/obj.clangSerialization.dir/ASTReader.cpp.o
ninja: build stopped: subcommand failed.

```
![error ](https://user-images.githubusercontent.com/46929436/161437247-0868b69d-6d9a-40a4-8ce8-ea79ecbf8213.png)

_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to