Error while compiling llvm 3.3 with clang

I'm using gcc 4.6.4, but same error shows up when I'm compiling with
precompiled llvm/clang 3.3 so it's source have to be somewhere else.

Error looks like that:

Full compilation log can be found there Compile log for llvm 3.3 Built on Wed Aug 21 12:39:31 UTC 2013Using gcc versio - Pastebin.com

From your compilation log:

configure: […] ‘CFLAGS=-march=core2 -fPIC -DPIC -pipe -DPIC -fPIC -O3’ […] ‘CPPFLAGS=’ ‘CXX=g++’ ‘CXXFLAGS=-march=core2 -fPIC -DPIC -pipe -DPIC -fPIC -O3’

The line where the build is failing:

bool PIC = PIE || getToolChain().isPICDefault();

Take the -DPIC out of your CFLAGS and CXXFLAGS and the problem should go away.