[LLVMdev] Compile error of latest Dragonegg on Ubuntu with GCC 4.5

ryan stdstack at gmail.com
Fri Jun 22 10:57:51 PDT 2012


Yest. thanks. I just resolved this error by installing MPFR, MPC and GMP(by
the way, these are not listed
as prerequisites in the website.). But other errors come:

/home/xxx/llvm/tools/dragonegg/src/TypeConversion.cpp: In function
> ‘llvm::FunctionType* ConvertArgListToFnType(tree_node*,
> llvm::ArrayRef<tree_node*>, tree_node*, bool, llvm::CallingConv::ID&,
> llvm::AttrListPtr&)’:
> /home/xxx/llvm/tools/dragonegg/src/TypeConversion.cpp:731:31: error: no
> matching function for call to
> ‘llvm::AttrListPtr::get(llvm::SmallVector<llvm::AttributeWithIndex, 8u>&)’
> /home/xxx/llvm/include/llvm/Attributes.h:272:22: note: candidate is:
> static llvm::AttrListPtr llvm::AttrListPtr::get(const
> llvm::AttributeWithIndex*, unsigned int)
> /home/xxx/llvm/tools/dragonegg/src/TypeConversion.cpp: In function
> ‘llvm::FunctionType* ConvertFunctionType(tree_node*, tree_node*,
> tree_node*, llvm::CallingConv::ID&, llvm::AttrListPtr&)’:
> /home/xxx/llvm/tools/dragonegg/src/TypeConversion.cpp:906:31: error: no
> matching function for call to
> ‘llvm::AttrListPtr::get(llvm::SmallVector<llvm::AttributeWithIndex, 8u>&)’
> /home/xxx/llvm/include/llvm/Attributes.h:272:22: note: candidate is:
> static llvm::AttrListPtr llvm::AttrListPtr::get(const
> llvm::AttributeWithIndex*, unsigned int)
> make: *** [TypeConversion.o] Error 1


Seems it cannot find the implementation of  llvm::AttrListPtr::get.
the layout of my configuration is:
|-- llvm (SRC_DIR)
|   |--tools
|   |    |--dragonegg
|   |    |
|   |
|-- llvm-build (OBJ_DIR)

Thanks very much,
Ryan
On Fri, Jun 22, 2012 at 1:00 AM, Anton Korobeynikov <anton at korobeynikov.info
> wrote:

> >>
> /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5.2/plugin/include/real.h:27:18:
> >> fatal error: mpfr.h: No such file or directory
> >
> > I did some search but found few relevant results.
> > Any idea what's going on?
> Do you have MPFR installed?
>
> --
> With best regards, Anton Korobeynikov
> Faculty of Mathematics and Mechanics, Saint Petersburg State University
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120622/74b46c54/attachment.html>


More information about the llvm-dev mailing list