!!! 3.2 Release RC3 source code available for download and testing

Hello,

Release Candidate 3 has been branched.
RC3 source code can be downloaded as tarballs from:

http://llvm.org/pre-releases/3.2/rc3/

or directly from svn.

Binaries will be posted shortly.

Testing

RC3 has a number of fixes related to MIPS support
that need to be well exercised.

Otherwise, I think we are at the point of the release
where I can *challenge* testers to try to break it!

Pawel

Dear Pawel,

I hope this is the right place to report a problem with the RC3 builds.

I downloaded and compiled the llvm tarball and got a clang++ binary. This I am now using to build our SeqAn project and get an error.

I'm using a stable 64 bit Debian system and compile clang with g++ 4.7.

To reproduce it:

svn co http://svn.seqan.de/seqan/trunk seqan-trunk
mkdir seqan-trunk-build && cd seqan-trunk-build
cmake ../seqan-trunk -DCMAKE_CXX_COMPILER=clang++-3.2rc3
make test_graph_types

Below is the full error message. Let me know if you need any more information.

Impossible TemplateArgument
UNREACHABLE executed at /export/userdata/holtgrew/clang-3.2rc3/llvm.src/tools/clang/lib/AST/TypeLoc.cpp:325!
0 clang 0x0000000001fc4e6f
1 clang 0x0000000001fc5369
2 libpthread.so.0 0x00002ae45fc88ff0
3 libc.so.6 0x00002ae46086c1b5 gsignal + 53
4 libc.so.6 0x00002ae46086efc0 abort + 384
5 clang 0x0000000001fafd9c
6 clang 0x000000000125a938 clang::TemplateSpecializationTypeLoc::initializeArgLocs(clang::ASTContext&, unsigned int, clang::TemplateArgument const*, clang::TemplateArgumentLocInfo*, clang::SourceLocation) + 184
7 clang 0x000000000125afcf clang::TypeLoc::initializeImpl(clang::ASTContext&, clang::TypeLoc, clang::SourceLocation) + 767
8 clang 0x0000000001118365 clang::ASTContext::getTrivialTypeSourceInfo(clang::QualType, clang::SourceLocation) const + 53
9 clang 0x0000000000cf481e
10 clang 0x0000000000cf57af
11 clang 0x0000000000cf7f32 clang::Sema::getMoreSpecializedPartialSpecialization(clang::ClassTemplatePartialSpecializationDecl*, clang::ClassTemplatePartialSpecializationDecl*, clang::SourceLocation) + 1378
12 clang 0x0000000000d284c8 clang::Sema::InstantiateClassTemplateSpecialization(clang::SourceLocation, clang::ClassTemplateSpecializationDecl*, clang::TemplateSpecializationKind, bool) + 1080
13 clang 0x0000000000d687fb clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType, clang::Sema::TypeDiagnoser&) + 779
14 clang 0x0000000000ac3db0 clang::Sema::RequireCompleteDeclContext(clang::CXXScopeSpec&, clang::DeclContext*) + 272
15 clang 0x0000000000cc1a1b clang::Sema::CheckTypenameType(clang::ElaboratedTypeKeyword, clang::SourceLocation, clang::NestedNameSpecifierLoc, clang::IdentifierInfo const&, clang::SourceLocation) + 171
16 clang 0x0000000000d31402
17 clang 0x0000000000d2389e
18 clang 0x0000000000d2930d
19 clang 0x0000000000d244b0
20 clang 0x0000000000d2ace6
21 clang 0x0000000000d2b594 clang::Sema::SubstFunctionDeclType(clang::TypeSourceInfo*, clang::MultiLevelTemplateArgumentList const&, clang::SourceLocation, clang::DeclarationName, clang::CXXRecordDecl*, unsigned int) + 452
22 clang 0x0000000000d44f84 clang::TemplateDeclInstantiator::SubstFunctionType(clang::FunctionDecl*, llvm::SmallVectorImpl<clang::ParmVarDecl*>&) + 244
23 clang 0x0000000000d49554 clang::TemplateDeclInstantiator::VisitFunctionDecl(clang::FunctionDecl*, clang::TemplateParameterList*) + 308
24 clang 0x0000000000d52124 clang::Sema::SubstDecl(clang::Decl*, clang::DeclContext*, clang::MultiLevelTemplateArgumentList const&) + 420
25 clang 0x0000000000d131cc clang::Sema::FinishTemplateArgumentDeduction(clang::FunctionTemplateDecl*, llvm::SmallVectorImpl<clang::DeducedTemplateArgument>&, unsigned int, clang::FunctionDecl*&, clang::sema::TemplateDeductionInfo&, llvm::SmallVectorImpl<clang::Sema::OriginalCallArg> const*) + 2284
26 clang 0x0000000000d16dd2 clang::Sema::DeduceTemplateArguments(clang::FunctionTemplateDecl*, clang::TemplateArgumentListInfo*, llvm::ArrayRef<clang::Expr*>, clang::FunctionDecl*&, clang::sema::TemplateDeductionInfo&) + 2274
27 clang 0x0000000000c82d58 clang::Sema::AddTemplateOverloadCandidate(clang::FunctionTemplateDecl*, clang::DeclAccessPair, clang::TemplateArgumentListInfo*, llvm::ArrayRef<clang::Expr*>, clang::OverloadCandidateSet&, bool) + 344
28 clang 0x0000000000c864bf clang::Sema::AddOverloadedCallCandidates(clang::UnresolvedLookupExpr*, llvm::ArrayRef<clang::Expr*>, clang::OverloadCandidateSet&, bool) + 1103
29 clang 0x0000000000c86636 clang::Sema::buildOverloadedCallSet(clang::Scope*, clang::Expr*, clang::UnresolvedLookupExpr*, clang::Expr**, unsigned int, clang::SourceLocation, clang::OverloadCandidateSet*, clang::ActionResult<clang::Expr*, true>*) + 294
30 clang 0x0000000000c8bb96 clang::Sema::BuildOverloadedCallExpr(clang::Scope*, clang::Expr*, clang::UnresolvedLookupExpr*, clang::SourceLocation, clang::Expr**, unsigned int, clang::SourceLocation, clang::Expr*, bool) + 150
31 clang 0x0000000000beb1db clang::Sema::ActOnCallExpr(clang::Scope*, clang::Expr*, clang::SourceLocation, llvm::MutableArrayRef<clang::Expr*>, clang::SourceLocation, clang::Expr*, bool) + 891
32 clang 0x0000000000a5e6b0 clang::Parser::ParsePostfixExpressionSuffix(clang::ActionResult<clang::Expr*, true>) + 4080
33 clang 0x0000000000a5794b clang::Parser::ParseCastExpression(bool, bool, bool&, clang::Parser::TypeCastState) + 203
34 clang 0x0000000000a59b2d clang::Parser::ParseCastExpression(bool, bool, clang::Parser::TypeCastState) + 29
35 clang 0x0000000000a5af5f clang::Parser::ParseAssignmentExpression(clang::Parser::TypeCastState) + 31
36 clang 0x0000000000a5bf99 clang::Parser::ParseExpression(clang::Parser::TypeCastState) + 9
37 clang 0x0000000000a5ce95 clang::Parser::ParseParenExpression(clang::Parser::ParenParseOption&, bool, bool, clang::OpaquePtr<clang::QualType>&, clang::SourceLocation&) + 3813
38 clang 0x0000000000a57f08 clang::Parser::ParseCastExpression(bool, bool, bool&, clang::Parser::TypeCastState) + 1672
39 clang 0x0000000000a59b2d clang::Parser::ParseCastExpression(bool, bool, clang::Parser::TypeCastState) + 29
40 clang 0x0000000000a5af5f clang::Parser::ParseAssignmentExpression(clang::Parser::TypeCastState) + 31
41 clang 0x0000000000a5b069 clang::Parser::ParseExpressionList(llvm::SmallVectorImpl<clang::Expr*>&, llvm::SmallVectorImpl<clang::SourceLocation>&, void (clang::Sema::*)(clang::Scope*, clang::Expr*, llvm::ArrayRef<clang::Expr*>), clang::Expr*) + 121
42 clang 0x0000000000a5e550 clang::Parser::ParsePostfixExpressionSuffix(clang::ActionResult<clang::Expr*, true>) + 3728
43 clang 0x0000000000a5794b clang::Parser::ParseCastExpression(bool, bool, bool&, clang::Parser::TypeCastState) + 203
44 clang 0x0000000000a59b2d clang::Parser::ParseCastExpression(bool, bool, clang::Parser::TypeCastState) + 29
45 clang 0x0000000000a57d98 clang::Parser::ParseCastExpression(bool, bool, bool&, clang::Parser::TypeCastState) + 1304
46 clang 0x0000000000a59b2d clang::Parser::ParseCastExpression(bool, bool, clang::Parser::TypeCastState) + 29
47 clang 0x0000000000a57df9 clang::Parser::ParseCastExpression(bool, bool, bool&, clang::Parser::TypeCastState) + 1401
48 clang 0x0000000000a59b2d clang::Parser::ParseCastExpression(bool, bool, clang::Parser::TypeCastState) + 29
49 clang 0x0000000000a5af5f clang::Parser::ParseAssignmentExpression(clang::Parser::TypeCastState) + 31
50 clang 0x0000000000a5bf99 clang::Parser::ParseExpression(clang::Parser::TypeCastState) + 9
51 clang 0x0000000000a639ba clang::Parser::ParseCXXCondition(clang::ActionResult<clang::Expr*, true>&, clang::Decl*&, clang::SourceLocation, bool) + 1482
52 clang 0x0000000000a818de clang::Parser::ParseParenExprOrCondition(clang::ActionResult<clang::Expr*, true>&, clang::Decl*&, clang::SourceLocation, bool) + 190
53 clang 0x0000000000a887a5 clang::Parser::ParseIfStatement(clang::SourceLocation*) + 437
54 clang 0x0000000000a87951 clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*, 32u>&, bool, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&) + 1265
55 clang 0x0000000000a87d5d clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, bool, clang::SourceLocation*) + 141
56 clang 0x0000000000a855d7 clang::Parser::ParseCompoundStatementBody(bool) + 1831
57 clang 0x0000000000a85e3d clang::Parser::ParseCompoundStatement(bool, unsigned int) + 45
58 clang 0x0000000000a85e92 clang::Parser::ParseCompoundStatement(bool) + 18
59 clang 0x0000000000a877ea clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*, 32u>&, bool, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&) + 906
60 clang 0x0000000000a87d5d clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, bool, clang::SourceLocation*) + 141
61 clang 0x0000000000a88ff2 clang::Parser::ParseDoStatement() + 178
62 clang 0x0000000000a87840 clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*, 32u>&, bool, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&) + 992
63 clang 0x0000000000a87d5d clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, bool, clang::SourceLocation*) + 141
64 clang 0x0000000000a855d7 clang::Parser::ParseCompoundStatementBody(bool) + 1831
65 clang 0x0000000000a8bf9d clang::Parser::ParseFunctionStatementBody(clang::Decl*, clang::Parser::ParseScope&) + 141
66 clang 0x0000000000a31f09 clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&, clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*) + 1065
67 clang 0x0000000000a41b7a clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, unsigned int, bool, clang::SourceLocation*, clang::Parser::ForRangeInit*) + 1162
68 clang 0x0000000000a2c418 clang::Parser::ParseDeclOrFunctionDefInternal(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec&, clang::AccessSpecifier) + 248
69 clang 0x0000000000a2c8d9
70 clang 0x0000000000a2c9cf clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*, clang::AccessSpecifier) + 31
71 clang 0x0000000000a2eef4 clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*) + 116
72 clang 0x0000000000a2f533 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 195
73 clang 0x0000000000a2a88e clang::ParseAST(clang::Sema&, bool, bool) + 270
74 clang 0x00000000008e131e clang::CodeGenAction::ExecuteAction() + 78
75 clang 0x0000000000783006 clang::FrontendAction::Execute() + 150
76 clang 0x00000000007661c5 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 341
77 clang 0x000000000074db0d clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1421
78 clang 0x0000000000745b78 cc1_main(char const**, char const**, char const*, void*) + 1176
79 clang 0x000000000074cf02 main + 4834
80 libc.so.6 0x00002ae460858c8d __libc_start_main + 253
81 clang 0x0000000000744a3d
Stack dump:
0. Program arguments: /group/agabi/software/x86_64/llvm-3.2rc3/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name test_graph_types.cpp -mrelocation-model static -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.20.1 -momit-leaf-frame-pointer -coverage-file /export/local-1/public/holtgrew/seqan-trunk-build/core/tests/graph_types/CMakeFiles/test_graph_types.dir/test_graph_types.cpp.o -resource-dir /group/agabi/software/x86_64/llvm-3.2rc3/bin/../lib/clang/3.2 -D _LARGEFILE_SOURCE -D _FILE_OFFSET_BITS=64 -D SEQAN_ENABLE_TESTING=1 -D SEQAN_ENABLE_DEBUG=1 -D SEQAN_HAS_EXECINFO=1 -I /export/local-1/public/holtgrew/seqan-trunk/core/include -fmodule-cache-path /export/local-1/public/holtgrew/tmp/clang-module-cache -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/4.4/../../../../include/c++/4.4 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/4.4/../../../../include/c++/4.4/x86_64-linux-gnu -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/4.4/../../../../include/c++/4.4/backward -internal-isystem /usr/local/include -internal-isystem /group/agabi/software/x86_64/llvm-3.2rc3/bin/../lib/clang/3.2/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -W -Wall -Wno-long-long -Wstrict-aliasing -Wno-variadic-macros -pedantic -fdeprecated-macro -fdebug-compilation-dir /export/local-1/public/holtgrew/seqan-trunk-build/core/tests/graph_types -ferror-limit 19 -fmessage-length 271 -mstackrealign -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o CMakeFiles/test_graph_types.dir/test_graph_types.cpp.o -x c++ /export/local-1/public/holtgrew/seqan-trunk/core/tests/graph_types/test_graph_types.cpp
1. /export/local-1/public/holtgrew/seqan-trunk/core/tests/graph_types/test_graph_properties.h:134:2 <Spelling=/export/local-1/public/holtgrew/seqan-trunk/core/tests/graph_types/test_graph_properties.h:134:33>: current parser token ')'
2. /export/local-1/public/holtgrew/seqan-trunk/core/tests/graph_types/test_graph_properties.h:95:22: parsing function body 'Test_Property'
3. /export/local-1/public/holtgrew/seqan-trunk/core/tests/graph_types/test_graph_properties.h:95:22: in compound statement ('{}')
4. /export/local-1/public/holtgrew/seqan-trunk/core/tests/graph_types/test_graph_properties.h:134:2 <Spelling=/export/local-1/public/holtgrew/seqan-trunk/core/include/seqan/basic/debug_test_system.h:1971:8>: in compound statement ('{}')
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal (use -v to see invocation)
clang version 3.2 (tags/RELEASE_32/rc3)
Target: x86_64-unknown-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:

