[LLVMbugs] [Bug 10635] New: llvm[5]: Building Clang attribute classes with tblgen segmentation fault, compiling with gcc 4.5.1

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Aug 10 14:23:56 PDT 2011


http://llvm.org/bugs/show_bug.cgi?id=10635

           Summary: llvm[5]: Building Clang attribute classes with tblgen
                    segmentation fault, compiling with gcc 4.5.1
           Product: clang
           Version: 2.9
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: sabujp at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Following the instructions here :

http://clang.llvm.org/get_started.html

using :

./configure --prefix=/sb/meiler/Linux2/x86_64/llvm/2.9 --enable-shared

also had to set:

setenv LD_LIBRARY_PATH
/sb/meiler/Linux2/x86_64/gcc/4.5.1/lib:/sb/meiler/Linux2/x86_64/gcc/4.5.1/lib64

...because I got a GLIBCXX_3.4.9 not available error initially at some point
during the install (running CENTOS5 which has an older default libstdc++).
After I got around that error it seg faulted here:

llvm[5]: Building Clang attribute classes with tblgen
0 tblgen 0x000000000055699f
1 tblgen 0x0000000000556d6a
2 libpthread.so.0 0x000000391ae0eb10
3 tblgen 0x0000000000446b70
4 tblgen 0x000000000052d872
5 libc.so.6 0x000000391a21d994 __libc_start_main + 244
6 tblgen 0x0000000000406379
Stack dump:
0. Program arguments:
/sb/meiler/Linux2/x86_64/llvm/llvm-2.9/build/Release/bin/tblgen -I
/sb/meiler/Linux2/x86_64/llvm/llvm-2.9/tools/clang/include/clang/AST -I
/sb/meiler/Linux2/x86_64/llvm/llvm-2.9/include -I
/sb/meiler/Linux2/x86_64/llvm/llvm-2.9/include -I
/sb/meiler/Linux2/x86_64/llvm/llvm-2.9/lib/Target -gen-clang-attr-classes -o
/sb/meiler/Linux2/x86_64/llvm/llvm-2.9/build/tools/clang/include/clang/AST/Release/Attrs.inc.tmp
-I /sb/meiler/Linux2/x86_64/llvm/llvm-2.9/tools/clang/include/clang/AST/../../
/sb/meiler/Linux2/x86_64/llvm/llvm-2.9/tools/clang/include/clang/AST/../Basic/Attr.td
make[5]: ***
[/sb/meiler/Linux2/x86_64/llvm/llvm-2.9/build/tools/clang/include/clang/AST/Release/Attrs.inc.tmp]
Segmentation fault
make[5]: Leaving directory
`/sb/meiler/Linux2/x86_64/llvm/llvm-2.9/build/tools/clang/include/clang/AST'
make[4]: *** [all] Error 1
make[4]: Leaving directory
`/sb/meiler/Linux2/x86_64/llvm/llvm-2.9/build/tools/clang/include/clang'
make[3]: *** [all] Error 1
make[3]: Leaving directory
`/sb/meiler/Linux2/x86_64/llvm/llvm-2.9/build/tools/clang/include'
make[2]: *** [all] Error 1
make[2]: Leaving directory
`/sb/meiler/Linux2/x86_64/llvm/llvm-2.9/build/tools/clang'
make[1]: *** [clang/.makeall] Error 2
make[1]: Leaving directory `/sb/meiler/Linux2/x86_64/llvm/llvm-2.9/build/tools'
make: *** [all] Error 1

I haven't tried any older versions of gcc/g++ (e.g. 4.2). Has anyone
successfully compiled LLVM+clang with gcc/g++ 4.5.1 ?

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list