[cfe-dev] Building Clang examples and running

Seth Burleigh seth at tewebs.com
Fri Jun 11 14:39:09 PDT 2010


tried editing the autoconf and rebuilding, didn't work. When i use make
to build the examples, and then make install, only the print function
exxample is installed, and for the two other examples only a .o file is
produced , and make install skips those two. And then when i try to do
the plugin thing with the .so file installed under /usr/local/bin/, it
says it cant find the plugin. None listed when using -help either.

Also tried using ccmake ~/.tmp/llvm/, came up with an 'empty cache page
0/0' so cant edit anything there.




On Fri, 2010-06-11 at 15:57 +0200, Sebastien Binet wrote:
> 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.
> 





More information about the cfe-dev mailing list