[cfe-commits] ToT Fails To Build LLVM

Chandler Carruth chandlerc at google.com
Wed Mar 14 20:29:50 PDT 2012


FYI, I think this may have been Richard's r152761, which Daniel just
reverted to fix bootstrap. Are you still seeing this?

On Wed, Mar 14, 2012 at 6:41 PM, Bill Wendling <wendling at apple.com> wrote:

> ToT Clang is failing to build LLVM:
>
> llvm[1]: Compiling Allocator.cpp for Debug+Asserts build
> 0  clang             0x000000010bf09e52 _ZL15PrintStackTracePv + 34
> 1  clang             0x000000010bf0a449 _ZL13SignalHandleri + 777
> 2  libsystem_c.dylib 0x00007fff8ed48cfa _sigtramp + 26
> 3  libsystem_c.dylib 0x00007fff6a5d4558 _sigtramp + 18446744073097754744
> 4  clang             0x000000010b325a3e
> _ZL19EvaluateVarDeclInitRN12_GLOBAL__N_18EvalInfoEPKN5clang4ExprEPKNS2_7VarDeclEPNS_14CallStackFrameERNS2_7APValueE
> + 542
> 5  clang             0x000000010b3254c7
> _ZL30HandleLValueToRValueConversionRN12_GLOBAL__N_18EvalInfoEPKN5clang4ExprENS2_8QualTypeERKNS_6LValueERNS2_7APValueE
> + 1479
> 6  clang             0x000000010b347a4e (anonymous
> namespace)::IntExprEvaluator::VisitCastExpr(clang::CastExpr const*) + 382
> 7  clang             0x000000010b33f969
> clang::StmtVisitorBase<clang::make_const_ptr, (anonymous
> namespace)::IntExprEvaluator, bool>::Visit(clang::Stmt const*) + 2281
> 8  clang             0x000000010b321bd5 (anonymous
> namespace)::IntExprEvaluator::Visit(clang::Expr const*) + 133
> 9  clang             0x000000010b347b8f (anonymous
> namespace)::IntExprEvaluator::VisitCastExpr(clang::CastExpr const*) + 703
> 10 clang             0x000000010b33f969
> clang::StmtVisitorBase<clang::make_const_ptr, (anonymous
> namespace)::IntExprEvaluator, bool>::Visit(clang::Stmt const*) + 2281
> 11 clang             0x000000010b321bd5 (anonymous
> namespace)::IntExprEvaluator::Visit(clang::Expr const*) + 133
> 12 clang             0x000000010b34395e (anonymous
> namespace)::IntExprEvaluator::VisitBinaryOperator(clang::BinaryOperator
> const*) + 9598
> 13 clang             0x000000010b340daa
> clang::StmtVisitorBase<clang::make_const_ptr, (anonymous
> namespace)::IntExprEvaluator, bool>::Visit(clang::Stmt const*) + 7466
> 14 clang             0x000000010b321bd5 (anonymous
> namespace)::IntExprEvaluator::Visit(clang::Expr const*) + 133
> 15 clang             0x000000010b320d3a
> _ZL8EvaluateRN5clang7APValueERN12_GLOBAL__N_18EvalInfoEPKNS_4ExprE + 426
> 16 clang             0x000000010b3416c5 (anonymous
> namespace)::IntExprEvaluator::VisitBinaryOperator(clang::BinaryOperator
> const*) + 741
> 17 clang             0x000000010b340daa
> clang::StmtVisitorBase<clang::make_const_ptr, (anonymous
> namespace)::IntExprEvaluator, bool>::Visit(clang::Stmt const*) + 7466
> 18 clang             0x000000010b340806
> clang::StmtVisitorBase<clang::make_const_ptr, (anonymous
> namespace)::IntExprEvaluator, bool>::Visit(clang::Stmt const*) + 6022
> 19 clang             0x000000010b321bd5 (anonymous
> namespace)::IntExprEvaluator::Visit(clang::Expr const*) + 133
> 20 clang             0x000000010b320d3a
> _ZL8EvaluateRN5clang7APValueERN12_GLOBAL__N_18EvalInfoEPKNS_4ExprE + 426
> 21 clang             0x000000010b31d027
> _ZL15EvaluateInPlaceRN5clang7APValueERN12_GLOBAL__N_18EvalInfoERKNS2_6LValueEPKNS_4ExprENS2_27CheckConstantExpressionKindEb
> + 263
> 22 clang             0x000000010b31cdf1
> clang::Expr::EvaluateAsInitializer(clang::APValue&, clang::ASTContext
> const&, clang::VarDecl const*,
> llvm::SmallVectorImpl<std::pair<clang::SourceLocation,
> clang::PartialDiagnostic> >&) const + 993
> 23 clang             0x000000010b2d4c47
> clang::VarDecl::evaluateValue(llvm::SmallVectorImpl<std::pair<clang::SourceLocation,
> clang::PartialDiagnostic> >&) const + 151
> 24 clang             0x000000010b3259c8
> _ZL19EvaluateVarDeclInitRN12_GLOBAL__N_18EvalInfoEPKN5clang4ExprEPKNS2_7VarDeclEPNS_14CallStackFrameERNS2_7APValueE
> + 424
> 25 clang             0x000000010b3254c7
> _ZL30HandleLValueToRValueConversionRN12_GLOBAL__N_18EvalInfoEPKN5clang4ExprENS2_8QualTypeERKNS_6LValueERNS2_7APValueE
> + 1479
> 26 clang             0x000000010b31be44
> _ZL16EvaluateAsRValueRN12_GLOBAL__N_18EvalInfoEPKN5clang4ExprERNS2_7APValueE
> + 196
> 27 clang             0x000000010b31bc9c
> clang::Expr::EvaluateAsRValue(clang::Expr::EvalResult&, clang::ASTContext
> const&) const + 716
> 28 clang             0x000000010acec957
> _ZN12_GLOBAL__N_1L12GetExprRangeERN5clang10ASTContextEPNS0_4ExprEj + 71
> 29 clang             0x000000010acebb23 (anonymous
> namespace)::CheckImplicitConversion(clang::Sema&, clang::Expr*,
> clang::QualType, clang::SourceLocation, bool*) + 3539
> 30 clang             0x000000010ace766a
> _ZN12_GLOBAL__N_1L26AnalyzeImplicitConversionsERN5clang4SemaEPNS0_4ExprENS0_14SourceLocationE
> + 106
> 31 clang             0x000000010ace7bd9
> _ZN12_GLOBAL__N_1L26AnalyzeImplicitConversionsERN5clang4SemaEPNS0_4ExprENS0_14SourceLocationE
> + 1497
> 32 clang             0x000000010ae2055f
> clang::Sema::ActOnFinishFullExpr(clang::Expr*) + 239
> 33 clang             0x000000010ac93c50
> clang::Parser::ParseIfStatement(clang::ParsedAttributes&,
> clang::SourceLocation*) + 528
> 34 clang             0x000000010ac918a0
> clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector<clang::Stmt*,
> 32u>&, bool, clang::SourceLocation*) + 2368
> 35 clang             0x000000010ac98633
> clang::Parser::ParseCompoundStatementBody(bool) + 1427
> 36 clang             0x000000010ac99e5f
> clang::Parser::ParseFunctionStatementBody(clang::Decl*,
> clang::Parser::ParseScope&) + 175
> 37 clang             0x000000010aca8500
> clang::Parser::ParseFunctionDefinition(clang::Parser::ParsingDeclarator&,
> clang::Parser::ParsedTemplateInfo const&,
> llvm::SmallVector<clang::Parser::LateParsedAttribute*, 2u>*) + 2560
> 38 clang             0x000000010ac9c138
> clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int,
> clang::Parser::ParsedTemplateInfo const&,
> clang::Parser::ParsingDeclRAIIObject&, clang::SourceLocation&,
> clang::AccessSpecifier, clang::AttributeList*) + 2824
> 39 clang             0x000000010ac9b2b1
> clang::Parser::ParseTemplateDeclarationOrSpecialization(unsigned int,
> clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) + 929
> 40 clang             0x000000010ac9ae0d
> clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int,
> clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) + 477
> 41 clang             0x000000010ac4afb3
> clang::Parser::ParseDeclaration(clang::ASTOwningVector<clang::Stmt*, 32u>&,
> unsigned int, clang::SourceLocation&,
> clang::Parser::ParsedAttributesWithRange&) + 419
> 42 clang             0x000000010aca6556
> clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
> clang::Parser::ParsingDeclSpec*) + 1750
> 43 clang             0x000000010ac5b408
> clang::Parser::ParseInnerNamespace(std::vector<clang::SourceLocation,
> std::allocator<clang::SourceLocation> >&,
> std::vector<clang::IdentifierInfo*, std::allocator<clang::IdentifierInfo*>
> >&, std::vector<clang::SourceLocation,
> std::allocator<clang::SourceLocation> >&, unsigned int,
> clang::SourceLocation&, clang::ParsedAttributes&,
> clang::Parser::BalancedDelimiterTracker&) + 264
> 44 clang             0x000000010ac5ae0f
> clang::Parser::ParseNamespace(unsigned int, clang::SourceLocation&,
> clang::SourceLocation) + 4879
> 45 clang             0x000000010ac4b08a
> clang::Parser::ParseDeclaration(clang::ASTOwningVector<clang::Stmt*, 32u>&,
> unsigned int, clang::SourceLocation&,
> clang::Parser::ParsedAttributesWithRange&) + 634
> 46 clang             0x000000010aca6556
> clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
> clang::Parser::ParsingDeclSpec*) + 1750
> 47 clang             0x000000010aca5e09
> clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) +
> 249
> 48 clang             0x000000010ac42995 clang::ParseAST(clang::Sema&,
> bool) + 309
> 49 clang             0x000000010ac0df9f
> clang::CodeGenAction::ExecuteAction() + 1039
> 50 clang             0x000000010aa016d2
> clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 978
> 51 clang             0x000000010a9e859b
> clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3147
> 52 clang             0x000000010a9df492 cc1_main(char const**, char
> const**, char const*, void*) + 5458
> 53 clang             0x000000010a9e47aa main + 682
> 54 clang             0x000000010a9ddf34 start + 52
> 55 clang             0x0000000000000050 start + 18446744069236466000
> Stack dump:
> 0.      Program arguments:
> /Users/void/llvm/llvm-opt.obj/Release+Asserts/bin/clang -cc1 -triple
> x86_64-apple-macosx10.7.0 -emit-obj -mrelax-all -disable-free
> -main-file-name Allocator.cpp -pic-level 1 -mdisable-fp-elim -masm-verbose
> -munwind-tables -target-cpu core2 -g -coverage-file
> /Users/void/llvm/llvm.obj/lib/Support/Debug+Asserts/Allocator.o
> -resource-dir
> /Users/void/llvm/llvm-opt.obj/Release+Asserts/bin/../lib/clang/3.1
> -dependency-file
> /Users/void/llvm/llvm.obj/lib/Support/Debug+Asserts/Allocator.d.tmp -MP -MT
> /Users/void/llvm/llvm.obj/lib/Support/Debug+Asserts/Allocator.o -MT
> /Users/void/llvm/llvm.obj/lib/Support/Debug+Asserts/Allocator.d -D _DEBUG
> -D _GNU_SOURCE -D __STDC_CONSTANT_MACROS -D __STDC_FORMAT_MACROS -D
> __STDC_LIMIT_MACROS -I /Users/void/llvm/llvm.obj/include -I
> /Users/void/llvm/llvm.obj/lib/Support -I /Users/void/llvm/llvm.src/include
> -I /Users/void/llvm/llvm.src/lib/Support -fmodule-cache-path
> /var/folders/v7/xx0tg22s1r97p9hg01fr1ybh0000gn/T/clang-module-cache
> -Woverloaded-virtual -Wcast-qual -Wall -W -Wno-unused-parameter
> -Wwrite-strings -Wcovered-switch-default -fconst-strings -fdeprecated-macro
> -fdebug-compilation-dir /Users/void/llvm/llvm.obj/lib/Support -ferror-limit
> 19 -fmessage-length 183 -fvisibility-inlines-hidden -stack-protector 1
> -mstackrealign -fblocks -fobjc-runtime-has-arc -fobjc-runtime-has-weak
> -fobjc-dispatch-method=mixed -fobjc-default-synthesize-properties
> -fno-common -fdiagnostics-show-option -fcolor-diagnostics -o
> /Users/void/llvm/llvm.obj/lib/Support/Debug+Asserts/Allocator.o -x c++
> /Users/void/llvm/llvm.src/lib/Support/Allocator.cpp
> 1.      /usr/include/c++/4.2.1/bits/locale_facets.tcc:1015:4: current
> parser token '{'
> 2.      /usr/include/c++/4.2.1/bits/locale_facets.tcc:45:1
> <Spelling=/usr/include/c++/4.2.1/bits/c++config.h:80:38>: parsing namespace
> 'std'
> 3.      /usr/include/c++/4.2.1/bits/locale_facets.tcc:976:7: parsing
> function body '_M_insert_int'
> 4.      /usr/include/c++/4.2.1/bits/locale_facets.tcc:976:7: in compound
> statement ('{}')
> clang: error: unable to execute command: Segmentation fault: 11
> clang: error: clang frontend command failed due to signal (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: note: diagnostic msg: Preprocessed source(s) and associated run
> script(s) are located at:
> clang: note: diagnostic msg:
> /var/folders/v7/xx0tg22s1r97p9hg01fr1ybh0000gn/T/Allocator-lCPh0b.ii
> clang: note: diagnostic msg:
> /var/folders/v7/xx0tg22s1r97p9hg01fr1ybh0000gn/T/Allocator-lCPh0b.sh
> make[1]: ***
> [/Users/void/llvm/llvm.obj/lib/Support/Debug+Asserts/Allocator.o] Error 1
> make: *** [all] Error 1
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120314/a698e4a2/attachment.html>


More information about the cfe-commits mailing list