[LLVMdev] Cygwin, configure and make

Keith Smith fernleaf07 at gmail.com
Sat Jun 15 16:04:48 PDT 2013


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.

$ ../llvm-check-tools.sh
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

PATH=/bin:/usr/bin
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

PATH=/bin:/usr/bin
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<T>::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

-- 
"The difference between genius and stupidity is genius has its limits."
— Albert Einstein<http://www.goodreads.com/author/show/9810.Albert_Einstein>
"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"
— Albert Einstein<http://www.goodreads.com/author/show/9810.Albert_Einstein>
"If you find yourself in a hole, stop digging"
- Will Rogers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130615/b77c69dc/attachment.html>


More information about the llvm-dev mailing list