mkdir build/android/arm64/llvm
cd build/android/arm64/llvm && /ExtendedAndroidTools/out/host/bin/cmake /ExtendedAndroidTools/projects/llvm/sources/llvm \
-DCMAKE_TOOLCHAIN_FILE=/opt/ndk/android-ndk-r27b/build/cmake/android.toolchain.cmake -DANDROID_USE_LEGACY_TOOLCHAIN_FILE=FALSE -DANDROID_ABI=arm64-v8a -DANDROID_PLATFORM=android-28 -DANDROID_STL=c++_shared -DANDROID_ALLOW_UNDEFINED_SYMBOLS=TRUE -DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/ExtendedAndroidTools/out/android/arm64 -DCMAKE_PREFIX_PATH=/ExtendedAndroidTools/out/android/arm64 -DCMAKE_FIND_ROOT_PATH=/ExtendedAndroidTools/out/android/arm64 -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY -DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE=ONLY \
-DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra" -DLLVM_TARGETS_TO_BUILD="AArch64;BPF" \
-DLLVM_CONFIG_PATH=/ExtendedAndroidTools/out/host/bin/llvm-config \
-DLLVM_TABLEGEN=/ExtendedAndroidTools/out/host/bin/llvm-tblgen \
-DCLANG_TABLEGEN=/ExtendedAndroidTools/out/host/bin/clang-tblgen \
-DLLVM_HOST_TRIPLE=aarch64-none-linux-gnu \
-DLLVM_ENABLE_RTTI=yes \
-DLLVM_INCLUDE_GO_TESTS=OFF \
-DLLVM_INCLUDE_TESTS=OFF \
-DLLVM_INCLUDE_UTILS=OFF \
-DCLANG_BUILD_TOOLS=ON \
-DLLVM_ENABLE_LIBXML2=OFF \
-DLLVM_TOOL_LLVM_RTDYLD_BUILD=OFF \
-DPython3_EXECUTABLE=/ExtendedAndroidTools/out/host/bin/python3.10
-- Android: Targeting API '28' with architecture 'arm64', ABI 'arm64-v8a', and processor 'aarch64'
-- Android: Selected Clang toolchain 'aarch64-linux-android-clang' with GCC toolchain ''
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- The ASM compiler identification is unknown
-- Didn't find assembler
CMake Error at CMakeLists.txt:54 (project):
**The CMAKE_C_COMPILER:
/opt/ndk/android-ndk-r27b/toolchains/llvm/prebuilt/linux-x86/bin/clang
is not a full path to an existing compiler tool.**
Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.
**CMake Error at CMakeLists.txt:54 (project):
The CMAKE_CXX_COMPILER:
/opt/ndk/android-ndk-r27b/toolchains/llvm/prebuilt/linux-x86/bin/clang++**
is not a full path to an existing compiler tool.
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
CMake Error at CMakeLists.txt:54 (project):
No CMAKE_ASM_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable "ASM" or the CMake cache entry CMAKE_ASM_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
-- Warning: Did not find file Compiler/-ASM
-- Configuring incomplete, errors occurred!
The correct path is /opt/ndk/android-ndk-r27b/toolchains/llvm/prebuilt/linux-x86_64/bin/ i think
When I run make bpftools
The correct path is /opt/ndk/android-ndk-r27b/toolchains/llvm/prebuilt/linux-x86_64/bin/ i think