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: unassignedb...@nondot.org
          Reporter: felix...@yahoo.ca
                CC: llvm-bugs@lists.llvm.org, mehdi.am...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to