Bug#710863: clang-3.3 fails to build trunk

Marc J. Driftmeyer mjd at reanimality.com
Mon Jun 3 04:21:02 UTC 2013


Package: clang-3.3
Version: 1:3.3~svn179851-1~exp1
Severity: normal

Dear Maintainer,

Odd bug: After resolving the issue building llvm/clang trunk with gcc-4.7 in an early bug I have tested both the llvm-3.3 3.3~svn179851-1~exp1 and a freshly built llvm-3.4-trunk provided by gcc-4.7.3-4 both resulting in the following exact same location of failure:

Note: I run a default all on targets with x86_64 being my primary target:

Output:

mdriftmeyer at horus:~/DeveloperProjects/LLVMProject/cmake-clang-3.4-trunk$ make
[  3%] Built target LLVMSupport
[  3%] Built target LLVMTableGen
[  5%] Built target llvm-tblgen
[  5%] Built target intrinsics_gen
[  6%] Built target LLVMCore
[  6%] Built target LLVMAsmParser
[  6%] Built target LLVMBitReader
[  6%] Built target LLVMIRReader
[  6%] Built target LLVMObject
[  8%] Built target LLVMMC
[  8%] Built target LLVMTarget
[ 10%] Built target LLVMAnalysis
[ 11%] Built target LLVMipa
[ 13%] Built target LLVMTransformUtils
[ 14%] Built target LLVMInstCombine
[ 15%] Built target LLVMScalarOpts
[ 15%] Built target LLVMObjCARCOpts
[ 19%] Built target LLVMCodeGen
[ 20%] Built target LLVMSelectionDAG
[ 20%] Built target LLVMMCParser
[ 21%] Built target LLVMAsmPrinter
[ 21%] Built target LLVMBitWriter
[ 21%] Built target LLVMInstrumentation
[ 21%] Built target LLVMVectorize
[ 21%] Built target LLVMipo
[ 21%] Built target LLVMHello
[ 21%] Built target LLVMLinker
[ 21%] Built target LLVMMCDisassembler
[ 21%] Built target LLVMOption
[ 22%] Built target LLVMDebugInfo
[ 22%] Built target LLVMExecutionEngine
[ 22%] Built target LLVMInterpreter
[ 22%] Built target LLVMRuntimeDyld
[ 23%] Built target LLVMJIT
[ 23%] Built target LLVMMCJIT
[ 23%] Built target AArch64CommonTableGen
[ 23%] Built target LLVMAArch64Utils
[ 23%] Built target LLVMAArch64AsmPrinter
[ 23%] Built target LLVMAArch64Info
[ 23%] Built target LLVMAArch64Desc
[ 24%] Built target LLVMAArch64CodeGen
[ 24%] Built target LLVMAArch64AsmParser
[ 24%] Built target LLVMAArch64Disassembler
[ 25%] Built target ARMCommonTableGen
[ 25%] Built target LLVMARMAsmPrinter
[ 25%] Built target LLVMARMInfo
[ 25%] Built target LLVMARMDesc
[ 27%] Built target LLVMARMCodeGen
[ 27%] Built target LLVMARMAsmParser
[ 27%] Built target LLVMARMDisassembler
[ 27%] Built target LLVMCppBackendInfo
[ 27%] Built target LLVMCppBackendCodeGen
[ 28%] Built target HexagonCommonTableGen
[ 28%] Built target LLVMHexagonInfo
[ 28%] Built target LLVMHexagonDesc
[ 28%] Built target LLVMHexagonAsmPrinter
[ 29%] Built target LLVMHexagonCodeGen
[ 30%] Built target MipsCommonTableGen
[ 30%] Built target LLVMMipsInfo
[ 30%] Built target LLVMMipsAsmPrinter
[ 31%] Built target LLVMMipsDesc
[ 32%] Built target LLVMMipsCodeGen
[ 32%] Built target LLVMMipsDisassembler
[ 32%] Built target LLVMMipsAsmParser
[ 32%] Built target MBlazeCommonTableGen
[ 32%] Built target LLVMMBlazeInfo
[ 32%] Built target LLVMMBlazeAsmPrinter
[ 34%] Built target LLVMMBlazeDesc
[ 34%] Built target LLVMMBlazeCodeGen
[ 34%] Built target LLVMMBlazeAsmParser
[ 34%] Built target LLVMMBlazeDisassembler
[ 34%] Built target MSP430CommonTableGen
[ 34%] Built target LLVMMSP430AsmPrinter
[ 34%] Built target LLVMMSP430Info
[ 34%] Built target LLVMMSP430Desc
[ 35%] Built target LLVMMSP430CodeGen
[ 35%] Built target NVPTXCommonTableGen
[ 35%] Built target LLVMNVPTXAsmPrinter
[ 35%] Built target LLVMNVPTXInfo
[ 36%] Built target LLVMNVPTXDesc
[ 36%] Built target LLVMNVPTXCodeGen
[ 37%] Built target PowerPCCommonTableGen
[ 37%] Built target LLVMPowerPCInfo
[ 37%] Built target LLVMPowerPCAsmPrinter
[ 38%] Built target LLVMPowerPCDesc
[ 39%] Built target LLVMPowerPCCodeGen
[ 39%] Built target LLVMPowerPCAsmParser
[ 39%] Built target AMDGPUCommonTableGen
[ 39%] Built target LLVMR600Info
[ 39%] Built target LLVMR600AsmPrinter
[ 40%] Built target LLVMR600Desc
[ 41%] Built target LLVMR600CodeGen
[ 42%] Built target SparcCommonTableGen
[ 42%] Built target LLVMSparcInfo
[ 43%] Built target LLVMSparcDesc
[ 43%] Built target LLVMSparcCodeGen
[ 43%] Built target SystemZCommonTableGen
[ 43%] Built target LLVMSystemZAsmPrinter
[ 43%] Built target LLVMSystemZInfo
[ 43%] Built target LLVMSystemZDesc
[ 44%] Built target LLVMSystemZCodeGen
[ 44%] Built target LLVMSystemZAsmParser
[ 44%] Built target LLVMSystemZDisassembler
[ 44%] Built target X86CommonTableGen
[ 44%] Built target LLVMX86Utils
[ 44%] Built target LLVMX86AsmPrinter
[ 44%] Built target LLVMX86Info
[ 44%] Built target LLVMX86Desc
[ 45%] Built target LLVMX86CodeGen
[ 45%] Built target LLVMX86AsmParser
[ 45%] Built target LLVMX86Disassembler
[ 46%] Built target XCoreCommonTableGen
[ 46%] Built target LLVMXCoreInfo
[ 46%] Built target LLVMXCoreAsmPrinter
[ 46%] Built target LLVMXCoreDesc
[ 47%] Built target LLVMXCoreCodeGen
[ 47%] Built target LLVMXCoreDisassembler
[ 47%] Built target LLVMArchive
[ 47%] Built target FileCheck
[ 47%] Built target FileUpdate
[ 47%] Built target count
[ 47%] Built target not
[ 47%] Built target yaml-bench
[ 47%] Built target compiler-rt-headers
[ 52%] Built target clang_rt.x86_64
[ 52%] Built target RTLSanCommon.x86_64
[ 52%] Built target RTInterception.x86_64
[ 53%] Built target RTSanitizerCommonLibc.x86_64
[ 53%] Built target RTSanitizerCommon.x86_64
[ 54%] Built target clang_rt.asan-x86_64
[ 54%] Built target clang_rt.san-x86_64
[ 54%] Built target RTSanitizerCommon.test.nolibc.x86_64
[ 54%] Built target RTSanitizerCommon.test.x86_64
[ 54%] Built target clang_rt.profile-x86_64
[ 54%] Built target clang_rt.ubsan-x86_64
[ 54%] Built target clang_rt.ubsan_cxx-x86_64
[ 55%] Built target clang_rt.tsan-x86_64
[ 55%] Built target gtest
[ 55%] Built target gtest_main
[ 56%] Built target TsanRtlTest
[ 56%] Built target TsanUnitTest
[ 56%] Built target clang_rt.msan-x86_64
[ 56%] Built target clang_rt.lsan-x86_64
[ 57%] Built target clang-tblgen
[ 57%] Built target ClangSACheckers
-- Found Subversion: /usr/bin/svn (found version "1.7.9") 
[ 57%] Built target clang_revision_tag
[ 57%] Built target ClangDiagnosticAST
[ 58%] Built target ClangDiagnosticAnalysis
[ 58%] Built target ClangDiagnosticComment
[ 58%] Built target ClangDiagnosticDriver
[ 58%] Built target ClangDiagnosticCommon
[ 58%] Built target ClangDiagnosticFrontend
[ 58%] Built target ClangDiagnosticSerialization
[ 58%] Built target ClangDiagnosticSema
[ 58%] Built target ClangDiagnosticGroups
[ 58%] Built target ClangDiagnosticParse
[ 58%] Built target ClangDiagnosticLex
[ 58%] Built target ClangDiagnosticIndexName
[ 58%] Built target ClangAttrList
[ 58%] Built target ClangARMNeon
[ 59%] Built target clangBasic
[ 59%] Built target ClangAttrSpellings
[ 60%] Built target clangLex
[ 60%] Built target ClangStmtNodes
[ 60%] Built target ClangDeclNodes
[ 60%] Built target ClangCommentNodes
[ 60%] Built target ClangAttrClasses
[ 60%] Built target ClangCommentHTMLTags
[ 60%] Built target ClangCommentHTMLTagsProperties
[ 60%] Built target ClangCommentHTMLNamedCharacterReferences
[ 60%] Built target ClangCommentCommandInfo
[ 60%] Built target ClangCommentCommandList
[ 60%] Built target ClangAttrImpl
[ 60%] Built target ClangAttrDump
[ 62%] Built target clangAST
[ 62%] Built target clangEdit
[ 62%] Built target ClangAttrTemplateInstantiate
[ 62%] Built target ClangAttrParsedAttrList
[ 62%] Built target ClangAttrParsedAttrKinds
[ 62%] Built target ClangAttrSpellingListIndex
[ 63%] Built target clangAnalysis
[ 65%] Built target clangSema
[ 65%] Built target ClangAttrLateParsed
[ 65%] Built target ClangAttrExprArgs
[ 67%] Built target clangParse
[ 67%] Built target clangRewriteCore
[ 67%] Built target ClangAttrPCHRead
[ 67%] Built target ClangAttrPCHWrite
[ 67%] Built target clangSerialization
[ 67%] Built target ClangDriverOptions
[ 67%] Built target ClangCC1AsOptions
[ 68%] Built target clangDriver
[ 69%] Built target clangFrontend
[ 70%] Built target clangStaticAnalyzerCore
[ 73%] Built target clangStaticAnalyzerCheckers
[ 74%] Built target clang-headers
[ 75%] Built target clangCodeGen
[ 75%] Built target clangRewriteFrontend
[ 75%] Built target clangARCMigrate
[ 75%] Built target clangStaticAnalyzerFrontend
[ 75%] Built target clangFrontendTool
[ 76%] Built target clang
[ 76%] Built target Lsan-x86_64-Test
[ 76%] Built target llvm-config
[ 76%] Built target opt
[ 76%] Built target llvm-as
[ 76%] Built target llvm-dis
[ 76%] Built target llvm-mc
[ 76%] Built target llc
[ 76%] Built target llvm-ranlib
[ 76%] Built target llvm-ar
[ 76%] Built target llvm-nm
[ 76%] Built target llvm-size
[ 76%] Built target llvm-cov
[ 76%] Built target llvm-prof
[ 76%] Built target llvm-link
[ 76%] Built target lli
[ 77%] Built target llvm-extract
[ 77%] Built target llvm-diff
[ 77%] Built target macho-dump
[ 77%] Built target llvm-objdump
[ 77%] Built target llvm-readobj
[ 77%] Built target llvm-rtdyld
[ 77%] Built target llvm-dwarfdump
[ 77%] Built target bugpoint
[ 77%] Built target BugpointPasses
[ 77%] Built target llvm-bcanalyzer
[ 77%] Built target llvm-stress
[ 77%] Built target llvm-mcmarkup
[ 77%] Built target llvm-symbolizer
[ 77%] Built target obj2yaml
[ 78%] Built target yaml2obj
[ 78%] Built target LTO
[ 78%] Built target clangASTMatchers
[ 78%] Built target clangDynamicASTMatchers
[ 78%] Built target clangTooling
[ 78%] Built target clangFormat
[ 79%] Built target libclang
[ 79%] Built target c-index-test
[ 79%] Built target arcmt-test
[ 79%] Built target c-arcmt-test
[ 79%] Built target diagtool
[ 79%] Built target clang-check
[ 79%] Built target clang-format
[ 79%] Built target remove-cstr-calls
[ 79%] Built target tool-template
[ 79%] Built target migrateCore
[ 80%] Built target cpp11-migrate
[ 80%] Built target modularize
[ 80%] Built target Cpp11MigrateTests
[ 80%] Built target SampleAnalyzerPlugin
[ 80%] Built target clang-interpreter
[ 80%] Built target PrintFunctionNames
[ 80%] Built target BasicTests
[ 81%] Built target LexTests
[ 81%] Built target FrontendTests
[ 81%] Built target ASTMatchersTests
[ 81%] Built target DynamicASTMatchersTests
[ 81%] Built target ASTTests
Linking CXX executable ToolingTests
CMakeFiles/ToolingTests.dir/ToolingTest.cpp.o:/home/mdriftmeyer/DeveloperProjects/LLVMProject/llvm/tools/clang/unittests/Tooling/ToolingTest.cpp:function clang::tooling::newFrontendActionFactory_CreatesFrontendActionFactoryFromType_Test::TestBody(): error: undefined reference to 'clang::SyntaxOnlyAction::~SyntaxOnlyAction()'
clang-3.4: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [tools/clang/unittests/Tooling/ToolingTests] Error 1
make[1]: *** [tools/clang/unittests/Tooling/CMakeFiles/ToolingTests.dir/all] Error 2
make: *** [all] Error 2
mdriftmeyer at horus:~/DeveloperProjects/LLVMProject/cmake-clang-3.4-trunk


This is the exact same bug I with your deb packages of llvm-3.3/clang-3.3 and a freshly local built llvm-3.4-trunk from debian gcc-4.7.3-4.

Thoughts?

- Marc


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.8-2-rt-amd64 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages clang-3.3 depends on:
ii  libc6                2.17-4
ii  libclang-common-dev  1:3.3~svn179851-1~exp1
ii  libffi5              3.0.10-3
ii  libgcc1              1:4.8.0-9
ii  libllvm3.3           1:3.3~svn179851-1~exp1
ii  libstdc++6           4.8.0-9
ii  libstdc++6-4.7-dev   4.7.3-4

Versions of packages clang-3.3 recommends:
ii  llvm-3.3-dev  1:3.3~svn179851-1~exp1
ii  python        2.7.3-13

clang-3.3 suggests no packages.

-- no debconf information



More information about the Pkg-llvm-team mailing list