Cling compiling

Hi
I am trying to build cling for the second time!
I am using 5.31.00
it went okay this time,
I could compile llvm, cling
When I try “Connect ROOT to Cling”, I do the following
cd cint
svn co root.cern.ch/svn/root/branches/d … ing/cling/ cling
cd …
./configure --build=debug
. bin/thisroot.sh

export LD_LIBRARY_PATH=$LLVMDIR/lib:$LD_LIBRARY_PATH
sudo make LLVMDIR=/usr/local/build
but I get an error from the compiler

/usr/local/root/cint/cling/src/rootcling.cxx:37:38: error: llvm/Target/TargetSelect.h: No such file or directory
/usr/local/root/cint/cling/src/rootcling.cxx: In function ‘void info(std::string)’:
/usr/local/root/cint/cling/src/rootcling.cxx:75: warning: format not a string literal and no format arguments
/usr/local/root/cint/cling/src/rootcling.cxx: In function ‘void error(std::string)’:
/usr/local/root/cint/cling/src/rootcling.cxx:80: warning: format not a string literal and no format arguments
make: *** [cint/cling/src/rootcling.o] Error 1

Hi,

LLVMDIR should be set to the location where the header file are installed. In particular you would need to have a directory named /usr/local/build/include/llvm (which is probably not the case).

Cheers,
Philippe.