Bug 61992 - LLVM Build fail
LLVM Build fail
Status: RESOLVED NOTABUG
Product: Mesa
Classification: Unclassified
Component: Other
git
x86-64 (AMD64) Linux (All)
: medium normal
Assigned To: mesa-dev
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-03-07 23:35 UTC by Andy Furniss
Modified: 2013-03-08 00:44 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andy Furniss 2013-03-07 23:35:21 UTC
./autogen.sh --prefix=/usr --disable-egl --enable-texture-float --enable-gallium-g3dvl --enable-r600-llvm-compiler --with-gallium-drivers=r600,swrast --with-dri-drivers=

up to data tstellar/llvm.


make[4]: Entering directory `/mnt/sdb1/Src64/Mesa-git/mesa/src/gallium/drivers/radeon'
  CXX      radeon_llvm_emit.lo
radeon_llvm_emit.cpp: In function 'void radeon_llvm_shader_type(LLVMValueRef, unsigned int)':
radeon_llvm_emit.cpp:82:13: error: 'AttributeSet' has not been declared
radeon_llvm_emit.cpp:87:35: error: no matching function for call to 'llvm::AttrBuilder::addAttribute(const char [11], char [2])'
radeon_llvm_emit.cpp:87:35: note: candidate is:
/usr/include/llvm/Attributes.h:207:16: note: llvm::AttrBuilder& llvm::AttrBuilder::addAttribute(llvm::Attributes::AttrVal)
/usr/include/llvm/Attributes.h:207:16: note:   candidate expects 1 argument, 2 provided
radeon_llvm_emit.cpp:89:3: error: 'AttributeSet' was not declared in this scope
radeon_llvm_emit.cpp:89:16: error: expected ';' before 'Set'
radeon_llvm_emit.cpp:90:9: error: 'class llvm::Function' has no member named 'addAttributes'
radeon_llvm_emit.cpp:90:28: error: 'Set' was not declared in this scope
make[4]: *** [radeon_llvm_emit.lo] Error 1
Comment 1 Tom Stellard 2013-03-08 00:06:23 UTC
The Mesa master branch requires the latest version of LLVM from the upstream repository.  Can you try with that?
Comment 2 Andy Furniss 2013-03-08 00:28:33 UTC
It builds OK with svn llvm.
Comment 3 Andy Furniss 2013-03-08 00:44:22 UTC
I see the configure message is still saying -

configure: WARNING: Please ensure you use the latest llvm tree from git://people.freedesktop.org/~tstellar/llvm master before submitting a bug