build clang using mingw error

Hi all,
I tried to build clang and llvm on windows 7 platform using mingw. it finely configures but while building using “make -j4” commond it produce following build log and errors

llvm[0]: Constructing LLVMBuild project information.
ImportError: No module named site
make[1]: Entering directory /f/llvmtest/newbuildmingw1/lib/Support' llvm[1]: Constructing LLVMBuild project information. ImportError: No module named site llvm[1]: Compiling APFloat.cpp for Debug+Asserts build llvm[1]: Compiling APInt.cpp for Debug+Asserts build llvm[1]: Compiling APSInt.cpp for Debug+Asserts build llvm[1]: Compiling Allocator.cpp for Debug+Asserts build llvm[1]: Compiling Atomic.cpp for Debug+Asserts build llvm[1]: Compiling BlockFrequency.cpp for Debug+Asserts build llvm[1]: Compiling BranchProbability.cpp for Debug+Asserts build llvm[1]: Compiling CommandLine.cpp for Debug+Asserts build llvm[1]: Compiling ConstantRange.cpp for Debug+Asserts build llvm[1]: Compiling CrashRecoveryContext.cpp for Debug+Asserts build llvm[1]: Compiling DAGDeltaAlgorithm.cpp for Debug+Asserts build llvm[1]: Compiling DataExtractor.cpp for Debug+Asserts build llvm[1]: Compiling Debug.cpp for Debug+Asserts build llvm[1]: Compiling DeltaAlgorithm.cpp for Debug+Asserts build llvm[1]: Compiling Disassembler.cpp for Debug+Asserts build llvm[1]: Compiling Dwarf.cpp for Debug+Asserts build llvm[1]: Compiling DynamicLibrary.cpp for Debug+Asserts build llvm[1]: Compiling Errno.cpp for Debug+Asserts build llvm[1]: Compiling ErrorHandling.cpp for Debug+Asserts build llvm[1]: Compiling FileUtilities.cpp for Debug+Asserts build llvm[1]: Compiling FoldingSet.cpp for Debug+Asserts build llvm[1]: Compiling FormattedStream.cpp for Debug+Asserts build llvm[1]: Compiling GraphWriter.cpp for Debug+Asserts build llvm[1]: Compiling Host.cpp for Debug+Asserts build llvm[1]: Compiling IncludeFile.cpp for Debug+Asserts build llvm[1]: Compiling IntEqClasses.cpp for Debug+Asserts build llvm[1]: Compiling IntervalMap.cpp for Debug+Asserts build llvm[1]: Compiling IntrusiveRefCntPtr.cpp for Debug+Asserts build llvm[1]: Compiling IsInf.cpp for Debug+Asserts build llvm[1]: Compiling IsNAN.cpp for Debug+Asserts build llvm[1]: Compiling JSONParser.cpp for Debug+Asserts build llvm[1]: Compiling ManagedStatic.cpp for Debug+Asserts build llvm[1]: Compiling Memory.cpp for Debug+Asserts build llvm[1]: Compiling MemoryBuffer.cpp for Debug+Asserts build llvm[1]: Compiling MemoryObject.cpp for Debug+Asserts build llvm[1]: Compiling Mutex.cpp for Debug+Asserts build llvm[1]: Compiling Path.cpp for Debug+Asserts build llvm[1]: Compiling PathV2.cpp for Debug+Asserts build llvm[1]: Compiling PluginLoader.cpp for Debug+Asserts build llvm[1]: Compiling PrettyStackTrace.cpp for Debug+Asserts build llvm[1]: Compiling Process.cpp for Debug+Asserts build llvm[1]: Compiling Program.cpp for Debug+Asserts build llvm[1]: Compiling RWMutex.cpp for Debug+Asserts build llvm[1]: Compiling Regex.cpp for Debug+Asserts build llvm[1]: Compiling SearchForAddressOfSpecialSymbol.cpp for Debug+Asserts build llvm[1]: Compiling Signals.cpp for Debug+Asserts build llvm[1]: Compiling SmallPtrSet.cpp for Debug+Asserts build llvm[1]: Compiling SmallVector.cpp for Debug+Asserts build llvm[1]: Compiling SourceMgr.cpp for Debug+Asserts build llvm[1]: Compiling Statistic.cpp for Debug+Asserts build llvm[1]: Compiling StringExtras.cpp for Debug+Asserts build llvm[1]: Compiling StringMap.cpp for Debug+Asserts build llvm[1]: Compiling StringPool.cpp for Debug+Asserts build llvm[1]: Compiling StringRef.cpp for Debug+Asserts build llvm[1]: Compiling SystemUtils.cpp for Debug+Asserts build llvm[1]: Compiling TargetRegistry.cpp for Debug+Asserts build llvm[1]: Compiling ThreadLocal.cpp for Debug+Asserts build llvm[1]: Compiling Threading.cpp for Debug+Asserts build llvm[1]: Compiling TimeValue.cpp for Debug+Asserts build llvm[1]: Compiling Timer.cpp for Debug+Asserts build llvm[1]: Compiling ToolOutputFile.cpp for Debug+Asserts build llvm[1]: Compiling Triple.cpp for Debug+Asserts build llvm[1]: Compiling Twine.cpp for Debug+Asserts build llvm[1]: Compiling Valgrind.cpp for Debug+Asserts build llvm[1]: Compiling circular_raw_ostream.cpp for Debug+Asserts build llvm[1]: Compiling raw_os_ostream.cpp for Debug+Asserts build llvm[1]: Compiling raw_ostream.cpp for Debug+Asserts build llvm[1]: Compiling regcomp.c for Debug+Asserts build llvm[1]: Compiling regerror.c for Debug+Asserts build llvm[1]: Compiling regexec.c for Debug+Asserts build llvm[1]: Compiling regfree.c for Debug+Asserts build llvm[1]: Compiling regstrlcpy.c for Debug+Asserts build llvm[1]: Compiling system_error.cpp for Debug+Asserts build llvm[1]: Building Debug+Asserts Archive Library libLLVMSupport.a make[1]: Leaving directory /f/llvmtest/newbuildmingw1/lib/Support’
make[1]: Entering directory /f/llvmtest/newbuildmingw1/lib/TableGen' llvm[1]: Constructing LLVMBuild project information. ImportError: No module named site llvm[1]: Compiling Error.cpp for Debug+Asserts build llvm[1]: Compiling Main.cpp for Debug+Asserts build llvm[1]: Compiling Record.cpp for Debug+Asserts build llvm[1]: Compiling TGLexer.cpp for Debug+Asserts build llvm[1]: Compiling TGParser.cpp for Debug+Asserts build llvm[1]: Compiling TableGenAction.cpp for Debug+Asserts build llvm[1]: Compiling TableGenBackend.cpp for Debug+Asserts build llvm[1]: Building Debug+Asserts Archive Library libLLVMTableGen.a make[1]: Leaving directory /f/llvmtest/newbuildmingw1/lib/TableGen’
make[1]: Entering directory /f/llvmtest/newbuildmingw1/utils' llvm[1]: Constructing LLVMBuild project information. ImportError: No module named site make[2]: Entering directory /f/llvmtest/newbuildmingw1/utils/FileCheck’
llvm[2]: Constructing LLVMBuild project information.
make[2]: Entering directory /f/llvmtest/newbuildmingw1/utils/FileUpdate' make[2]: Entering directory /f/llvmtest/newbuildmingw1/utils/PerfectShuffle’
llvm[2]: Constructing LLVMBuild project information.
llvm[2]: Constructing LLVMBuild project information.
make[2]: Entering directory /f/llvmtest/newbuildmingw1/utils/TableGen' llvm[2]: Constructing LLVMBuild project information. ImportError: No module named site llvm[2]: Compiling FileCheck.cpp for Debug+Asserts build ImportError: No module named site ImportError: No module named site ImportError: No module named site llvm[2]: Compiling FileUpdate.cpp for Debug+Asserts build llvm[2]: Compiling PerfectShuffle.cpp for Debug+Asserts build llvm[2]: Compiling AsmMatcherEmitter.cpp for Debug+Asserts build llvm[2]: Linking Debug+Asserts executable FileCheck llvm[2]: Linking Debug+Asserts executable FileUpdate llvm[2]: Linking Debug+Asserts executable llvm-PerfectShuffle llvm[2]: ======= Finished Linking Debug+Asserts Executable FileCheck make[2]: Leaving directory /f/llvmtest/newbuildmingw1/utils/FileCheck’
llvm[2]: ======= Finished Linking Debug+Asserts Executable llvm-PerfectShuffle
make[2]: Leaving directory /f/llvmtest/newbuildmingw1/utils/PerfectShuffle' make[2]: Entering directory /f/llvmtest/newbuildmingw1/utils/count’
llvm[2]: Constructing LLVMBuild project information.
make[2]: Entering directory /f/llvmtest/newbuildmingw1/utils/fpcmp' llvm[2]: ======= Finished Linking Debug+Asserts Executable FileUpdate make[2]: Leaving directory /f/llvmtest/newbuildmingw1/utils/FileUpdate’
llvm[2]: Constructing LLVMBuild project information.
ImportError: No module named site
ImportError: No module named site
make[2]: Entering directory /f/llvmtest/newbuildmingw1/utils/llvm-lit' llvm[2]: Constructing LLVMBuild project information. llvm[2]: Compiling count.c for Debug+Asserts build ImportError: No module named site llvm[2]: Compiling fpcmp.cpp for Debug+Asserts build llvm[2]: Creating 'llvm-lit' script... llvm[2]: Linking Debug+Asserts executable count ImportError: No module named site make[2]: *** [/f/llvmtest/newbuildmingw1/Debug+Asserts/bin/llvm-lit] Error 1 make[2]: Leaving directory /f/llvmtest/newbuildmingw1/utils/llvm-lit’
make[1]: *** [llvm-lit/.makeall] Error 2
make[1]: *** Waiting for unfinished jobs…
llvm[2]: Compiling AsmWriterEmitter.cpp for Debug+Asserts build
llvm[2]: ======= Finished Linking Debug+Asserts Executable count
make[2]: Leaving directory /f/llvmtest/newbuildmingw1/utils/count' llvm[2]: Compiling AsmWriterInst.cpp for Debug+Asserts build llvm[2]: Compiling CallingConvEmitter.cpp for Debug+Asserts build llvm[2]: Linking Debug+Asserts executable fpcmp llvm[2]: ======= Finished Linking Debug+Asserts Executable fpcmp make[2]: Leaving directory /f/llvmtest/newbuildmingw1/utils/fpcmp’
llvm[2]: Compiling CodeEmitterGen.cpp for Debug+Asserts build
llvm[2]: Compiling CodeGenDAGPatterns.cpp for Debug+Asserts build
llvm[2]: Compiling CodeGenInstruction.cpp for Debug+Asserts build
llvm[2]: Compiling CodeGenRegisters.cpp for Debug+Asserts build
llvm[2]: Compiling CodeGenTarget.cpp for Debug+Asserts build
llvm[2]: Compiling DAGISelEmitter.cpp for Debug+Asserts build
llvm[2]: Compiling DAGISelMatcher.cpp for Debug+Asserts build
llvm[2]: Compiling DAGISelMatcherEmitter.cpp for Debug+Asserts build
llvm[2]: Compiling DAGISelMatcherGen.cpp for Debug+Asserts build
llvm[2]: Compiling DAGISelMatcherOpt.cpp for Debug+Asserts build
llvm[2]: Compiling DFAPacketizerEmitter.cpp for Debug+Asserts build
llvm[2]: Compiling DisassemblerEmitter.cpp for Debug+Asserts build
llvm[2]: Compiling EDEmitter.cpp for Debug+Asserts build
llvm[2]: Compiling FastISelEmitter.cpp for Debug+Asserts build
llvm[2]: Compiling FixedLenDecoderEmitter.cpp for Debug+Asserts build
llvm[2]: Compiling InstrEnumEmitter.cpp for Debug+Asserts build
llvm[2]: Compiling InstrInfoEmitter.cpp for Debug+Asserts build
llvm[2]: Compiling IntrinsicEmitter.cpp for Debug+Asserts build
llvm[2]: Compiling PseudoLoweringEmitter.cpp for Debug+Asserts build
llvm[2]: Compiling RegisterInfoEmitter.cpp for Debug+Asserts build
llvm[2]: Compiling SetTheory.cpp for Debug+Asserts build
llvm[2]: Compiling StringMatcher.cpp for Debug+Asserts build
llvm[2]: Compiling SubtargetEmitter.cpp for Debug+Asserts build
llvm[2]: Compiling TGValueTypes.cpp for Debug+Asserts build
llvm[2]: Compiling TableGen.cpp for Debug+Asserts build
llvm[2]: Compiling X86DisassemblerTables.cpp for Debug+Asserts build
llvm[2]: Compiling X86ModRMFilters.cpp for Debug+Asserts build
llvm[2]: Compiling X86RecognizableInstr.cpp for Debug+Asserts build
llvm[2]: Linking Debug+Asserts executable llvm-tblgen
llvm[2]: ======= Finished Linking Debug+Asserts Executable llvm-tblgen
make[2]: Leaving directory /f/llvmtest/newbuildmingw1/utils/TableGen' make[1]: Leaving directory /f/llvmtest/newbuildmingw1/utils’
make: *** [all] Error 1

Can any one tell me what is going on and hoe to fix it???

Did you use CMake to generate the makefiles?