Build Error

I am getting the following error while building llvm

make[2]: Entering directory /home/loi/dev/build/lib/Target' make[3]: Entering directory /home/loi/dev/build/lib/Target/X86’
llvm[3]: Building X86.td register info implementation with tblgen
0 llvm-tblgen 0x000000000063bd2e
1 llvm-tblgen 0x000000000063c00b
2 llvm-tblgen 0x000000000063d69e
3 libpthread.so.0 0x00002b299a6e2340
4 llvm-tblgen 0x00000000005fec9c
5 llvm-tblgen 0x00000000005e80df
6 llvm-tblgen 0x00000000005e47b8
7 llvm-tblgen 0x00000000005e8498
8 llvm-tblgen 0x00000000006107af
9 llvm-tblgen 0x000000000060b019
10 llvm-tblgen 0x0000000000611423
11 llvm-tblgen 0x0000000000611c86
12 llvm-tblgen 0x00000000006120c8
13 llvm-tblgen 0x0000000000612526
14 llvm-tblgen 0x00000000006134d0
15 llvm-tblgen 0x0000000000613145
16 llvm-tblgen 0x00000000006131e2
17 llvm-tblgen 0x0000000000615b8f
18 llvm-tblgen 0x00000000005d9e24
19 llvm-tblgen 0x00000000005c47f4
20 libc.so.6 0x00002b299b335ec5 __libc_start_main + 245
21 llvm-tblgen 0x0000000000405438
Stack dump:
0. Program arguments: /home/loi/dev/build/Debug+Asserts/bin/llvm-tblgen -I /home/loi/dev/llvm/lib/Target/X86 -I /home/loi/dev/llvm/include -I /home/loi/dev/llvm/include -I /home/loi/dev/llvm/lib/Target -gen-register-info -o /home/loi/dev/build/lib/Target/X86/Debug+Asserts/X86GenRegisterInfo.inc.tmp /home/loi/dev/llvm/lib/Target/X86/X86.td
make[3]: *** [/home/loi/dev/build/lib/Target/X86/Debug+Asserts/X86GenRegisterInfo.inc.tmp] Segmentation fault (core dumped)
make[3]: Leaving directory /home/loi/dev/build/lib/Target/X86' make[2]: *** [X86/.makeall] Error 2 make[2]: Leaving directory /home/loi/dev/build/lib/Target’
make[1]: *** [Target/.makeall] Error 2
make[1]: Leaving directory `/home/loi/dev/build/lib’
make: *** [all] Error 1

Any help would be appreciated/

Regards,
Pratik