[LLVMdev] Bootstrapping llvm

Jean-Daniel Dupas devlists at shadowlab.org
Wed Jun 16 08:00:37 PDT 2010

Le 16 juin 2010 à 10:57, Sunay Ismail a écrit :

> Dimitry Andric <dimitry <at> andric.com> writes:
>> On 2010-06-15 18:28, Sunay Ismail wrote:
>>> I read on web that llvm compiles itself with clang, but could not find the
>>> instruction to achieve that. I try "./configure CC=clang CXX=clang" but get
> link
>>> errors.
>> Try using CXX=clang++ instead.  Always use clang++ for C++ code. :)
> clang++ does not exist. I tried "CXX=clang -x c++" but fail with errors, clang
> is trying to compile .o files.
> "llvm/utils/fpcmp/Release/fpcmp.o:4:2235: warning: ull character ignored"
> with 
> ./configure --enable-optimized --with-clang=/usr/bin/clang CC=/usr/bin/clang
> CXX="/usr/bin/clang -x c++"
> Tried clean svn, but fails too. Did I something wrong?

As someone else already point out, you can fix this simply with the following commands:

cd /usr/bin
ln -s clang clang++

-- Jean-Daniel

More information about the llvm-dev mailing list