<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:jfonseca@vmware.com" title="Jose Fonseca <jfonseca@vmware.com>"> <span class="fn">Jose Fonseca</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED NOTOURBUG - lp_bld_debug.cpp:141: undefined reference to `llvm::sys::getProcessTriple()'"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=92629">bug 92629</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>NOTOURBUG
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED NOTOURBUG - lp_bld_debug.cpp:141: undefined reference to `llvm::sys::getProcessTriple()'"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=92629#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED NOTOURBUG - lp_bld_debug.cpp:141: undefined reference to `llvm::sys::getProcessTriple()'"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=92629">bug 92629</a>
              from <span class="vcard"><a class="email" href="mailto:jfonseca@vmware.com" title="Jose Fonseca <jfonseca@vmware.com>"> <span class="fn">Jose Fonseca</span></a>
</span></b>
        <pre>Thanks Vinson.

I can repro this on Ubuntu 15.10 doing

  CC=clang CXX=clang++ scons lp_test_arit

If I do

  nm -u build/linux-x86_64-debug/gallium/auxiliary/gallivm/lp_bld_debug.os

with G++ I get

  U _ZN4llvm3sys16getProcessTripleB5cxx11Ev

where as with Clang I get

  _ZN4llvm3sys16getProcessTripleEv

If I run both through c++filt I get with g++

  U llvm::sys::getProcessTriple[abi:cxx11]()

whereas with clang I get

  U llvm::sys::getProcessTriple()

In other words, clang is not emitting cxx11 abi symbols, when g++ is.

This seems to be a known problem:

  <a href="http://allanmcrae.com/2015/06/the-case-of-gcc-5-1-and-the-two-c-abis/">http://allanmcrae.com/2015/06/the-case-of-gcc-5-1-and-the-two-c-abis/</a>
 
<a href="https://www.reddit.com/r/cpp/comments/3b2glr/why_clang_cant_use_the_new_gcc_5_cxx11_abi/">https://www.reddit.com/r/cpp/comments/3b2glr/why_clang_cant_use_the_new_gcc_5_cxx11_abi/</a>

And there's even a LLVM/clang bug filed:

  <a href="https://llvm.org/bugs/show_bug.cgi?id=23529">https://llvm.org/bugs/show_bug.cgi?id=23529</a></pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>