[cfe-dev] Building Clang examples and running

Sebastien Binet binet at cern.ch
Fri Jun 11 06:57:53 PDT 2010


On Fri, 11 Jun 2010 14:38:35 +0100, Bruce Stephens <bruce.r.stephens at gmail.com> wrote:
> Seth Burleigh <seth-12uWGSe1GEnQT0dZR+AlfA at public.gmane.org> writes:
> 
> > Im trying to get the printfn example to work. I go to director and do
> > sudo make and then sudo make install, i then run
> >
> > clang -cc1 -load /usr/local/lib/libPrintFunctionNames.so   -plugin help
> >
> > and i get
> > clang -cc1 plugins:
> >
> > which means there are no plugins, indeed when i to prin-fns instead of
> > help, it says it cant find plugin.
> 
> I foung the same.  The only way I managed to get it to work was to
> ignore configure and use cmake.  So, in another directory use "ccmake
> <path-to-llvm-source>" (where ccmake is one of the frontends to cmake)
> and turn on the CMAKE_BUILD_EXAMPLES option (and set
> CMAKE_INSTALL_PREFIX if you want) then use make in that directory.
> "make install" will also work.

to have it working with make, see:
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2010-April/008559.html

or there, for an archlinux packaged example:
http://repos.archlinux.org/wsvn/community/llvm/trunk/PKGBUILD
http://repos.archlinux.org/wsvn/community/llvm/trunk/clang-plugin-loader-registry.patch

hth,
sebastien.

-- 
#########################################
# Dr. Sebastien Binet
# Laboratoire de l'Accelerateur Lineaire
# Universite Paris-Sud XI
# Batiment 200
# 91898 Orsay
#########################################



More information about the cfe-dev mailing list