[lldb-3.4] 'host' Platform architecture error

Hello,

I am trying to run a program with lldb-3.4 but I always get the same error :

$ uname -a

Linux llvm-dev-x64 3.11.0-12-generic #19-Ubuntu SMP Oct 9 16:20:46 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

$ clang -v

Ununtu clang version 3.4-1ubuntu1 (trunk) (based on LLVM 3.4)

Target: x86_64-pc-linux-gnu

Thread model: posix

$ cat test.c

#include <stdio.h>

int main(void) {

int n = 5;

printf(“n=%i\n”, n);

return 0;

}

$ clang test.c -emit-llvm -c -o test.o

$ lldb-3.4 -v

lldb version 3.4 ( revision )

$ lldb-3.4 test.o

error: ‘/home/llvm/tmp/test.o’ doesn’t contain any ‘host’ platform architectures: x86_64, i396

(lldb)

Thank you in advance,
Best regards.

If you can attach your .o file, I can take a look.

and is the "i396" a typo in the error message?

Hello Greg,

Please find attached the ‘test.o’ file.

i396 is definitly a typo of mine (i386 was meant).

Best regards,

Maxime.

test.c (83 Bytes)

test.ll (1.08 KB)

test.o (1.22 KB)