Cygwin, configure and make

Hello list.

I am trying to build llvm, clang, compile-rt and lldb. I am working with cygwin (don’t ask). Here is my tools list.

$ …/
make GNU Make 3.80
gcc gcc (GCC) 4.5.3
svn svn, version 1.7.10 (r1485443)
Python 2.7.3
perl Summary of my perl5 (revision 5 version 14 subversion 2) configuration:
m4 m4 (GNU M4) 1.4.16
autoconf autoconf (GNU Autoconf) 2.69
automake automake (GNU automake) 1.12.5
libtool libtool (GNU libtool) 2.4

When I run the following shell script

CC=gcc CXX=g++ …/llvm-3-3/configure --enable-optimized

I get the following warning

checking if /dev/zero is needed for mmap… no
configure: WARNING: mmap() of a fixed address required but not supported
checking for GCC atomic builtins… yes

With this warning, I run the following make script

make CXXFLAGS=-std=c++0x

and I get the following build error.

llvm[1]: Compiling BranchProbability.cpp for Release+Asserts build
In file included from /cygdrive/c/OpenSource/llvm-3-3/lib/Support/BranchProbability.cpp:16:0:
/cygdrive/c/OpenSource/llvm-3-3/include/llvm/Support/Format.h: In member function ‘int llvm::format_object1::snprint(char*, unsigned int) const [with T = double]’:
/cygdrive/c/OpenSource/llvm-3-3/lib/Support/BranchProbability.cpp:36:1: instantiated from here
/cygdrive/c/OpenSource/llvm-3-3/include/llvm/Support/Format.h:88:49: error: ‘snprintf’ was not declared in this scope
/cygdrive/c/OpenSource/llvm-3-3/include/llvm/Support/Format.h:89:3: warning: control reaches end of non-void function
/bin/rm: cannot remove /cygdrive/c/OpenSource/llvmbuildVS/lib/Support/Release+Asserts/BranchProbability.d.tmp': No such file or directory make[1]: *** [/cygdrive/c/OpenSource/llvmbuildVS/lib/Support/Release+Asserts/BranchProbability.o] Error 1 make[1]: Leaving directory /cygdrive/c/OpenSource/llvmbuildVS/lib/Support’
make: *** [all] Error 1

Any suggestions on what I’ve done wrong?

Keith Smith