<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Building Vulkan Radeon driver fails"
href="https://bugs.freedesktop.org/show_bug.cgi?id=104558">104558</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Building Vulkan Radeon driver fails
</td>
</tr>
<tr>
<th>Product</th>
<td>Mesa
</td>
</tr>
<tr>
<th>Version</th>
<td>17.3
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Drivers/Vulkan/Common
</td>
</tr>
<tr>
<th>Assignee</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>pmenzel+bugs.freedesktop@molgen.mpg.de
</td>
</tr>
<tr>
<th>CC</th>
<td>airlied@freedesktop.org, chadversary@chromium.org, daniel@fooishbar.org, jason@jlekstrand.net
</td>
</tr></table>
<p>
<div>
<pre>Configuring Mesa with the line below – only Radeon Vulkan driver selected – the
build fails.
```
/dev/shm/bee-root/mesalib/mesalib-17.3.1-0/source/autogen.sh --prefix=/usr
--bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/libexec
--sysconfdir=/etc --sharedstatedir=/var --localstatedir=/var --libdir=/usr/lib
--includedir=/usr/include --datarootdir=/usr/share --datadir=/usr/share
--infodir=/usr/share/info --localedir=/usr/share/locale --mandir=/usr/share/man
--docdir=/usr/share/doc/mesalib --exec-prefix=/usr --enable-texture-float
--enable-gles1 --enable-gles2 --enable-osmesa --enable-xa --enable-glx-tls
--with-platforms=drm,x11,wayland
--with-gallium-drivers=nouveau,r600,radeonsi,svga,swrast
--with-vulkan-drivers=radeon
[…]
checking if module mako in python is installed... No module named mako
no
[…]
```
```
make[4]: Entering directory
'/dev/shm/bee-root/mesalib/mesalib-17.3.1-0/build/src/amd/vulkan'
CXXLD libvulkan_radeon.la
../../../src/amd/common/.libs/libamd_common.a(common_libamd_common_la-ac_llvm_helper.o):
In function `ac_is_sgpr_param':
/dev/shm/bee-root/mesalib/mesalib-17.3.1-0/source/src/amd/common/ac_llvm_helper.cpp:61:
undefined reference to `llvm::Argument::getArgNo() const'
/dev/shm/bee-root/mesalib/mesalib-17.3.1-0/source/src/amd/common/ac_llvm_helper.cpp:62:
undefined reference to `llvm::AttributeSet::hasAttribute(unsigned int,
llvm::Attribute::AttrKind) const'
/dev/shm/bee-root/mesalib/mesalib-17.3.1-0/source/src/amd/common/ac_llvm_helper.cpp:63:
undefined reference to `llvm::AttributeSet::hasAttribute(unsigned int,
llvm::Attribute::AttrKind) const'
../../../src/amd/common/.libs/libamd_common.a(common_libamd_common_la-ac_llvm_helper.o):
In function `ac_llvm_is_function':
/dev/shm/bee-root/mesalib/mesalib-17.3.1-0/source/src/amd/common/ac_llvm_helper.cpp:78:
undefined reference to `LLVMGetValueKind'
../../../src/amd/common/.libs/libamd_common.a(common_libamd_common_la-ac_llvm_helper.o):
In function `ac_add_attr_dereferenceable':
/dev/shm/bee-root/mesalib/mesalib-17.3.1-0/source/src/amd/common/ac_llvm_helper.cpp:50:
undefined reference to `llvm::AttrBuilder::addDereferenceableAttr(unsigned
long)'
/dev/shm/bee-root/mesalib/mesalib-17.3.1-0/source/src/amd/common/ac_llvm_helper.cpp:51:
undefined reference to `llvm::Argument::getArgNo() const'
/dev/shm/bee-root/mesalib/mesalib-17.3.1-0/source/src/amd/common/ac_llvm_helper.cpp:51:
undefined reference to `llvm::Value::getContext() const'
/dev/shm/bee-root/mesalib/mesalib-17.3.1-0/source/src/amd/common/ac_llvm_helper.cpp:51:
undefined reference to `llvm::AttributeSet::get(llvm::LLVMContext&, unsigned
int, llvm::AttrBuilder const&)'
/dev/shm/bee-root/mesalib/mesalib-17.3.1-0/source/src/amd/common/ac_llvm_helper.cpp:51:
undefined reference to `llvm::Argument::addAttr(llvm::AttributeSet)'
../../../src/amd/common/.libs/libamd_common.a(common_libamd_common_la-ac_llvm_helper.o):
In function `ac_llvm_get_called_value':
/dev/shm/bee-root/mesalib/mesalib-17.3.1-0/source/src/amd/common/ac_llvm_helper.cpp:69:
undefined reference to `LLVMGetCalledValue'
./.libs/libvulkan_common.a(radv_device.o): In function
`disk_cache_get_function_timestamp':
/dev/shm/bee-root/mesalib/mesalib-17.3.1-0/source/src/util/disk_cache.h:89:
undefined reference to `LLVMInitializeAMDGPUTargetInfo'
./.libs/libvulkan_common.a(radv_shader.o): In function `shader_variant_create':
/dev/shm/bee-root/mesalib/mesalib-17.3.1-0/source/src/amd/vulkan/radv_shader.c:459:
undefined reference to `LLVMDisposeTargetMachine'
[…]
```
It could be related to missing Mako templates for Python [1].
[1] <a class="bz_bug_link
bz_status_NEW "
title="NEW - Check if Mako templates for Python are installed"
href="show_bug.cgi?id=104551">https://bugs.freedesktop.org/show_bug.cgi?id=104551</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>