[Mesa-dev] LLVM build issue on r299777

Nicolai Hähnle nicolai.haehnle at amd.com
Fri Apr 28 12:15:41 UTC 2017


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.

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
>



More information about the mesa-dev mailing list