Manuel,

Dear Pawel,

I hope this is the right place to report a problem with the RC3 builds.

Absolutely!

I downloaded and compiled the llvm tarball and got a clang++ binary. This I am now using to build our SeqAn project and get an error.

I'm using a stable 64 bit Debian system and compile clang with g++ 4.7.

To reproduce it:

svn co http://svn.seqan.de/seqan/trunk seqan-trunk
mkdir seqan-trunk-build && cd seqan-trunk-build
cmake ../seqan-trunk -DCMAKE_CXX_COMPILER=clang++-3.2rc3
make test_graph_types

Below is the full error message. Let me know if you need any more information.

Just a quick question to help me narrow the problem.
I am guessing you have used RC2 and it was OK but
when you tried RC3 the UNREACHABLE happened?

Pawel

Impossible TemplateArgument
UNREACHABLE executed at /export/userdata/holtgrew/clang-3.2rc3/llvm.src/tools/clang/lib/AST/TypeLoc.cpp:325!
0 clang 0x0000000001fc4e6f
1 clang 0x0000000001fc5369
2 libpthread.so.0 0x00002ae45fc88ff0
3 libc.so.6 0x00002ae46086c1b5 gsignal + 53
4 libc.so.6 0x00002ae46086efc0 abort + 384
5 clang 0x0000000001fafd9c
6 clang 0x000000000125a938 clang::TemplateSpecializationTypeLoc::initializeArgLocs(clang::ASTContext&, unsigned int, clang::TemplateArgument const*, clang::TemplateArgumentLocInfo*, clang::SourceLocation) + 184
7 clang 0x000000000125afcf clang::TypeLoc::initializeImpl(clang::ASTContext&, clang::TypeLoc, clang::SourceLocation) + 767
8 clang 0x0000000001118365 clang::ASTContext::getTrivialTypeSourceInfo(clang::QualType, clang::SourceLocation) const + 53
9 clang 0x0000000000cf481e
10 clang 0x0000000000cf57af
11 clang 0x0000000000cf7f32 clang::Sema::getMoreSpecializedPartialSpecialization(clang::ClassTemplatePartialSpecializationDecl*, clang::ClassTemplatePartialSpecializationDecl*, clang::SourceLocation) + 1378
12 clang 0x0000000000d284c8 clang::Sema::InstantiateClassTemplateSpecialization(clang::SourceLocation, clang::ClassTemplateSpecializationDecl*, clang::TemplateSpecializationKind, bool) + 1080
13 clang 0x0000000000d687fb clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType, clang::Sema::TypeDiagnoser&) + 779
14 clang 0x0000000000ac3db0 clang::Sema::RequireCompleteDeclContext(clang::CXXScopeSpec&, clang::DeclContext*) + 272
15 clang 0x0000000000cc1a1b clang::Sema::CheckTypenameType(clang::ElaboratedTypeKeyword, clang::SourceLocation, clang::NestedNameSpecifierLoc, clang::IdentifierInfo const&, clang::SourceLocation) + 171
16 clang 0x0000000000d31402
17 clang 0x0000000000d2389e
18 clang 0x0000000000d2930d
19 clang 0x0000000000d244b0
20 clang 0x0000000000d2ace6
21 clang 0x0000000000d2b594 clang::Sema::SubstFunctionDeclType(clang::TypeSourceInfo*, clang::MultiLevelTemplateArgumentList const&, clang::SourceLocation, clang::DeclarationName, clang::CXXRecordDecl*, unsigned int) + 452
22 clang 0x0000000000d44f84 clang::TemplateDeclInstantiator::SubstFunctionType(clang::FunctionDecl*, llvm::SmallVectorImpl<clang::ParmVarDecl*>&) + 244
23 clang 0x0000000000d49554 clang::TemplateDeclInstantiator::VisitFunctionDecl(clang::FunctionDecl*, clang::TemplateParameterList*) + 308
24 clang 0x0000000000d52124 clang::Sema::SubstDecl(clang::Decl*, clang::DeclContext*, clang::MultiLevelTemplateArgumentList const&) + 420
25 clang 0x0000000000d131cc clang::Sema::FinishTemplateArgumentDeduction(clang::FunctionTemplateDecl*, llvm::SmallVectorImpl<clang::DeducedTemplateArgument>&, unsigned int, clang::FunctionDecl*&, clang::sema::TemplateDeductionInfo&, llvm::SmallVectorImpl<clang::Sema::OriginalCallArg> const*) + 2284
26 clang 0x0000000000d16dd2 clang::Sema::DeduceTemplateArguments(clang::FunctionTemplateDecl*, clang::TemplateArgumentListInfo*, llvm::ArrayRef<clang::Expr*>, clang::FunctionDecl*&, clang::sema::TemplateDeductionInfo&) + 2274
27 clang 0x0000000000c82d58 clang::Sema::AddTemplateOverloadCandidate(clang::FunctionTemplateDecl*, clang::DeclAccessPair, clang::TemplateArgumentListInfo*, llvm::ArrayRef<clang::Expr*>, clang::OverloadCandidateSet&, bool) + 344
28 clang 0x0000000000c864bf clang::Sema::AddOverloadedCallCandidates(clang::UnresolvedLookupExpr*, llvm::ArrayRef<clang::Expr*>, clang::OverloadCandidateSet&, bool) + 1103
29 clang 0x0000000000c86636 clang::Sema::buildOverloadedCallSet(clang::Scope*, clang::Expr*, clang::UnresolvedLookupExpr*, clang::Expr**, unsigned int, clang::SourceLocation, clang::OverloadCandidateSet*, clang::ActionResult<clang::Expr*, true>*) + 294
30 clang 0x0000000000c8bb96 clang::Sema::BuildOverloadedCallExpr(clang::Scope*, clang::Expr*, clang::UnresolvedLookupExpr*, clang::SourceLocation, clang::Expr**, unsigned int, clang::SourceLocation, clang::Expr*, bool) + 150
31 clang 0x0000000000beb1db clang::Sema::ActOnCallExpr(clang::Scope*, clang::Expr*, clang::SourceLocation, llvm::MutableArrayRef<clang::Expr*>, clang::SourceLocation, clang::Expr*, bool) + 891
32 clang 0x0000000000a5e6b0 clang::Parser::ParsePostfixExpressionSuffix(clang::ActionResult<clang::Expr*, true>) + 4080
33 clang 0x0000000000a5794b clang::Parser::ParseCastExpression(bool, bool, bool&, clang::Parser::TypeCastState) + 203
34 clang 0x0000000000a59b2d clang::Parser::ParseCastExpression(bool, bool, clang::Parser::TypeCastState) + 29
35 clang 0x0000000000a5af5f clang::Parser::ParseAssignmentExpression(clang::Parser::TypeCastState) + 31
36 clang 0x0000000000a5bf99 clang::Parser::ParseExpression(clang::Parser::TypeCastState) + 9
37 clang 0x0000000000a5ce95 clang::Parser::ParseParenExpression(clang::Parser::ParenParseOption&, bool, bool, clang::OpaquePtr<clang::QualType>&, clang::SourceLocation&) + 3813
38 clang 0x0000000000a57f08 clang::Parser::ParseCastExpression(bool, bool, bool&, clang::Parser::TypeCastState) + 1672
39 clang 0x0000000000a59b2d clang::Parser::ParseCastExpression(bool, bool, clang::Parser::TypeCastState) + 29
40 clang 0x0000000000a5af5f clang::Parser::ParseAssignmentExpression(clang::Parser::TypeCastState) + 31
41 clang 0x0000000000a5b069 clang::Parser::ParseExpressionList(llvm::SmallVectorImpl<clang::Expr*>&, llvm::SmallVectorImpl<clang::SourceLocation>&, void (clang::Sema::*)(clang::Scope*, clang::Expr*, llvm::ArrayRef<clang::Expr*>), clang::Expr*) + 121
42 clang 0x0000000000a5e550 clang::Parser::ParsePostfixExpressionSuffix(clang::ActionResult<clang::Expr*, true>) + 3728
43 clang 0x0000000000a5794b clang::Parser::ParseCastExpression(bool, bool, bool&, clang::Parser::TypeCastState) + 203
44 clang 0x0000000000a59b2d clang::Parser::ParseCastExpression(bool, bool, clang::Parser::TypeCastState) + 29
45 clang 0x0000000000a57d98 clang::Parser::ParseCastExpression(bool, bool, bool&, clang::Parser::TypeCastState) + 1304
46 clang 0x0000000000a59b2d clang::Parser::ParseCastExpression(bool, bool, clang::Parser::TypeCastState) + 29
47 clang 0x0000000000a57df9 clang::Parser::ParseCastExpression(bool, bool, bool&, clang::Parser::TypeCastState) + 1401
48 clang 0x0000000000a59b2d clang::Parser::ParseCastExpression(bool, bool, clang::Parser::TypeCastState) + 29
49 clang 0x0000000000a5af5f clang::Parser::ParseAssignmentExpression(clang::Parser::TypeCastState) + 31
50 clang 0x0000000000a5bf99 clang::Parser::ParseExpression(clang::Parser::TypeCastState) + 9
51 clang 0x0000000000a639ba clang::Parser::ParseCXXCondition(clang::ActionResult<clang::Expr*, true>&, clang::Decl*&, clang::SourceLocation, bool) + 1482
52 clang 0x0000000000a818de clang::Parser::ParseParenExprOrCondition(clang::ActionResult<clang::Expr*, true>&, clang::Decl*&, clang::SourceLocation, bool) + 190
53 clang 0x0000000000a887a5 clang::Parser::ParseIfStatement(clang::SourceLocation*) + 437
54 clang 0x0000000000a87951 clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*, 32u>&, bool, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&) + 1265
55 clang 0x0000000000a87d5d clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, bool, clang::SourceLocation*) + 141
56 clang 0x0000000000a855d7 clang::Parser::ParseCompoundStatementBody(bool) + 1831
57 clang 0x0000000000a85e3d clang::Parser::ParseCompoundStatement(bool, unsigned int) + 45
58 clang 0x0000000000a85e92 clang::Parser::ParseCompoundStatement(bool) + 18
59 clang 0x0000000000a877ea clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*, 32u>&, bool, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&) + 906
60 clang 0x0000000000a87d5d clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, bool, clang::SourceLocation*) + 141
61 clang 0x0000000000a88ff2 clang::Parser::ParseDoStatement() + 178
62 clang 0x0000000000a87840 clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*, 32u>&, bool, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&) + 992
63 clang 0x0000000000a87d5d clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, bool, clang::SourceLocation*) + 141
64 clang 0x0000000000a855d7 clang::Parser::ParseCompoundStatementBody(bool) + 1831
65 clang 0x0000000000a8bf9d clang::Parser::ParseFunctionStatementBody(clang::Decl*, clang::Parser::ParseScope&) + 141
66 clang 0x0000000000a31f09 clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&, clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*) + 1065
67 clang 0x0000000000a41b7a clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, unsigned int, bool, clang::SourceLocation*, clang::Parser::ForRangeInit*) + 1162
68 clang 0x0000000000a2c418 clang::Parser::ParseDeclOrFunctionDefInternal(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec&, clang::AccessSpecifier) + 248
69 clang 0x0000000000a2c8d9
70 clang 0x0000000000a2c9cf clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*, clang::AccessSpecifier) + 31
71 clang 0x0000000000a2eef4 clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&, clang::ParsingDeclSpec*) + 116
72 clang 0x0000000000a2f533 clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 195
73 clang 0x0000000000a2a88e clang::ParseAST(clang::Sema&, bool, bool) + 270
74 clang 0x00000000008e131e clang::CodeGenAction::ExecuteAction() + 78
75 clang 0x0000000000783006 clang::FrontendAction::Execute() + 150
76 clang 0x00000000007661c5 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 341
77 clang 0x000000000074db0d clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1421
78 clang 0x0000000000745b78 cc1_main(char const**, char const**, char const*, void*) + 1176
79 clang 0x000000000074cf02 main + 4834
80 libc.so.6 0x00002ae460858c8d __libc_start_main + 253
81 clang 0x0000000000744a3d
Stack dump:
0. Program arguments: /group/agabi/software/x86_64/llvm-3.2rc3/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name test_graph_types.cpp -mrelocation-model static -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.20.1 -momit-leaf-frame-pointer -coverage-file /export/local-1/public/holtgrew/seqan-trunk-build/core/tests/graph_types/CMakeFiles/test_graph_types.dir/test_graph_types.cpp.o -resource-dir /group/agabi/software/x86_64/llvm-3.2rc3/bin/../lib/clang/3.2 -D _LARGEFILE_SOURCE -D _FILE_OFFSET_BITS=64 -D SEQAN_ENABLE_TESTING=1 -D SEQAN_ENABLE_DEBUG=1 -D SEQAN_HAS_EXECINFO=1 -I /export/local-1/public/holtgrew/seqan-trunk/core/include -fmodule-cache-path /export/local-1/public/holtgrew/tmp/clang-module-cache -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/4.4/../../../../include/c++/4.4 -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/4.4/../../../../in!

