compilation failures

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

compilation failures

Stefan Seefeld-2
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...


_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev