Félix Cloutier
2011-Mar-01 04:07 UTC
[LLVMdev] Using clang+llvm from Xcode 3 project yields 1.5k linkage warnings
I'm using Xcode 3 to program with LLVM and Clang (both about yesterday's latest revisions), and when I compile, I get 1501 link-time warnings. All those I read were about symbol visibility. Here's an example: ld: warning: namespace::class::method() has different visibility (default) in /usr/local/lib/libclangCodeGen.a(CodeGenAction.o) and (hidden) in /Users/myself/Projets/path/build/project.build/Debug/project.build/Objects-normal/x86_64/object.o 1501 seems large enough that it could simply be all symbols referenced from the static libraries. It works anyways though. What am I doing wrong? As usual with stuff causing spectacular diagnostics, I must be missing something fairly elementary. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110228/6f013b7d/attachment.html>
Chris Lattner
2011-Mar-01 06:51 UTC
[LLVMdev] Using clang+llvm from Xcode 3 project yields 1.5k linkage warnings
On Feb 28, 2011, at 8:07 PM, Félix Cloutier wrote:> I'm using Xcode 3 to program with LLVM and Clang (both about yesterday's latest revisions), and when I compile, I get 1501 link-time warnings. All those I read were about symbol visibility. Here's an example: > > ld: warning: namespace::class::method() has different visibility (default) in /usr/local/lib/libclangCodeGen.a(CodeGenAction.o) and (hidden) in /Users/myself/Projets/path/build/project.build/Debug/project.build/Objects-normal/x86_64/object.o > > 1501 seems large enough that it could simply be all symbols referenced from the static libraries. It works anyways though. > What am I doing wrong? As usual with stuff causing spectacular diagnostics, I must be missing something fairly elementary.Hi Félix, The most likely cause of this is that you're building some llvm code with -fvisibility-inlines-hidden. Xcode likes to add this flag by default, you can change it in the target build options. -Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110228/3de2cdb7/attachment.html>
Félix Cloutier
2011-Mar-01 12:02 UTC
[LLVMdev] Using clang+llvm from Xcode 3 project yields 1.5k linkage warnings
Yes, that was it. Thank you very much. Le 2011-03-01 à 01:51:29, Chris Lattner a écrit :> > On Feb 28, 2011, at 8:07 PM, Félix Cloutier wrote: > >> I'm using Xcode 3 to program with LLVM and Clang (both about yesterday's latest revisions), and when I compile, I get 1501 link-time warnings. All those I read were about symbol visibility. Here's an example: >> >> ld: warning: namespace::class::method() has different visibility (default) in /usr/local/lib/libclangCodeGen.a(CodeGenAction.o) and (hidden) in /Users/myself/Projets/path/build/project.build/Debug/project.build/Objects-normal/x86_64/object.o >> >> 1501 seems large enough that it could simply be all symbols referenced from the static libraries. It works anyways though. >> What am I doing wrong? As usual with stuff causing spectacular diagnostics, I must be missing something fairly elementary. > > Hi Félix, > > The most likely cause of this is that you're building some llvm code with -fvisibility-inlines-hidden. Xcode likes to add this flag by default, you can change it in the target build options. > > -Chris >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110301/cf60e82c/attachment.html>
Seemingly Similar Threads
- [LLVMdev] Using clang+llvm from Xcode 3 project yields 1.5k linkage warnings
- [LLVMdev] Processing functions in call graph SCC "order" with function-level analyses
- [LLVMdev] Processing functions in call graph SCC "order" with function-level analyses
- [LLVMdev] Can I use Clang to parse snippets of C++ code?
- [LLVMdev] Why shouldn't function entry blocks have predecessors?