http://llvm.org/bugs/show_bug.cgi?id=13546
Bug #: 13546
Summary: Clang plugins do not work on OS X if installed
Product: clang
Version: trunk
Platform: PC
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: Driver
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
Using the example plugin as an example:
$ ~/build/llvm/Release+Asserts/bin/clang++ -Xclang -load -Xclang
~/build/llvm/Release+Asserts/lib/libPrintFunctionNames.dylib /tmp/test.cpp
[ no errors ]
$ sudo make -C ~/build/llvm install
[ Prefix = /usr/local/bin]
$ /usr/local/bin/clang++ -Xclang -load -Xclang
~/build/llvm/Release+Asserts/lib/libPrintFunctionNames.dylib /tmp/test.cpp
error: unable to load plugin
'/Users/jcranmer/build/llvm/Release+Asserts/lib/libPrintFunctionNames.dylib':
'dlopen(/usrs/jcranmer/build/llvm/Release+Asserts/lib/libPrintFunctionNames.dylib,
9): Symbol not found:
__ZN5clang11ASTConsumer21HandleInterestingDeclENS_12DeclGroupRefE
Referenced from:
/Users/jcranmer/build/llvm/Release+Asserts/lib/libPrintFunctionNames.dylib
Expected in: flat namespace
It looks like the issue is that make install does an install -m -s, which
strips all useful symbols from clang and makes it unusable for plugins.
Installed versions of clang work on Linux without any issues.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs