<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 --- - llvm Trunk fails to build on DragonFly + patches"
   href="http://llvm.org/bugs/show_bug.cgi?id=17735">17735</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>llvm Trunk fails to build on DragonFly + patches
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>DragonFly BSD
          </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>robin.hahling@gw-computing.net
          </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>Created <span class=""><a href="attachment.cgi?id=11445" name="attach_11445" title="patches required to build llvm on DragonFly">attachment 11445</a> <a href="attachment.cgi?id=11445&action=edit" title="patches required to build llvm on DragonFly">[details]</a></span>
patches required to build llvm on DragonFly

DragonFly is not able to build llvm anymore. It used to build fine up to at
least llvm 3.3. However, it required patches which I attached here.

We would be grateful if you incorporate theses patches. They are trivial and do
not affect others systems than DragonFly therefore they should not cause any
problems.

However, since at least revision 191854, llvm fails to build on DragonFly.
The getFrequency() method in include/llvm/Support/BlockFrequency.h from the
BlockFrequency class does not seem to return the correct type which leads
std::max to fail when called in include/llvm/Analysis/BlockFrequencyImpl.h with
errors such as:
error: no matching function for call to 'max(uint64_t&, long long unsigned
int)'

Full stack trace attached with build attempts on r191854 and r193677.
To reproduce, simply try building llvm from a DragonFly host. Build attempts
where made with the current development version of DragonFly:  3.5-DEVELOPMENT
DragonFly v3.5.0.1265.gc05746-DEVELOPMENT</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>