[Mesa-dev] [Bug 110323] mesa-19.0.1 fails to compile with llvm-8.0.0 and Gallium swr driver

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Apr 4 12:37:14 UTC 2019


https://bugs.freedesktop.org/show_bug.cgi?id=110323

            Bug ID: 110323
           Summary: mesa-19.0.1 fails to compile with llvm-8.0.0 and
                    Gallium swr driver
           Product: Mesa
           Version: 19.0
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Drivers/Gallium/swr
          Assignee: mesa-dev at lists.freedesktop.org
          Reporter: john.frankish at outlook.com
        QA Contact: mesa-dev at lists.freedesktop.org

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=\"https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa\""
-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);

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20190404/093dafac/attachment.html>


More information about the mesa-dev mailing list