[LLVMdev] can't build LLVM under Cygwin | released MinGW llvm-2.3 image
Chuck Zhao
czhao at cs.toronto.edu
Mon Oct 6 17:12:05 PDT 2008
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)
/home/czhao/ResearchTools/LLVM/2.3/llvm-2.3/include/llvm/ADT/FoldingSet.h:217:
note: void llvm::FoldingSetNodeID::AddInteger(unsigned int)
/home/czhao/ResearchTools/LLVM/2.3/llvm-2.3/include/llvm/ADT/FoldingSet.h:218:
note: void llvm::FoldingSetNodeID::AddInteger(int64_t)
/home/czhao/ResearchTools/LLVM/2.3/llvm-2.3/include/llvm/ADT/FoldingSet.h:219:
note: void llvm::FoldingSetNodeID::AddInteger(uint64_t)
make[1]: ***
[/home/czhao/ResearchTools/LLVM/2.3/obj2.3/lib/Support/Release/APInt.o]
Error 1
make[1]: Leaving directory
`/home/czhao/ResearchTools/LLVM/2.3/obj2.3/lib/Support'
make: *** [all] Error 1
C:\cygwin\home\czhao\ResearchTools\LLVM\2.3\obj2.3>
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?
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
An other question:
For the published Cygwin/MinGW build, after unzipping, there is just 1
bin directory. What happens to other related directories (include, lib,
doc, man, ...) for the 2.3 release build?
Thank you
Chuck
More information about the llvm-dev
mailing list