[Bug 24548] New: Build fails on unsupported archs for Native Thread

Bug ID 24548
Summary Build fails on unsupported archs for Native Thread
Product lldb
Version 3.7
Hardware PC
OS Linux
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter sylvestre@debian.org
CC llvm-bugs@lists.llvm.org
Classification Unclassified

On s390x, lldb fails to build with:
/«BUILDDIR»/llvm-toolchain-3.7-3.7~+rc3/tools/lldb/source/Plugins/Process/Linux/NativeThreadLinux.cpp:167:29:
error: 'NativeRegisterContextLinux' has not been declared

Full log:
[https://buildd.debian.org/status/fetch.php?pkg=llvm-toolchain-3.7&arch=s390x&ver=1%3A3.7~%2Brc3-1&stamp=1440186826](https://buildd.debian.org/status/fetch.php?pkg=llvm-toolchain-3.7&arch=s390x&ver=1%3A3.7~%2Brc3-1&stamp=1440186826)

Instead of failure, we should disable the feature on unsupported arch.

labath@google.com changed bug 24548

What | Removed | Added |

Comment # 1 on bug 24548 from labath@google.com

I am unsure what is the "feature" you want disabled. NativeThreadLinux is an
essential component of lldb and without it you will not be able to debug any
local process. So it sounds to me like you can disable all of lldb (by not
checking it out in the first place).

In theory we might try to disable local debugging and leave you with an lldb
capable of remote debugging, but I am unsure how useful would that be..

What is it that you are trying to achieve here?