Bug 61992

Summary: LLVM Build fail
Product: Mesa Reporter: Andy Furniss <adf.lists>
Component: OtherAssignee: mesa-dev
Status: RESOLVED NOTABUG QA Contact:
Severity: normal    
Priority: medium    
Version: git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

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

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.