[cfe-dev] error while building llvm clang using ninja.

Nikola Smiljanic popizdeh at gmail.com
Wed May 6 16:50:43 PDT 2015

You should probably get DAGDeltaAlgorithm.cpp from wherever you got the
source code from. If you have a checkout of svn or local git clone you
should be able to revert the deletion.

What does /usr/bin/cc point too? I think it's not clang. BTW isn't cc
supposed to be C compiler in which case you'd need to set

On Sun, May 3, 2015 at 3:07 AM, Vibhav Kundalia <vibhav.hk at gmail.com> wrote:

> Hey guys,
> I was trying to build llvm clang 3.7 using Ninja and in the last step I
> got following error.
> vibhav at vibhav-HP-2000-Notebook-PC:~/clang-llvm/build$ ninja
> *[3/2639] Building C object
> lib/Support...keFiles/LLVMSupport.dir/ConvertUTF.c.oFAILED: /usr/bin/cc
> -Wno-unused-parameter -Wwrite-strings -Wmissing-field-initializers
> -pedantic -Wno-long-long -Wno-comment -fcolor-diagnostics -g -Ilib/Support
> -I/home/vibhav/clang-llvm/llvm/lib/Support -Iinclude
> -I/home/vibhav/clang-llvm/llvm/include -MMD -MT
> lib/Support/CMakeFiles/LLVMSupport.dir/ConvertUTF.c.o -MF
> "lib/Support/CMakeFiles/LLVMSupport.dir/ConvertUTF.c.o.d" -o
> lib/Support/CMakeFiles/LLVMSupport.dir/ConvertUTF.c.o   -c
> /home/vibhav/clang-llvm/llvm/lib/Support/ConvertUTF.ccc: error:
> unrecognized command line option ‘-fcolor-diagnostics’*
> [3/2639] Building CXX object
> lib/Suppo...LVMSupport.dir/DAGDeltaAlgorithm.cpp.o
> ninja: build stopped: subcommand failed.
> In trying to solve this error, I deleted DAGDeltaAlgorithm.cpp file.
> Can you please tell me how to fix this error? And can you also tell me
> from where to get DAGDeltaAlgorithm.cpp file back? Or can you send me that?
> I have already set the entry for CMAKE_CXX_COMPILER to
> /usr/local/bin/clang++
> thanks.
> Vibhav Kundalia
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150507/e49aaa9b/attachment.html>

More information about the cfe-dev mailing list