Created
December 25, 2011 17:44
-
-
Save vys/1519539 to your computer and use it in GitHub Desktop.
clang crashes while trying to build latest git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is the console output on Centos 6.1 where clang/llvm 3.0 was installed from sources. I was trying to build git source from git repo. | |
[root@v6 git]# make | |
CC daemon.o | |
0 clang 0x0000000001a4bc7f | |
1 clang 0x0000000001a4d9aa | |
2 libpthread.so.0 0x00007f6a70584490 | |
3 clang 0x0000000001039b64 | |
4 clang 0x0000000001039d9a clang::SourceManager::getLineNumber(clang::FileID, unsigned int, bool*) const + 330 | |
5 clang 0x000000000103c9c0 clang::SourceManager::getPresumedLoc(clang::SourceLocation) const + 240 | |
6 clang 0x00000000006c362e clang::TextDiagnosticPrinter::HandleDiagnostic(clang::DiagnosticsEngine::Level, clang::Diagnostic const&) + 686 | |
7 clang 0x000000000102af1e clang::DiagnosticIDs::ProcessDiag(clang::DiagnosticsEngine&) const + 302 | |
8 clang 0x0000000001026451 clang::DiagnosticBuilder::Emit() + 33 | |
9 clang 0x0000000000950419 clang::Sema::SemaDiagnosticBuilder::~SemaDiagnosticBuilder() + 2441 | |
10 clang 0x00000000009db802 clang::Sema::DiagnoseUnknownTypeName(clang::IdentifierInfo const&, clang::SourceLocation, clang::Scope*, clang::CXXScopeSpec*, clang::OpaquePtr<clang::QualType>&) + 2402 | |
11 clang 0x000000000091ad85 clang::Parser::ParseImplicitInt(clang::DeclSpec&, clang::CXXScopeSpec*, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier) + 421 | |
12 clang 0x0000000000917347 clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&, clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier, clang::Parser::DeclSpecContext) + 7159 | |
13 clang 0x0000000000902bcf clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&, clang::AccessSpecifier) + 95 | |
14 clang 0x00000000009032de clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&, clang::AccessSpecifier) + 686 | |
15 clang 0x0000000000906f7d clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::Parser::ParsingDeclSpec*) + 2125 | |
16 clang 0x000000000090722f clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 159 | |
17 clang 0x00000000008e2625 clang::ParseAST(clang::Sema&, bool) + 293 | |
18 clang 0x00000000007b3533 clang::CodeGenAction::ExecuteAction() + 51 | |
19 clang 0x000000000068e4b5 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 309 | |
20 clang 0x000000000067b288 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1320 | |
21 clang 0x00000000006720f8 cc1_main(char const**, char const**, char const*, void*) + 792 | |
22 clang 0x000000000067a2b4 main + 6740 | |
23 libc.so.6 0x00007f6a6f860cdd __libc_start_main + 253 | |
24 clang 0x00000000006706c9 | |
Stack dump: | |
0. Program arguments: /usr/local/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -disable-llvm-verifier -main-file-name daemon.c -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.20.51.0.2 -momit-leaf-frame-pointer -g -coverage-file daemon.o -resource-dir /usr/local/bin/../lib/clang/3.0 -dependency-file ./.depend/daemon.o.d -MT daemon.o -MP -D HAVE_PATHS_H -D HAVE_DEV_TTY -D SHA1_HEADER=<openssl/sha.h> -D NO_STRLCPY -I . -fmodule-cache-path /var/tmp/clang-module-cache -internal-isystem /usr/local/include -internal-isystem /usr/local/bin/../lib/clang/3.0/include -internal-externc-isystem /usr/include -O2 -ferror-limit 19 -fmessage-length 204 -pthread -fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi -fdiagnostics-show-option -fcolor-diagnostics -o daemon.o -x c daemon.c | |
1. clang: error: unable to execute command: Segmentation fault (core dumped) | |
clang: error: clang frontend command failed due to signal 2 (use -v to see invocation) | |
clang: note: diagnostic msg: Please submit a bug report to http://llvm.org/bugs/ and include command line arguments and all diagnostic information. | |
clang: error: unable to execute command: Segmentation fault (core dumped) | |
clang: note: diagnostic msg: Error generating preprocessed source(s). | |
make: *** [daemon.o] Error 254 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment