lldb on FreeBSD

Hi,

I have built lldb using llvm-3.7 on FreeBSD10 (amd64) and I see this error.

$./lldb

: CommandLine Error: Option ‘aarch64-reserve-x18’ registered more than once!

Abort trap

I did debug a little bit & found that

The global instance “ReserveX18” @ llvm/lib/Target/AArch64/AArch64RegisterInfo.cpp:38

getting initialized twice. Backtrace is attached in a txt file.

The below commit (which is not in llvm-3.7 release) removes this global variable which solves the error.

https://github.com/llvm-mirror/llvm/commit/e934b449d4181ebb92bd40e2dc4a034f114b671b#diff-992adb02aad3be42cdff964655e42801

Is there any other way to resolve this error? or we need to back port the above llvm commit to llvm 3.7 release?

Thanks

Rajendra

ReserveX18_backtrace.txt (7.54 KB)