[Mesa-dev] LLVM build issue on r299777
Juan A. Suarez Romero
jasuarez at igalia.com
Thu Aug 3 17:54:32 UTC 2017
On Fri, 2017-04-28 at 14:15 +0200, Nicolai Hähnle wrote:
> On 28.04.2017 13:08, Eric Engestrom wrote:
> > Hi,
> >
> > I'm currently running llvm r299777 but I have no idea when this was
> > changed.
>
> Yeah, you'll just have to upgrade LLVM (or downgrade to LLVM 4.0).
> This
> sort of thing unfortunately happens occasionally when running LLVM
> trunk
> and Mesa master. I currently have r301197 here, and I'm not aware of
> any
> brokenness.
>
I hit this same error when building using LLVM 5.0.
CXX common/common_libamd_common_la-ac_llvm_helper.lo
common/ac_llvm_helper.cpp: In function 'void
ac_add_attr_dereferenceable(LLVMValueRef, uint64_t)':
common/ac_llvm_helper.cpp:49:78: error: no matching function for call
to 'llvm::Argument::addAttr(llvm::AttributeList)'
A->addAttr(llvm::AttributeList::get(A->getContext(), A->getArgNo()
+ 1, B));
^
In file included from /usr/lib/llvm-
5.0/include/llvm/IR/Function.h:26:0,
from /usr/lib/llvm-5.0/include/llvm/IR/Module.h:26,
from /usr/lib/llvm-
5.0/include/llvm/ExecutionEngine/ExecutionEngine.h:26,
from common/ac_llvm_helper.cpp:35:
/usr/lib/llvm-5.0/include/llvm/IR/Argument.h:112:8: note: candidate:
void llvm::Argument::addAttr(llvm::Attribute::AttrKind)
void addAttr(Attribute::AttrKind Kind);
^
/usr/lib/llvm-5.0/include/llvm/IR/Argument.h:112:8: note: no known
conversion for argument 1 from 'llvm::AttributeList' to
'llvm::Attribute::AttrKind'
/usr/lib/llvm-5.0/include/llvm/IR/Argument.h:114:8: note: candidate:
void llvm::Argument::addAttr(llvm::Attribute)
void addAttr(Attribute Attr);
^
/usr/lib/llvm-5.0/include/llvm/IR/Argument.h:114:8: note: no known
conversion for argument 1 from 'llvm::AttributeList' to
'llvm::Attribute'
Makefile:1054: recipe for target 'common/common_libamd_common_la-
ac_llvm_helper.lo' failed
make[4]: *** [common/common_libamd_common_la-ac_llvm_helper.lo] Error 1
J.A.
>
> Cheers,
> Nicolai
>
>
> >
> > make[4]: Entering directory '/var/tmp/mesa-git/src/mesa/src/amd'
> > CXX common/common_libamd_common_la-ac_llvm_helper.lo
> > common/ac_llvm_helper.cpp: In function ‘void
> > ac_add_attr_dereferenceable(LLVMValueRef, uint64_t)’:
> > common/ac_llvm_helper.cpp:53:83: error: no matching function for
> > call to ‘llvm::Argument::addAttr(llvm::Attribute)’
> > A->addAttr(llvm::Attribute::getWithDereferenceableBytes(A-
> > >getContext(), bytes));
> >
> > ^
> > In file included from /usr/include/llvm/IR/Function.h:25:0,
> > from /usr/include/llvm/IR/Module.h:21,
> > from
> > /usr/include/llvm/ExecutionEngine/ExecutionEngine.h:22,
> > from common/ac_llvm_helper.cpp:35:
> > /usr/include/llvm/IR/Argument.h:111:8: note: candidate: void
> > llvm::Argument::addAttr(llvm::AttributeList)
> > void addAttr(AttributeList AS);
> > ^~~~~~~
> > /usr/include/llvm/IR/Argument.h:111:8: note: no known conversion
> > for argument 1 from ‘llvm::Attribute’ to ‘llvm::AttributeList’
> > /usr/include/llvm/IR/Argument.h:113:8: note: candidate: void
> > llvm::Argument::addAttr(llvm::Attribute::AttrKind)
> > void addAttr(Attribute::AttrKind Kind) {
> > ^~~~~~~
> > /usr/include/llvm/IR/Argument.h:113:8: note: no known conversion
> > for argument 1 from ‘llvm::Attribute’ to
> > ‘llvm::Attribute::AttrKind’
> > make[4]: *** [Makefile:1065: common/common_libamd_common_la-
> > ac_llvm_helper.lo] Error 1
> >
> > Cc'ing Marek and Nicolai as I've seen you fixing LLVM version
> > issues in
> > the past :)
> >
> > Cheers,
> > Eric
> >
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list