clude/c+
+/4.4/x86_64-linux-gnu -internal-isystem /usr/lib/gcc/x86_64-linux-gnu/4.4/../../../../include/c++/4.4/backward -internal-isystem /usr/local/include -internal-isystem /group/agabi/software/x86_64/llvm-3.2rc3/bin/../lib/clang/3.2/include -internal-externc-isystem /usr/include/x86_64-linux-gnu -internal-externc-isystem /include -internal-externc-isystem /usr/include -W -Wall -Wno-long-long -Wstrict-aliasing -Wno-variadic-macros -pedantic -fdeprecated-macro -fdebug-compilation-dir /export/local-1/public/holtgrew/seqan-trunk-build/core/tests/graph_types -ferror-limit 19 -fmessage-length 271 -mstackrealign -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o CMakeFiles/test_graph_types.dir/test_graph_types.cpp.o -x c++ /export/local-1/public/holtgrew/seqan-trunk/core/tests/graph_types/test_graph_types.cpp

Below is the full error message. Let me know if you need any more information.

We normally ask for a preprocessed source, but this one was easy
enough to reproduce. I have started delta to reduce the testcase.

Cheers,
Rafael

Below is the full error message. Let me know if you need any more

information.

We normally ask for a preprocessed source, but this one was easy
enough to reproduce. I have started delta to reduce the testcase.

