<html>
    <head>
      <base href="https://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 --- - Linking against macOS prebuilt binaries causes linker warnings around std::__1::__call_once_proxy"
   href="https://llvm.org/bugs/show_bug.cgi?id=31782">31782</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Linking against macOS prebuilt binaries causes linker warnings around std::__1::__call_once_proxy
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>4.0
          </td>
        </tr>

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

        <tr>
          <th>URL</th>
          <td>https://github.com/zneak/fcd/tree/llvm-4.0
          </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>Core LLVM classes
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>felixcca@yahoo.ca
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org, mehdi.amini@apple.com
          </td>
        </tr>

        <tr>
          <th>Blocks</th>
          <td>31622
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I've upgraded a project (see bug URL) to LLVM 4.0. It seems to work, but I get
over 200 linker warnings of the following format:

<span class="quote">> ld: warning: direct access in function 'llvm::initializeExternalAAWrapperPassPass(llvm::PassRegistry&)' from file '/Users/.../Projets/clang+llvm-4.0.0-rc1-x86_64-apple-darwin/lib/libLLVMAnalysis.a(AliasAnalysis.cpp.o)' to global weak symbol 'void std::__1::__call_once_proxy<std::__1::tuple<void* (&)(llvm::PassRegistry&), std::__1::reference_wrapper<llvm::PassRegistry>&&> >(void*)' from file '/Users/.../Library/Developer/Xcode/DerivedData/fcd-aagtzwcwgbftbkcrfnkqbgvqpfbm/Build/Intermediates/.../Objects-normal/x86_64/foo.o' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.</span >

The constant is __call_once_proxy.

I am building my project using the libc++ version that ships with Xcode 8.2.1.
The project didn't have any of these warnings when linking against the prebuilt
LLVM 3.9.</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>