<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Building apitrace with clang 3.4 takes 40+ minutes"
   href="http://llvm.org/bugs/show_bug.cgi?id=19499">19499</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Building apitrace with clang 3.4 takes 40+ minutes
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.4
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>llvm@jalf.dk
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Downloaded <a href="https://github.com/apitrace/apitrace">https://github.com/apitrace/apitrace</a> 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

<span class="quote">> cmake -H. -DCMAKE_BUILD_TYPE=RelWithDebInfo
> make -C build</span >

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.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>