[cfe-dev] compilation failures
Stefan Seefeld
seefeld at sympatico.ca
Tue Mar 9 14:25:26 PST 2010
I'm trying to compile clang with GCC 4.4.1 (Fedora 11 system compiler),
and I get compilation failures.
Some appear to be resolved with the attached patch, but this one I have
no idea to fix:
/home/stefan/projects/llvm/include/llvm/Support/GraphWriter.h:92: error:
no matching function for call to ‘llvm::DOTGraphTraits<const
clang::Stmt*>::DOTGraphTraits(bool&)’
StmtViz.cpp:32: note: candidates are: llvm::DOTGraphTraits<const
clang::Stmt*>::DOTGraphTraits(const llvm::DOTGraphTraits<const
clang::Stmt*>&)
StmtViz.cpp:32: note: llvm::DOTGraphTraits<const
clang::Stmt*>::DOTGraphTraits()
...
/home/stefan/projects/llvm/include/llvm/Support/GraphWriter.h:144:
error: no matching function for call to ‘llvm::DOTGraphTraits<const
clang::Stmt*>::getNodeLabel(const clang::Stmt*&, const clang::Stmt* const&)’
StmtViz.cpp:33: note: candidates are: static std::string
llvm::DOTGraphTraits<const clang::Stmt*>::getNodeLabel(const
clang::Stmt*, const clang::Stmt*, bool)
...
/home/stefan/projects/llvm/include/llvm/Support/GraphWriter.h:164:
error: no matching function for call to ‘llvm::DOTGraphTraits<const
clang::Stmt*>::getNodeLabel(const clang::Stmt*&, const clang::Stmt* const&)’
StmtViz.cpp:33: note: candidates are: static std::string
llvm::DOTGraphTraits<const clang::Stmt*>::getNodeLabel(const
clang::Stmt*, const clang::Stmt*, bool)
Is trunk in the middle of an API change ?
I'm also seeing compilation failures in llvm proper, which I'm working
around with "make -C tools/clang".
I get
llvm[2]: Compiling AsmMatcherEmitter.cpp for Debug build
In file included from AsmMatcherEmitter.cpp:78:
Record.h: In constructor ‘llvm::VarBitInit::VarBitInit(llvm::TypedInit*,
unsigned int)’:
Record.h:973: error: ‘dynamic_cast’ not permitted with -fno-rtti
How I can instruct the build system to print out the compiler command
line ? And why does it want to compile with -fno-rtti, when the code
actually requires it ?
Thanks,
Stefan
--
...ich hab' noch einen Koffer in Berlin...
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100309/1b09c872/attachment.ksh>
More information about the cfe-dev
mailing list