I could not reproduce it with RC3 nor RC2 binaries on
ubuntu 12.04 x86_64 with g++-4.6. Seqan build and tested fine.

Something is fishy with the g++4.7 based build because
-isystem paths point to 4.4 not 4.7, see the "Program arguments:"
below, like:

/usr/lib/gcc/x86_64-linux-gnu/4.4/../../../../include/c++/4.4

I'm using a stable 64 bit Debian system and compile clang with g++ 4.7.

Manuel, could you please check whether clang was build with g++-4.7?

Cheers,
Rafael

Pawel

0. Program arguments: /group/agabi/software/x86_64/llvm-3.2rc3/bin/clang
-cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all
-disable-free -main-file-name test_graph_types.cpp -mrelocation-model
static -mdisable-fp-elim -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64
-target-linker-version 2.20.1 -momit-leaf-frame-pointer -coverage-file
/export/local-1/public/holtgrew/seqan-trunk-build/core/tests/graph_types/CMakeFiles/test_graph_types.dir/test_graph_types.cpp.o
-resource-dir
/group/agabi/software/x86_64/llvm-3.2rc3/bin/../lib/clang/3.2 -D
_LARGEFILE_SOURCE -D _FILE_OFFSET_BITS=64 -D SEQAN_ENABLE_TESTING=1 -D
SEQAN_ENABLE_DEBUG=1 -D SEQAN_HAS_EXECINFO=1 -I
/export/local-1/public/holtgrew/seqan-trunk/core/include
-fmodule-cache-path
/export/local-1/public/holtgrew/tmp/clang-module-cache -internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.4/../../../../include/c++/4.4
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.4/../../../../include/c++/4.4/x86_64-linux-gnu
-internal-isystem
/usr/lib/gcc/x86_64-linux-gnu/4.4/../../../../include/c++/4.4/backward
-internal-isystem /usr/local/include -internal-isystem
/group/agabi/software/x86_64/llvm-3.2rc3/bin/../lib/clang/3.2/include
-internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /include -internal-externc-isystem
/usr/include -W -Wall -Wno-long-long -Wstrict-aliasing
-Wno-variadic-macros -pedantic -fdeprecated-macro
-fdebug-compilation-dir
/export/local-1/public/holtgrew/seqan-trunk-build/core/tests/graph_types
-ferror-limit 19 -fmessage-length 271 -mstackrealign -fobjc-runtime=gcc
-fcxx-exceptions -fexceptions -fdiagnostics-show-option
-fcolor-diagnostics -o
CMakeFiles/test_graph_types.dir/test_graph_types.cpp.o -x c++
/export/local-1/public/holtgrew/seqan-trunk/core/tests/graph_types/test_graph_types.cpp

