Open DoDoENT opened 2 years ago
@llvm/issue-subscribers-lldb
@omjavaid
LLDB build does not require kernel support for SVE but requires header to be present in your toolchain sysroot path. You may use a fairly recent arm toolchain like for example https://developer.arm.com/-/media/Files/downloads/gnu-a/10.3-2021.07/binrel/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu.tar.xz It contains an updated ptrace.h containing user_sve_header definitions at libc/usr/include/asm/ptrace.h
I think will be reasonable to check availability of user_sve_header
definitions at CMake configuration time.
I'm trying to build full LLVM 13 toolchain within Amazon Linux 2 ARM64 docker and compilation of LLDB fails with:
I've discovered that a similar issue has been also discovered in spack and the underlying problem is that Amazon Linux 2 is running on Kernel 4.14 which does not provide
user_sve_header
that has been added to kernel 4.15.The main question is why does LLDB need a kernel with SVE support on non-SVE CPU? Should we add support for building the LLDB without SVE support?