[LLVMbugs] [Bug 13546] New: Clang plugins do not work on OS X if installed

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Aug 7 11:07:35 PDT 2012


             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: unassignedclangbugs at nondot.org
        ReportedBy: Pidgeot18 at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    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
9): Symbol not found:
  Referenced from:
  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.

More information about the llvm-bugs mailing list