[LLVMdev] can't build LLVM under Cygwin | released MinGW llvm-2.3 image

Julien Lerouge jlerouge at apple.com
Tue Oct 7 16:35:47 PDT 2008

On Mon, Oct 06, 2008 at 08:12:05PM -0400, Chuck Zhao wrote:
> I used to be able to build LLVM (from source) under Cygwin for llvm-2.2 
> and previous releases, but can't continue the trend since the release of 
> LLVM 2.3.
> I have tried a wide variety of gcc compilers (gcc 3.4.4, 4.1.2, 4.2.4 
> and 4.3.2) on cygwin, they all fail at the same location:
> C:\cygwin\home\czhao\ResearchTools\LLVM\2.3\obj2.3>make
> make[1]: Entering directory 
> `/home/czhao/ResearchTools/LLVM/2.3/obj2.3/lib/System'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory 
> `/home/czhao/ResearchTools/LLVM/2.3/obj2.3/lib/System'
> make[1]: Entering directory 
> `/home/czhao/ResearchTools/LLVM/2.3/obj2.3/lib/Support'
> llvm[1]: Compiling APInt.cpp for Release build
> /home/czhao/ResearchTools/LLVM/2.3/llvm-2.3/lib/Support/APInt.cpp: In 
> member function 'void llvm::APInt::Profile(llvm::FoldingSetNodeID&) const':
> /home/czhao/ResearchTools/LLVM/2.3/llvm-2.3/lib/Support/APInt.cpp:170: 
> error: call of overloaded 'AddInteger(const uint32_t&)' is ambiguous
> /home/czhao/ResearchTools/LLVM/2.3/llvm-2.3/include/llvm/ADT/FoldingSet.h:216: 
> note: candidates are: void llvm::FoldingSetNodeID::AddInteger(int)
> ...
> The GettingStarted page mentions that gcc 3.4.4 is used for the 
> X86/Cygwin/MinGW build. Is this still true? or there is/are special 
> flags/options I am missing?

Try this:


I might be wrong, but I think the latest version of Cygwin got this
fixed upstream.

The archives on GMANE are a very good source of information for
cygwin/mingw build.

Hope this helps,

Julien Lerouge
PGP Key Id: 0xB1964A62
PGP Fingerprint: 392D 4BAD DB8B CE7F 4E5F FA3C 62DB 4AA7 B196 4A62
PGP Public Key from: keyserver.pgp.com

More information about the llvm-dev mailing list