llvm.org/pr14538.

Cheers,
Rafael

For a couple weeks on trunk since Debian made some pathway changes with GCC I can’t compile the Unit Tests for LLVM because the pathway to bits/c++config.h cannot be found.

[100%] Built target clang
[100%] [100%] [100%] Generating asan_test.cc.asan.o
Generating asan_globals_test.cc.asan.o
Generating asan_benchmarks_test.cc.asan.o
In file included from /home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/projects/compiler-rt/lib/asan/tests/asan_benchmarks_test.cc:15:
In file included from /home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/projects/compiler-rt/lib/asan/tests/asan_test_utils.h:19:
In file included from /home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/projects/compiler-rt/lib/asan/tests/asan_test_config.h:20:
In file included from /usr/lib/gcc/x86_64-linux-gnu/4.7/…/…/…/…/include/c++/4.7/vector:60:
/usr/lib/gcc/x86_64-linux-gnu/4.7/…/…/…/…/include/c++/4.7/bits/stl_algobase.h:60:10: fatal error:
‘bits/c++config.h’ file not found
/home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/projects/compiler-rt/lib/asan/tests/asan_test.cc:13:10: fatal error:
‘stdio.h’ file not found
#include <stdio.h>
^
#include <bits/c++config.h>
^
1 error generated.
make[2]: *** [projects/compiler-rt/lib/asan/tests/asan_benchmarks_test.cc.asan.o] Error 1
make[1]: *** [projects/compiler-rt/lib/asan/tests/CMakeFiles/AsanBenchmark.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…
1 error generated.
make[2]: *** [projects/compiler-rt/lib/asan/tests/asan_test.cc.asan.o] Error 1
make[1]: *** [projects/compiler-rt/lib/asan/tests/CMakeFiles/AsanTest.dir/all] Error 2
make: *** [all] Error 2
mdriftmeyer@horus:~/DeveloperProjects/LLVMProject/cmake-gcc-llvm$

http://www.netbsd.org/~joerg/ToolChains.cpp.diff as workaround.

Joerg

Thanks for the help.

  • Marc

Unfortunately that just produced more errors:

Generating asan_globals_test.cc.asan.o
In file included from /home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/projects/compiler-rt/lib/asan/tests/asan_benchmarks_test.cc:15:
In file included from /home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/projects/compiler-rt/lib/asan/tests/asan_test_utils.h:19:
In file included from /home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/projects/compiler-rt/lib/asan/tests/asan_test_config.h:20:
In file included from /usr/lib/gcc/x86_64-linux-gnu/4.7/…/…/…/…/include/c++/4.7/vector:60:
In file included from /usr/lib/gcc/x86_64-linux-gnu/4.7/…/…/…/…/include/c++/4.7/bits/stl_algobase.h:60:
In file included from /usr/lib/gcc/x86_64-linux-gnu/4.7/…/…/…/…/include/x86_64-linux-gnu/c++/4.7/bits/c++config.h:414:
/usr/lib/gcc/x86_64-linux-gnu/4.7/…/…/…/…/include/x86_64-linux-gnu/c++/4.7/bits/os_defines.h:40:10: fatal error:
‘features.h’ file not found
#include <features.h>
^
/home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/projects/compiler-rt/lib/asan/tests/asan_test.cc:13:10: fatal error:
‘stdio.h’ file not found
#include <stdio.h>
^
1 error generated.
make[2]: *** [projects/compiler-rt/lib/asan/tests/asan_benchmarks_test.cc.asan.o] Error 1
make[1]: *** [projects/compiler-rt/lib/asan/tests/CMakeFiles/AsanBenchmark.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…
1 error generated.
make[2]: *** [projects/compiler-rt/lib/asan/tests/asan_test.cc.asan.o] Error 1
make[1]: *** [projects/compiler-rt/lib/asan/tests/CMakeFiles/AsanTest.dir/all] Error 2
make: *** [all] Error 2
mdriftmeyer@horus:~/DeveloperProjects/LLVMProject/cmake-gcc-llvm$

This is how Debian experimental currently has their stdc++ headers:

I imagine the maintainer at Debian will pick this up with your patch and test to get this resolved. - Marc

If this helps: compilation of asan_globals_test.cc and asan_test.cc differ in the sense that they are
compiled with just-built Clang. Don’t know if it makes any difference for header lookup.
Can you check if fresh Clang can build regular .cc file which includes stdio.h?

With the latest from Debian 4.7.2-13 for GCC.

Checkout of llvm trunk, clang trunk, compiler-rt, test-suite, lldb, libcxx [neither lldb/libcxx impacted as they aren’t presently ready for llvm/clang on Linux] at revision 169724

Given: defaults to x86 amd64 but using a default build of all available targets in cmake’s configuration.

Results:

[100%] [100%] Generating asan_benchmarks_test.cc.asan.o
Generating asan_test.cc.asan.o
In file included from /home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/projects/compiler-rt/lib/asan/tests/asan_benchmarks_test.cc:15:
In file included from /home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/projects/compiler-rt/lib/asan/tests/asan_test_utils.h:19:
/home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/projects/compiler-rt/lib/asan/tests/asan_test_config.h:20:10: fatal error:
‘vector’ file not found
#include
^
In file included from /home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/projects/compiler-rt/lib/asan/tests/asan_test.cc:31:
In file included from /home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/projects/compiler-rt/lib/asan/tests/asan_test_utils.h:19:
/home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/projects/compiler-rt/lib/asan/tests/asan_test_config.h:20:10: fatal error:
‘vector’ file not found
#include
^
Linking CXX executable …/…/…/…/bin/c-index-test
[100%] Built target c-index-test
[100%] 1 error generated.
make[2]: *** [projects/compiler-rt/lib/asan/tests/asan_benchmarks_test.cc.asan.o] Error 1
make[1]: *** [projects/compiler-rt/lib/asan/tests/CMakeFiles/AsanBenchmark.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…
Generating asan_globals_test.cc.asan.o
1 error generated.
make[2]: *** [projects/compiler-rt/lib/asan/tests/asan_test.cc.asan.o] Error 1
make[1]: *** [projects/compiler-rt/lib/asan/tests/CMakeFiles/AsanTest.dir/all] Error 2
make: *** [all] Error 2
mdriftmeyer@horus:~/DeveloperProjects/LLVMProject/cmake-gcc-llvm$

I run into the error of not finding

With the latest from Debian 4.7.2-13 for GCC.

Checkout of llvm trunk, clang trunk, compiler-rt, test-suite, lldb, libcxx [neither lldb/libcxx impacted as they aren’t presently ready for llvm/clang on Linux] at revision 169724

Given: defaults to x86 amd64 but using a default build of all available targets in cmake’s configuration.

Results:

[100%] [100%] Generating asan_benchmarks_test.cc.asan.o
Generating asan_test.cc.asan.o

In file included from /home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/projects/compiler-rt/lib/asan/tests/asan_benchmarks_test.cc:15:
In file included from /home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/projects/compiler-rt/lib/asan/tests/asan_test_utils.h:19:

/home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/projects/compiler-rt/lib/asan/tests/asan_test_config.h:20:10: fatal error:
‘vector’ file not found
#include
^
In file included from /home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/projects/compiler-rt/lib/asan/tests/asan_test.cc:31:

In file included from /home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/projects/compiler-rt/lib/asan/tests/asan_test_utils.h:19:

/home/mdriftmeyer/DeveloperProjects/LLVMProject/trunk/llvm/projects/compiler-rt/lib/asan/tests/asan_test_config.h:20:10: fatal error:
‘vector’ file not found
#include
^
Linking CXX executable …/…/…/…/bin/c-index-test
[100%] Built target c-index-test
[100%] 1 error generated.

make[2]: *** [projects/compiler-rt/lib/asan/tests/asan_benchmarks_test.cc.asan.o] Error 1
make[1]: *** [projects/compiler-rt/lib/asan/tests/CMakeFiles/AsanBenchmark.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…

Generating asan_globals_test.cc.asan.o
1 error generated.
make[2]: *** [projects/compiler-rt/lib/asan/tests/asan_test.cc.asan.o] Error 1
make[1]: *** [projects/compiler-rt/lib/asan/tests/CMakeFiles/AsanTest.dir/all] Error 2
make: *** [all] Error 2
mdriftmeyer@horus:~/DeveloperProjects/LLVMProject/cmake-gcc-llvm$

I run into the error of not finding

What would happen if you:

  1. configure cmake build directory
  2. run “make clang” in it
  3. try to use fresh ./bin/clang to compile some random file which has "#include " or “#include <stdio.h>”?

I assume that it is not necessary for me to check for having built clang with g++ 4.7, but here is an excerpt from config.log:

configure:2898: g++-4.7 --version >&5
g++-4.7.2 (GCC) 4.7.2
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2901: $? = 0
configure:2908: g++-4.7 -v >&5

Alas Resolution and it’s all my fault.

I made the mistake of updating eglibc from 2.13-37 in Debian to the newly released 2.16 available in experimental.

Solution: I downgraded gcc-4.7.2-13 to gcc-4.7.2-4 across the board and downgraded libc6 from 2.16 to 2.13-37.

Clean start of trunk against gcc-4.7.2-4 and presto!

100% clean build.

Lesson learned with Debian once again about dealing with libc6 and gcc outside of Unstable/Sid branch.

  • My apologies for all the frustration,

  • Marc

Hi Pawel,

I just created clang with the tarballs without problem; however,
when `make check-all` was run, I got 1 error. My system is:

Linux evansl-desktop 2.6.32-41-generic #90-Ubuntu SMP Tue May 22
11:29:51 UTC 2012 x86_64 GNU/Linux

and my c++ compiler is:

~/download/llvm/pre-releases/3.2/rc3/download/build_debug $ g++ -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
4.4.3-4ubuntu5.1'
--with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--enable-shared --enable-multiarch --enable-linker-build-id
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4
--program-suffix=-4.4 --enable-nls --enable-clocale=gnu
--enable-libstdcxx-debug --enable-plugin --enable-objc-gc
--disable-werror --with-arch-32=i486 --with-tune=generic
--enable-checking=release --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5.1)

The complete check-all run follows:

~/download/llvm/pre-releases/3.2/rc3/download/build_debug $ make check-all
llvm[0]: Running test suite
make[1]: Entering directory
`/home/evansl/download/llvm/pre-releases/3.2/rc3/download/build_debug/test'
Making LLVM 'lit.site.cfg' file...
Making LLVM unittest 'lit.site.cfg' file...
/usr/bin/make -C
/home/evansl/download/llvm/pre-releases/3.2/rc3/download/build_debug/test/../tools/clang/test
lit.site.cfg Unit/lit.site.cfg
make[2]: Entering directory
`/home/evansl/download/llvm/pre-releases/3.2/rc3/download/build_debug/tools/clang/test'
Making Clang 'lit.site.cfg' file...
Making Clang 'Unit/lit.site.cfg' file...
make[2]: Leaving directory
`/home/evansl/download/llvm/pre-releases/3.2/rc3/download/build_debug/tools/clang/test'
( ulimit -t 600 ; ulimit -d 512000 ; ulimit -m 512000 ; ulimit -v
1024000 ; \
  
/home/evansl/download/llvm/pre-releases/3.2/rc3/download/llvm.src/utils/lit/lit.py
-s -v .
/home/evansl/download/llvm/pre-releases/3.2/rc3/download/build_debug/test/../tools/clang/test
)
lit.py: lit.cfg:171: note: using clang:
'/home/evansl/download/llvm/pre-releases/3.2/rc3/download/build_debug/Release+Debug/bin/clang'
-- Testing: 12434 tests, 2 threads --
Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80
FAIL: LLVM :: Transforms/GVN/null-aliases-nothing.ll (10380 of 12434)
******************** TEST 'LLVM ::
Transforms/GVN/null-aliases-nothing.ll' FAILED ********************
Script:

Larry, it was an odd test. As workaround, please avoid directory
contains "download" to build the tree.

Fixed in llvm r171243.

...Takumi

I just created clang with the tarballs without problem; however,
when `make check-all` was run, I got 1 error. My system is:

~/download/llvm/pre-releases/3.2/rc3/download/build_debug $ make check-all
llvm[0]: Running test suite
make[1]: Entering directory
`/home/evansl/download/llvm/pre-releases/3.2/rc3/download/build_debug/test'
Making LLVM 'lit.site.cfg' file...
Making LLVM unittest 'lit.site.cfg' file...
/usr/bin/make -C
/home/evansl/download/llvm/pre-releases/3.2/rc3/download/build_debug/test/../tools/clang/test
lit.site.cfg Unit/lit.site.cfg
make[2]: Entering directory
`/home/evansl/download/llvm/pre-releases/3.2/rc3/download/build_debug/tools/clang/test'
Making Clang 'lit.site.cfg' file...
Making Clang 'Unit/lit.site.cfg' file...
make[2]: Leaving directory
`/home/evansl/download/llvm/pre-releases/3.2/rc3/download/build_debug/tools/clang/test'
( ulimit -t 600 ; ulimit -d 512000 ; ulimit -m 512000 ; ulimit -v
1024000 ; \

/home/evansl/download/llvm/pre-releases/3.2/rc3/download/llvm.src/utils/lit/lit.py
-s -v .
/home/evansl/download/llvm/pre-releases/3.2/rc3/download/build_debug/test/../tools/clang/test
)
lit.py: lit.cfg:171: note: using clang:
'/home/evansl/download/llvm/pre-releases/3.2/rc3/download/build_debug/Release+Debug/bin/clang'
-- Testing: 12434 tests, 2 threads --
Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80
FAIL: LLVM :: Transforms/GVN/null-aliases-nothing.ll (10380 of 12434)
******************** TEST 'LLVM ::
Transforms/GVN/null-aliases-nothing.ll' FAILED ********************
Script:
--
/home/evansl/download/llvm/pre-releases/3.2/rc3/download/build_debug/Release+Debug/bin/opt
/home/evansl/download/llvm/pre-releases/3.2/rc3/download/llvm.src/test/Transforms/GVN/null-aliases-nothing.ll
-basicaa -gvn -S |
/home/evansl/download/llvm/pre-releases/3.2/rc3/download/build_debug/Release+Debug/bin/FileCheck
/home/evansl/download/llvm/pre-releases/3.2/rc3/download/llvm.src/test/Transforms/GVN/null-aliases-nothing.ll
--
Exit Code: 1
Command Output (stderr):
--
<stdin>:1:67: error: CHECK-NOT: string occurred!
; ModuleID =
'/home/evansl/download/llvm/pre-releases/3.2/rc3/download/llvm.src/test/Transforms/GVN/null-aliases-nothing.ll'
                                                                  ^
/home/evansl/download/llvm/pre-releases/3.2/rc3/download/llvm.src/test/Transforms/GVN/null-aliases-nothing.ll:18:18:
note: CHECK-NOT: pattern specified here
; CHECK-NOT: load
                 ^
--

Larry, it was an odd test. As workaround, please avoid directory
contains "download" to build the tree.

Thanks Takumi. Would simply renaming download to dwnload be OK? Also,
as you can see above, download occurs twice in the above path. Should
both downloads be renamed? In addition, could you explain
why the name, download, causes a problem? If I knew that, I might
avoid making a similar mistake later.

Fixed in llvm r171243.

So if I just use svn instead of the tar files from:

  http://llvm.org/pre-releases/3.2/rc3/

the problem should disappear now?

TIA.

-regards,
Larry

Note quite. If you look closely at the failed test:

; CHECK-NOT: load

This check that the “load” string does not appear, however “load” being a substring of “download” makes the test fail in your case.

Obviously the test is wrong (the check should not rely on the full path to the directory in any way), and a work around is to avoid having the “load” substring appear anywhere in the path. For example using “dl” instead of “download” should make this test pass.

– Matthieu