[llvm-bugs] [Bug 31782] New: Linking against macOS prebuilt binaries causes linker warnings around std::__1::__call_once_proxy

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jan 26 21:55:57 PST 2017


https://llvm.org/bugs/show_bug.cgi?id=31782

            Bug ID: 31782
           Summary: Linking against macOS prebuilt binaries causes linker
                    warnings around std::__1::__call_once_proxy
           Product: libraries
           Version: 4.0
          Hardware: Macintosh
               URL: https://github.com/zneak/fcd/tree/llvm-4.0
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: Core LLVM classes
          Assignee: unassignedbugs at nondot.org
          Reporter: felixcca at yahoo.ca
                CC: llvm-bugs at lists.llvm.org, mehdi.amini at apple.com
            Blocks: 31622
    Classification: Unclassified

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:

> 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.

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.

-- 
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/20170127/e45744a8/attachment.html>


More information about the llvm-bugs mailing list