[LLVMdev] Problem compiling LLVM under Cygwin/Mingw
Alain Frisch
alain at frisch.fr
Mon Aug 6 09:48:03 PDT 2007
Hello,
I'm starting to play with LLVM today and I've trouble compiling it. I'm
working under Windows Vista, with the gcc from Cygwin:
gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
Is LLVM supposed to work with this version of GCC (probably using the
-mno-cygwin option to get a Mingw-like behavior)?
The LLVM source tree is from the current SVN trunk.
Compilation fails at SelectionDAG.cpp:
llvm[3]: Compiling SelectionDAG.cpp for Debug build
SelectionDAG.cpp: In function `void
AddNodeIDNode(llvm::FoldingSetNodeID&, llvm::SDNode*)':
SelectionDAG.cpp:344: error: call of overloaded
`AddInteger(llvm::MVT::ValueType)' is ambiguous
/home/afrisch/llvm/llvm/include/llvm/ADT/FoldingSet.h:150: note:
candidates are: void llvm::FoldingSetImpl::NodeID::AddInteger(int)
/home/afrisch/llvm/llvm/include/llvm/ADT/FoldingSet.h:151: note: void
llvm::FoldingSetImpl::NodeID::AddInteger(unsigned int)
/home/afrisch/llvm/llvm/include/llvm/ADT/FoldingSet.h:152: note: void
llvm::FoldingSetImpl::NodeID::AddInteger(uint64_t)
...
Before that, I get some warnings:
...
llvm[3]: Compiling PredicateSimplifier.cpp for Debug build
PredicateSimplifier.cpp: In member function `bool
<unnamed>::VRPSolver::below(llvm::Instruction*)':
PredicateSimplifier.cpp:1417: warning: control reaches end of non-void
function
PredicateSimplifier.cpp: In member function `bool
<unnamed>::DomTreeDFS::dominates(llvm::Instruction*, llvm::Instruction*)':
PredicateSimplifier.cpp:247: warning: control reaches end of non-void
function
...
llvm[3]: Linking Debug Loadable Module LLVMHello.dll
mklib: link: warning: undefined symbols not allowed in i686-pc-cygwin
shared libraries
Cheers,
Alain
More information about the llvm-dev
mailing list