[LLVMbugs] [Bug 19499] New: Building apitrace with clang 3.4 takes 40+ minutes

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Apr 21 08:32:23 PDT 2014


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

            Bug ID: 19499
           Summary: Building apitrace with clang 3.4 takes 40+ minutes
           Product: new-bugs
           Version: 3.4
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: llvm at jalf.dk
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Downloaded https://github.com/apitrace/apitrace from github and tried to build,
ollowing the instructions from their INSTALL file, using clang 3.4 (from Xcode
5.1) on my MacBook Pro

apitrace HEAD is 8d6c36d74ba9aefbc8c3618fc93dd4907a0dbf5e

> cmake -H. -DCMAKE_BUILD_TYPE=RelWithDebInfo
> make -C build

After 40 or so minutes, it was still chewing on the file glretrace_gl.cpp

Attaching lldb, I got the following stacktrace:

  * frame #0: 0x0000000100735056
clang`llvm::LazyValueInfo::eraseBlock(llvm::BasicBlock*) + 918
    frame #1: 0x0000000100692044 clang`(anonymous
namespace)::JumpThreading::runOnFunction(llvm::Function&) + 13364
    frame #2: 0x000000010031604d
clang`llvm::FPPassManager::runOnFunction(llvm::Function&) + 333
    frame #3: 0x0000000100319215 clang`(anonymous
namespace)::CGPassManager::runOnModule(llvm::Module&) + 1669
    frame #4: 0x0000000100316799 clang`llvm::PassManager::run(llvm::Module&) +
1017
    frame #5: 0x00000001002e6103
clang`clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 12227
    frame #6: 0x00000001002c1f09
clang`clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 2169
    frame #7: 0x000000010006ca34 clang`clang::ParseAST(clang::Sema&, bool,
bool) + 11316
    frame #8: 0x0000000100066e04 clang`clang::CodeGenAction::ExecuteAction() +
68
    frame #9: 0x0000000100062550 clang`clang::FrontendAction::Execute() + 112
    frame #10: 0x000000010002aa2f
clang`clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 1855
    frame #11: 0x0000000100006b54 clang`main + 17572

(I gave up after this, so I can't say how long it would have taken for the
build to actually complete)

Configuring cmake with -DCMAKE_BUILD_TYPE=Debug (disabling optimizations) makes
a build complete in a minute or so.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140421/c85f8e23/attachment.html>


More information about the llvm-bugs mailing list