compilling clang

Compilling LLVM/clang does not finish compilling for 3 or 4 hours(which was not the case earlier). and saw following warning also. The warning format does not seem to be from

gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-3)

llvm[4]: Compiling AnalysisBasedWarnings.cpp for Release+Asserts build
/home/deleisha/CodeSpace/llvmDev/llvm/tools/clang/lib/Sema/AnalysisBasedWarnings.cpp:1126:7: warning: template argument uses local type
‘<anonymous enum at /home/deleisha/CodeSpace/llvmDev/llvm/tools/clang/lib/Sema/AnalysisBasedWarnings.cpp:1105:5>’
[-Wlocal-type-template-args]
<< ObjectKind << D << FunctionKind
^~
/home/deleisha/CodeSpace/llvmDev/llvm/tools/clang/lib/Sema/AnalysisBasedWarnings.cpp:1126:26: warning: template argument uses local type
‘<anonymous enum at /home/deleisha/CodeSpace/llvmDev/llvm/tools/clang/lib/Sema/AnalysisBasedWarnings.cpp:1067:3>’
[-Wlocal-type-template-args]
<< ObjectKind << D << FunctionKind

/home/deleisha/CodeSpace/llvmDev/llvm/tools/clang/lib/Sema/SemaCast.cpp:768:48: warning: template argument uses local type ‘<anonymous enum at
/home/deleisha/CodeSpace/llvmDev/llvm/tools/clang/lib/Sema/SemaCast.cpp:705:3>’ [-Wlocal-type-template-args]
<< DerivedType << BaseType << !VirtualBase << ReinterpretKind
^~
1 warning generated.
llvm[4]: Compiling SemaChecking.cpp for Release+Asserts build

If clang is installed on your system, configure will automatically
prefer it over gcc. You can override this by specifying CC and CXX.

That said, please file a bug; building clang with clang should not
generate warnings.

-Eli

Thanks, Lost the warning msgs.

clang can not finishes the clang compilation kin 4 or 5 hours, Seems horrible.

is there any specific reason to prefer clang over gcc when clang is installed?

Let me retried to get the warnings at weekend and open a Bug for it.

Thanks, Lost the warning msgs.
clang can not finishes the clang compilation kin 4 or 5 hours, Seems
horrible.

is there any specific reason to prefer clang over gcc when clang is
installed?

The installed clang is presumed to be a release build without asserts
enabled and should be faster on your platform than gcc. You should
check which clang is being used to build and make sure it isn't a
debug build which can often slow clang down up to 10x.

clang -v will provide the type of information you're looking for as
well as looking in config.log to see which clang it picked.

-eric