[LLVMbugs] [Bug 15066] New: crash building llvm/clang

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jan 25 08:30:25 PST 2013


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

             Bug #: 15066
           Summary: crash building llvm/clang
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: lbalbalba at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


When I try to build latest llvm/clang, I get this error :


llvm[4]: Compiling ParseAST.cpp for Release+Asserts build
clang: /usr/local/src/llvm/llvm/tools/clang/lib/AST/Decl.cpp:630: LinkageInfo
clang::NamedDecl::getLinkageAndVisibility() const: Assertion `LV ==
computeLVForDecl(this, false)' failed.
0  clang 0x09c3a159
Stack dump:
0.      Program arguments: /usr/local/bin/clang -cc1 -triple i386-pc-linux-gnu
-emit-obj -disable-free -main-file-name ParseAST.cpp -mrelocation-model pic
-pic-level 2 -relaxed-aliasing -fmath-errno -masm-verbose -mconstructor-aliases
-fuse-init-array -target-cpu pentium4 -target-linker-version 2.22.52.0.1
-momit-leaf-frame-pointer -coverage-file
/usr/local/src/llvm/build/tools/clang/lib/Parse/Release+Asserts/ParseAST.o
-resource-dir /usr/local/bin/../lib/clang/3.3 -dependency-file
/usr/local/src/llvm/build/tools/clang/lib/Parse/Release+Asserts/ParseAST.d.tmp
-MP -MT
/usr/local/src/llvm/build/tools/clang/lib/Parse/Release+Asserts/ParseAST.o -MT
/usr/local/src/llvm/build/tools/clang/lib/Parse/Release+Asserts/ParseAST.d -D
_DEBUG -D _GNU_SOURCE -D __STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS -D
__STDC_LIMIT_MACROS -I /usr/local/src/llvm/build/include -I
/usr/local/src/llvm/build/tools/clang/lib/Parse -I
/usr/local/src/llvm/llvm/include -I
/usr/local/src/llvm/llvm/tools/clang/lib/Parse -I
/usr/local/src/llvm/llvm/tools/clang/lib/Parse/../../include -I
/usr/local/src/llvm/build/tools/clang/lib/Parse/../../include
-fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem
/usr/lib/gcc/i686-redhat-linux/4.7.2/../../../../include/c++/4.7.2
-internal-isystem
/usr/lib/gcc/i686-redhat-linux/4.7.2/../../../../include/c++/4.7.2/i686-redhat-linux
-internal-isystem
/usr/lib/gcc/i686-redhat-linux/4.7.2/../../../../include/c++/4.7.2/backward
-internal-isystem /usr/local/include -internal-isystem
/usr/local/bin/../lib/clang/3.3/include -internal-externc-isystem /include
-internal-externc-isystem /usr/include -O3 -Woverloaded-virtual -Wcast-qual
-Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings
-Wcovered-switch-default -Wno-uninitialized -Wno-missing-field-initializers
-pedantic -fconst-strings -fdeprecated-macro -fdebug-compilation-dir
/usr/local/src/llvm/build/tools/clang/lib/Parse -ferror-limit 19
-fmessage-length 177 -fvisibility-inlines-hidden -mstackrealign -fno-rtti
-fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics
-backend-option -vectorize-loops -o
/usr/local/src/llvm/build/tools/clang/lib/Parse/Release+Asserts/ParseAST.o -x
c++ /usr/local/src/llvm/llvm/tools/clang/lib/Parse/ParseAST.cpp
1.     
/usr/local/src/llvm/llvm/tools/clang/lib/Parse/../../include/clang/AST/DeclObjC.h:985:60:
current parser token '{'
2.     
/usr/local/src/llvm/llvm/tools/clang/lib/Parse/../../include/clang/AST/DeclObjC.h:22:1:
parsing namespace 'clang'
3.     
/usr/local/src/llvm/llvm/tools/clang/lib/Parse/../../include/clang/AST/DeclObjC.h:613:1:
parsing struct/union/class body 'ObjCInterfaceDecl'
clang: error: unable to execute command: Aborted (core dumped)
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.3 (trunk 171337)
Target: i386-pc-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/ParseAST-Qf2h5V.cpp
clang: note: diagnostic msg: /tmp/ParseAST-Qf2h5V.sh
clang: note: diagnostic msg:

********************
/usr/bin/rm: cannot remove
`/usr/local/src/llvm/build/tools/clang/lib/Parse/Release+Asserts/ParseAST.d.tmp':
No such file or directory
make[4]: ***
[/usr/local/src/llvm/build/tools/clang/lib/Parse/Release+Asserts/ParseAST.o]
Error 1
make[4]: Leaving directory `/usr/local/src/llvm/build/tools/clang/lib/Parse'
make[3]: *** [Parse/.makeall] Error 2
make[3]: Leaving directory `/usr/local/src/llvm/build/tools/clang/lib'
make[2]: *** [all] Error 1
make[2]: Leaving directory `/usr/local/src/llvm/build/tools/clang'
make[1]: *** [clang/.makeall] Error 2
make[1]: Leaving directory `/usr/local/src/llvm/build/tools'
make: *** [all] Error 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