<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 - mesa-19.0.1 fails to compile with llvm-8.0.0 and Gallium swr driver"
href="https://bugs.freedesktop.org/show_bug.cgi?id=110323">110323</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>mesa-19.0.1 fails to compile with llvm-8.0.0 and Gallium swr driver
</td>
</tr>
<tr>
<th>Product</th>
<td>Mesa
</td>
</tr>
<tr>
<th>Version</th>
<td>19.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (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/Gallium/swr
</td>
</tr>
<tr>
<th>Assignee</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>john.frankish@outlook.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>compiling with:
CC="gcc -flto -fuse-linker-plugin -mtune=generic -Os -pipe -DUSE_DRICONF"
CXX="g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe -fno-exceptions
-DUSE_DRICONF" ./configure --prefix=/usr/local -disable-static
--localstatedir=/var --sysconfdir=/etc --enable-osmesa --enable-xa
--enable-glx-tls --with-platforms="drm,wayland,surfaceless,x11"
--with-gallium-drivers="i915,nouveau,r300,r600,radeonsi,svga,swrast,swr"
--with-vulkan-drivers="intel,radeon" --enable-autotools
make fails with the error below - it does not fail without the swr driver
requested.
libtool: compile: g++ -flto -fuse-linker-plugin -mtune=generic -Os -pipe
-fno-exceptions -fno-rtti -DUSE_DRICONF -DPACKAGE_NAME=\"Mesa\"
-DPACKAGE_TARNAME=\"mesa\" -DPACKAGE_VERSION=\"19.0.1\"
"-DPACKAGE_STRING=\"Mesa 19.0.1\""
"-DPACKAGE_BUGREPORT=\"<a href="https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa">https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa</a>\""
-DPACKAGE_URL=\"\" -DPACKAGE=\"mesa\" -DVERSION=\"19.0.1\" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DYYTEXT_POINTER=1
-DHAVE___BUILTIN_BSWAP32=1 -DHAVE___BUILTIN_BSWAP64=1 -DHAVE___BUILTIN_CLZ=1
-DHAVE___BUILTIN_CLZLL=1 -DHAVE___BUILTIN_CTZ=1 -DHAVE___BUILTIN_EXPECT=1
-DHAVE___BUILTIN_FFS=1 -DHAVE___BUILTIN_FFSLL=1 -DHAVE___BUILTIN_POPCOUNT=1
-DHAVE___BUILTIN_POPCOUNTLL=1 -DHAVE___BUILTIN_UNREACHABLE=1
-DHAVE_FUNC_ATTRIBUTE_CONST=1 -DHAVE_FUNC_ATTRIBUTE_FLATTEN=1
-DHAVE_FUNC_ATTRIBUTE_FORMAT=1 -DHAVE_FUNC_ATTRIBUTE_MALLOC=1
-DHAVE_FUNC_ATTRIBUTE_PACKED=1 -DHAVE_FUNC_ATTRIBUTE_PURE=1
-DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL=1 -DHAVE_FUNC_ATTRIBUTE_UNUSED=1
-DHAVE_FUNC_ATTRIBUTE_VISIBILITY=1 -DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT=1
-DHAVE_FUNC_ATTRIBUTE_WEAK=1 -DHAVE_FUNC_ATTRIBUTE_ALIAS=1
-DHAVE_FUNC_ATTRIBUTE_NORETURN=1 -DMAJOR_IN_SYSMACROS=1 -DHAVE_ENDIAN_H=1
-DHAVE_DLADDR=1 -DHAVE_CLOCK_GETTIME=1 -DHAVE_PTHREAD_PRIO_INHERIT=1
-DHAVE_PTHREAD=1 -DENABLE_ST_OMX_BELLAGIO=0 -DENABLE_ST_OMX_TIZONIA=0 -I. -mavx
-fno-strict-aliasing -I./include -I../../../../src -I../../../../include
-I../../../../src/gallium/include -I../../../../src/gallium/auxiliary
-I../../../../src/gallium/drivers -I../../../../src/gallium/winsys
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
-D_GNU_SOURCE -DUSE_SSE41 -DUSE_GCC_ATOMIC_BUILTINS -DNDEBUG -DUSE_X86_64_ASM
-DHAVE_SYS_SYSCTL_H -DHAVE_DLFCN_H -DHAVE_STRTOF -DHAVE_MKOSTEMP
-DHAVE_TIMESPEC_GET -DHAVE_MEMFD_CREATE -DHAVE_STRTOD_L -DHAVE_DL_ITERATE_PHDR
-DHAVE_POSIX_MEMALIGN -DHAVE_ZLIB -DHAVE_PTHREAD_SETAFFINITY
-DHAVE_LINUX_FUTEX_H -DHAVE_LIBDRM -DGLX_USE_DRM -DGLX_INDIRECT_RENDERING
-DGLX_DIRECT_RENDERING -DGLX_USE_TLS -DHAVE_DRM_PLATFORM
-DHAVE_WAYLAND_PLATFORM -DWL_HIDE_DEPRECATED -DHAVE_SURFACELESS_PLATFORM
-DHAVE_X11_PLATFORM -DHAVE_DRI3 -DHAVE_DRI3_MODIFIERS -DENABLE_SHADER_CACHE
-DHAVE_MINCORE -DHAVE_ST_VDPAU -DHAVE_LLVM=0x0800 -DMESA_LLVM_VERSION_PATCH=0
-fvisibility=hidden -I/usr/local/include -std=c++11 -D__STDC_CONSTANT_MACROS
-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I./rasterizer/codegen
-I./rasterizer/core -I./rasterizer/jitter -I./rasterizer/archrast
-I./rasterizer -I./rasterizer/core -I./rasterizer/codegen -I./rasterizer/jitter
-I./rasterizer/archrast -DHAVE_SWR_AVX -DHAVE_SWR_AVX2 -Wall -fno-math-errno
-fno-trapping-math -Wno-missing-field-initializers -Wno-format-truncation -MT
libmesaswr_la-swr_shader.lo -MD -MP -MF .deps/libmesaswr_la-swr_shader.Tpo -c
swr_shader.cpp -fPIC -DPIC -o .libs/libmesaswr_la-swr_shader.o
In file included from ./rasterizer/jitter/builder.h:157,
from swr_shader.cpp:35:
./rasterizer/jitter/gen_builder.hpp: In member function 'llvm::CallInst*
SwrJit::Builder::BINARY_INTRINSIC(llvm::Intrinsic::ID, llvm::Value*,
llvm::Value*, const llvm::Twine&)':
./rasterizer/jitter/gen_builder.hpp:231:59: error: no matching function for
call to 'llvm::IRBuilder<>::CreateBinaryIntrinsic(llvm::Intrinsic::ID&,
llvm::Value*&, llvm::Value*&, const llvm::Twine&)'
return IRB()->CreateBinaryIntrinsic(ID, LHS, RHS, Name);</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>