<div>Hello list.</div><div> </div><div>I am trying to build llvm, clang, compile-rt and lldb. I am working with cygwin (don't ask). Here is my tools list.</div><div> </div><div>$ ../llvm-check-tools.sh<br>make GNU Make 3.80<br>
gcc gcc (GCC) 4.5.3<br>svn svn, version 1.7.10 (r1485443)<br>Python 2.7.3<br>perl Summary of my perl5 (revision 5 version 14 subversion 2) configuration:<br>m4 m4 (GNU M4) 1.4.16<br>autoconf autoconf (GNU Autoconf) 2.69<br>
automake automake (GNU automake) 1.12.5<br>libtool libtool (GNU libtool) 2.4<br> </div><div> </div><div>When I run the following shell script</div><div> </div><div>PATH=/bin:/usr/bin<br>CC=gcc CXX=g++ ../llvm-3-3/configure --enable-optimized<br>
 </div><div> </div><div>I get the following warning</div><div> </div><div>checking if /dev/zero is needed for mmap... no<br>configure: WARNING: mmap() of a fixed address required but not supported<br>checking for GCC atomic builtins... yes<br>
</div><div> </div><div>With this warning, I run the following make script</div><div> </div><div>PATH=/bin:/usr/bin<br>make CXXFLAGS=-std=c++0x<br></div><div>and I get the following build error.</div><div> </div><div>llvm[1]: Compiling BranchProbability.cpp for Release+Asserts build<br>
In file included from /cygdrive/c/OpenSource/llvm-3-3/lib/Support/BranchProbability.cpp:16:0:<br>/cygdrive/c/OpenSource/llvm-3-3/include/llvm/Support/Format.h: In member function ‘int llvm::format_object1<T>::snprint(char*, unsigned int) const [with T = double]’:<br>
/cygdrive/c/OpenSource/llvm-3-3/lib/Support/BranchProbability.cpp:36:1:   instantiated from here<br>/cygdrive/c/OpenSource/llvm-3-3/include/llvm/Support/Format.h:88:49: error: ‘snprintf’ was not declared in this scope<br>
/cygdrive/c/OpenSource/llvm-3-3/include/llvm/Support/Format.h:89:3: warning: control reaches end of non-void function<br>/bin/rm: cannot remove `/cygdrive/c/OpenSource/llvmbuildVS/lib/Support/Release+Asserts/BranchProbability.d.tmp': No such file or directory<br>
make[1]: *** [/cygdrive/c/OpenSource/llvmbuildVS/lib/Support/Release+Asserts/BranchProbability.o] Error 1<br>make[1]: Leaving directory `/cygdrive/c/OpenSource/llvmbuildVS/lib/Support'<br>make: *** [all] Error 1<br></div>
<div> </div><div>Any suggestions on what I've done wrong?<br clear="all"></div><div> </div><div>Keith Smith</div><div><br>-- <br><font face="arial, sans-serif"><span style="color:rgb(24,24,24);line-height:18px;font-family:georgia,serif;font-size:14px;background-color:rgb(255,255,255)">"The difference between genius and stupidity is genius has its limits." <br>
— <a style="color:rgb(102,102,0);text-decoration:none" href="http://www.goodreads.com/author/show/9810.Albert_Einstein" target="_blank">Albert Einstein</a></span></font></div><div><span style="background-color:rgb(255,255,255)"><span style="line-height:18px;font-family:Arial,Tahoma,Helvetica,FreeSans,sans-serif;font-size:13px">"An intelligent fool can make things bigger and more complex. It takes a touch of genius and a lot of courage to move in the opposite direction"</span></span></div>
<div><span style="color:rgb(24,24,24);line-height:18px;font-family:georgia,serif;font-size:14px;background-color:rgb(255,255,255)">— </span><a style="color:rgb(102,102,0);line-height:18px;font-family:georgia,serif;font-size:14px;text-decoration:none" href="http://www.goodreads.com/author/show/9810.Albert_Einstein" target="_blank">Albert Einstein</a></div>
<div>"If you find yourself in a hole, stop digging"</div><div>- Will Rogers</div><div><span style="color:rgb(255,255,255);line-height:18px;font-family:Arial,Tahoma,Helvetica,FreeSans,sans-serif;font-size:13px;background-color:rgb(10,10,10)"><br>
</span></div>