[LLVMdev] Building llvm from source with clang instead of gcc

Dmitri Gribenko gribozavr at gmail.com
Sat Jan 5 10:11:16 PST 2013


On Sat, Jan 5, 2013 at 7:48 PM, Edward Diener
<eldlistmailingz at tropicsoft.com> wrote:
> I actually found out that llvm/configure will choose clang if it is
> found in the path. This contradicts what is written at
> http://llvm.org/docs/GettingStarted.html#requirements, where it says it
> will use the first GCC it finds. Perhaps that explanation needs to be
> updated.

Updated docs in r171630.

> Finally I found that if llvm/configure uses clang instead of gcc, it
> invariably fails on my Linux distros because it is using the gcc
> distributed included directories and an earlier version of clang will
> often fail with these gcc header files. Once I force llvm/configure to
> use gcc, building llvm/clang succeeds again.

Right.  Maybe we need to skip old clang versions in this case.

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/



More information about the llvm-dev mailing list