[Mesa-dev] Mesa git and LLVM git (11) compilation trouble - LLVMFixedVectorTypeKind now undeclared

Dieter Nützel Dieter at nuetzel-hh.de
Tue May 19 02:19:03 UTC 2020


Hello Marek, Jan, Karol et al.,

I'm hunting a radeonsi (Polaris 20) Mesa git / LVVM 11 regression and 
current LLVM git code can't compile SPIRV-LLVM-Translator any longer and 
LLVM 11 without the former installed can't compile 
src/amd/llvm/ac_nir_to_llvm.c any more...

Have to switch my devel system all back to LLVM 10 to get a good 
starting point.

Dieter

mesa/build> time nice +19 ninja
[8/521] Compiling C object 
'src/amd/llvm/ce8261c@@amd_common_llvm at sta/ac_nir_to_llvm.c.o'
FAILED: src/amd/llvm/ce8261c@@amd_common_llvm at sta/ac_nir_to_llvm.c.o
ccache cc -Isrc/amd/llvm/ce8261c@@amd_common_llvm at sta -Isrc/amd/llvm 
-I../src/amd/llvm -Iinclude -I../include -Isrc -I../src -Isrc/mapi 
-I../src/mapi -Isrc/mesa -I../src/mesa -I../src/gallium/include 
-Isrc/gallium/auxiliary -I../src/gallium/auxiliary -Isrc/compiler 
-I../src/compiler -Isrc/amd -I../src/amd -Isrc/amd/common 
-I../src/amd/common -Isrc/compiler/nir -I../src/compiler/nir 
-I/usr/local/include -I/usr/include/libdrm -fdiagnostics-color=always 
-DNDEBUG -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c99 -O3 
'-DPACKAGE_VERSION="20.2.0-devel"' 
'-DPACKAGE_BUGREPORT="https://gitlab.freedesktop.org/mesa/mesa/issues"' 
-DUSE_ELF_TLS -DHAVE_ST_VDPAU -DENABLE_ST_OMX_BELLAGIO=0 
-DENABLE_ST_OMX_TIZONIA=0 -DHAVE_X11_PLATFORM -DGLX_INDIRECT_RENDERING 
-DGLX_DIRECT_RENDERING -DGLX_USE_DRM -DHAVE_DRM_PLATFORM 
-DENABLE_SHADER_CACHE -DHAVE___BUILTIN_BSWAP32 -DHAVE___BUILTIN_BSWAP64 
-DHAVE___BUILTIN_CLZ -DHAVE___BUILTIN_CLZLL -DHAVE___BUILTIN_CTZ 
-DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS -DHAVE___BUILTIN_FFSLL 
-DHAVE___BUILTIN_POPCOUNT -DHAVE___BUILTIN_POPCOUNTLL 
-DHAVE___BUILTIN_UNREACHABLE -DHAVE_FUNC_ATTRIBUTE_CONST 
-DHAVE_FUNC_ATTRIBUTE_FLATTEN -DHAVE_FUNC_ATTRIBUTE_MALLOC 
-DHAVE_FUNC_ATTRIBUTE_PURE -DHAVE_FUNC_ATTRIBUTE_UNUSED 
-DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT -DHAVE_FUNC_ATTRIBUTE_WEAK 
-DHAVE_FUNC_ATTRIBUTE_FORMAT -DHAVE_FUNC_ATTRIBUTE_PACKED 
-DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL -DHAVE_FUNC_ATTRIBUTE_VISIBILITY 
-DHAVE_FUNC_ATTRIBUTE_ALIAS -DHAVE_FUNC_ATTRIBUTE_NORETURN 
-DHAVE_UINT128 -DUSE_SSE41 -DUSE_GCC_ATOMIC_BUILTINS -DUSE_X86_64_ASM 
-DMAJOR_IN_SYSMACROS -DHAVE_SYS_SYSCTL_H -DHAVE_LINUX_FUTEX_H 
-DHAVE_ENDIAN_H -DHAVE_DLFCN_H -DHAVE_EXECINFO_H -DHAVE_SYS_SHM_H 
-DHAVE_CET_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_TIMESPEC_GET 
-DHAVE_MEMFD_CREATE -DHAVE_RANDOM_R -DHAVE_FLOCK -DHAVE_STRTOK_R 
-DHAVE_GETRANDOM -DHAVE_PROGRAM_INVOCATION_NAME -DHAVE_POSIX_MEMALIGN 
-DHAVE_DIRENT_D_TYPE -DHAVE_STRTOD_L -DHAVE_DLADDR 
-DHAVE_DL_ITERATE_PHDR -DHAVE_ZLIB -DHAVE_ZSTD -DHAVE_PTHREAD 
-DHAVE_PTHREAD_SETAFFINITY -DHAVE_LIBDRM -DLLVM_AVAILABLE 
'-DMESA_LLVM_VERSION_STRING="11.0.0"' -DUSE_LIBGLVND=1 -DHAVE_LIBUNWIND 
-DHAVE_DRI3 -DHAVE_DRI3_MODIFIERS -DHAVE_LIBSENSORS=1 
-Werror=implicit-function-declaration -Werror=missing-prototypes 
-Werror=return-type -Werror=empty-body 
-Werror=incompatible-pointer-types -Werror=int-conversion 
-Wno-missing-field-initializers -Wno-format-truncation -fno-math-errno 
-fno-trapping-math -fno-common -Werror=format -Wformat-security -fPIC 
-pthread -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS 
-D__STDC_FORMAT_MACROS -fvisibility=hidden -MD -MQ 
'src/amd/llvm/ce8261c@@amd_common_llvm at sta/ac_nir_to_llvm.c.o' -MF 
'src/amd/llvm/ce8261c@@amd_common_llvm at sta/ac_nir_to_llvm.c.o.d' -o 
'src/amd/llvm/ce8261c@@amd_common_llvm at sta/ac_nir_to_llvm.c.o' -c 
../src/amd/llvm/ac_nir_to_llvm.c
../src/amd/llvm/ac_nir_to_llvm.c: In function ‘load_tess_varyings’:
../src/amd/llvm/ac_nir_to_llvm.c:2197:36: error: 
‘LLVMFixedVectorTypeKind’ undeclared (first use in this function); did 
you mean ‘LLVMVectorTypeKind’?
  2197 |  if (LLVMGetTypeKind(dest_type) == LLVMFixedVectorTypeKind)
       |                                    ^~~~~~~~~~~~~~~~~~~~~~~
       |                                    LLVMVectorTypeKind
../src/amd/llvm/ac_nir_to_llvm.c:2197:36: note: each undeclared 
identifier is reported only once for each function it appears in
../src/amd/llvm/ac_nir_to_llvm.c: In function ‘visit_load_var’:
../src/amd/llvm/ac_nir_to_llvm.c:2357:40: error: 
‘LLVMFixedVectorTypeKind’ undeclared (first use in this function); did 
you mean ‘LLVMVectorTypeKind’?
  2357 |    if (LLVMGetTypeKind(result_type) == LLVMFixedVectorTypeKind)
       |                                        ^~~~~~~~~~~~~~~~~~~~~~~
       |                                        LLVMVectorTypeKind
../src/amd/llvm/ac_nir_to_llvm.c: In function ‘visit_store_var’:
../src/amd/llvm/ac_nir_to_llvm.c:2533:44: error: 
‘LLVMFixedVectorTypeKind’ undeclared (first use in this function); did 
you mean ‘LLVMVectorTypeKind’?
  2533 |    if (LLVMGetTypeKind(LLVMTypeOf(val)) == 
LLVMFixedVectorTypeKind)
       |                                            
^~~~~~~~~~~~~~~~~~~~~~~
       |                                            LLVMVectorTypeKind
../src/amd/llvm/ac_nir_to_llvm.c: In function ‘visit_deref’:
../src/amd/llvm/ac_nir_to_llvm.c:5025:47: error: 
‘LLVMFixedVectorTypeKind’ undeclared (first use in this function); did 
you mean ‘LLVMVectorTypeKind’?
  5025 |    if (LLVMGetTypeKind(LLVMTypeOf(result)) == 
LLVMFixedVectorTypeKind) {
       |                                               
^~~~~~~~~~~~~~~~~~~~~~~
       |                                               LLVMVectorTypeKind
[14/521] Compiling C object 
'src/amd/llvm/ce8261c@@amd_common_llvm at sta/ac_llvm_build.c.o'
FAILED: src/amd/llvm/ce8261c@@amd_common_llvm at sta/ac_llvm_build.c.o
ccache cc -Isrc/amd/llvm/ce8261c@@amd_common_llvm at sta -Isrc/amd/llvm 
-I../src/amd/llvm -Iinclude -I../include -Isrc -I../src -Isrc/mapi 
-I../src/mapi -Isrc/mesa -I../src/mesa -I../src/gallium/include 
-Isrc/gallium/auxiliary -I../src/gallium/auxiliary -Isrc/compiler 
-I../src/compiler -Isrc/amd -I../src/amd -Isrc/amd/common 
-I../src/amd/common -Isrc/compiler/nir -I../src/compiler/nir 
-I/usr/local/include -I/usr/include/libdrm -fdiagnostics-color=always 
-DNDEBUG -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=c99 -O3 
'-DPACKAGE_VERSION="20.2.0-devel"' 
'-DPACKAGE_BUGREPORT="https://gitlab.freedesktop.org/mesa/mesa/issues"' 
-DUSE_ELF_TLS -DHAVE_ST_VDPAU -DENABLE_ST_OMX_BELLAGIO=0 
-DENABLE_ST_OMX_TIZONIA=0 -DHAVE_X11_PLATFORM -DGLX_INDIRECT_RENDERING 
-DGLX_DIRECT_RENDERING -DGLX_USE_DRM -DHAVE_DRM_PLATFORM 
-DENABLE_SHADER_CACHE -DHAVE___BUILTIN_BSWAP32 -DHAVE___BUILTIN_BSWAP64 
-DHAVE___BUILTIN_CLZ -DHAVE___BUILTIN_CLZLL -DHAVE___BUILTIN_CTZ 
-DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS -DHAVE___BUILTIN_FFSLL 
-DHAVE___BUILTIN_POPCOUNT -DHAVE___BUILTIN_POPCOUNTLL 
-DHAVE___BUILTIN_UNREACHABLE -DHAVE_FUNC_ATTRIBUTE_CONST 
-DHAVE_FUNC_ATTRIBUTE_FLATTEN -DHAVE_FUNC_ATTRIBUTE_MALLOC 
-DHAVE_FUNC_ATTRIBUTE_PURE -DHAVE_FUNC_ATTRIBUTE_UNUSED 
-DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT -DHAVE_FUNC_ATTRIBUTE_WEAK 
-DHAVE_FUNC_ATTRIBUTE_FORMAT -DHAVE_FUNC_ATTRIBUTE_PACKED 
-DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL -DHAVE_FUNC_ATTRIBUTE_VISIBILITY 
-DHAVE_FUNC_ATTRIBUTE_ALIAS -DHAVE_FUNC_ATTRIBUTE_NORETURN 
-DHAVE_UINT128 -DUSE_SSE41 -DUSE_GCC_ATOMIC_BUILTINS -DUSE_X86_64_ASM 
-DMAJOR_IN_SYSMACROS -DHAVE_SYS_SYSCTL_H -DHAVE_LINUX_FUTEX_H 
-DHAVE_ENDIAN_H -DHAVE_DLFCN_H -DHAVE_EXECINFO_H -DHAVE_SYS_SHM_H 
-DHAVE_CET_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_TIMESPEC_GET 
-DHAVE_MEMFD_CREATE -DHAVE_RANDOM_R -DHAVE_FLOCK -DHAVE_STRTOK_R 
-DHAVE_GETRANDOM -DHAVE_PROGRAM_INVOCATION_NAME -DHAVE_POSIX_MEMALIGN 
-DHAVE_DIRENT_D_TYPE -DHAVE_STRTOD_L -DHAVE_DLADDR 
-DHAVE_DL_ITERATE_PHDR -DHAVE_ZLIB -DHAVE_ZSTD -DHAVE_PTHREAD 
-DHAVE_PTHREAD_SETAFFINITY -DHAVE_LIBDRM -DLLVM_AVAILABLE 
'-DMESA_LLVM_VERSION_STRING="11.0.0"' -DUSE_LIBGLVND=1 -DHAVE_LIBUNWIND 
-DHAVE_DRI3 -DHAVE_DRI3_MODIFIERS -DHAVE_LIBSENSORS=1 
-Werror=implicit-function-declaration -Werror=missing-prototypes 
-Werror=return-type -Werror=empty-body 
-Werror=incompatible-pointer-types -Werror=int-conversion 
-Wno-missing-field-initializers -Wno-format-truncation -fno-math-errno 
-fno-trapping-math -fno-common -Werror=format -Wformat-security -fPIC 
-pthread -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS 
-D__STDC_FORMAT_MACROS -fvisibility=hidden -MD -MQ 
'src/amd/llvm/ce8261c@@amd_common_llvm at sta/ac_llvm_build.c.o' -MF 
'src/amd/llvm/ce8261c@@amd_common_llvm at sta/ac_llvm_build.c.o.d' -o 
'src/amd/llvm/ce8261c@@amd_common_llvm at sta/ac_llvm_build.c.o' -c 
../src/amd/llvm/ac_llvm_build.c
../src/amd/llvm/ac_llvm_build.c: In function 
‘ac_get_llvm_num_components’:
../src/amd/llvm/ac_llvm_build.c:147:53: error: ‘LLVMFixedVectorTypeKind’ 
undeclared (first use in this function); did you mean 
‘LLVMVectorTypeKind’?
   147 |  unsigned num_components = LLVMGetTypeKind(type) == 
LLVMFixedVectorTypeKind
       |                                                     
^~~~~~~~~~~~~~~~~~~~~~~
       |                                                     
LLVMVectorTypeKind
../src/amd/llvm/ac_llvm_build.c:147:53: note: each undeclared identifier 
is reported only once for each function it appears in
../src/amd/llvm/ac_llvm_build.c: In function ‘ac_llvm_extract_elem’:
../src/amd/llvm/ac_llvm_build.c:158:44: error: ‘LLVMFixedVectorTypeKind’ 
undeclared (first use in this function); did you mean 
‘LLVMVectorTypeKind’?
   158 |  if (LLVMGetTypeKind(LLVMTypeOf(value)) != 
LLVMFixedVectorTypeKind) {
       |                                            
^~~~~~~~~~~~~~~~~~~~~~~
       |                                            LLVMVectorTypeKind
../src/amd/llvm/ac_llvm_build.c: In function ‘ac_get_elem_bits’:
../src/amd/llvm/ac_llvm_build.c:170:31: error: ‘LLVMFixedVectorTypeKind’ 
undeclared (first use in this function); did you mean 
‘LLVMVectorTypeKind’?
   170 |  if (LLVMGetTypeKind(type) == LLVMFixedVectorTypeKind)
       |                               ^~~~~~~~~~~~~~~~~~~~~~~
       |                               LLVMVectorTypeKind
../src/amd/llvm/ac_llvm_build.c: In function ‘ac_get_type_size’:
../src/amd/llvm/ac_llvm_build.c:209:7: error: ‘LLVMFixedVectorTypeKind’ 
undeclared (first use in this function); did you mean 
‘LLVMVectorTypeKind’?
   209 |  case LLVMFixedVectorTypeKind:
       |       ^~~~~~~~~~~~~~~~~~~~~~~
       |       LLVMVectorTypeKind
../src/amd/llvm/ac_llvm_build.c: In function ‘ac_to_integer_type’:
../src/amd/llvm/ac_llvm_build.c:238:28: error: ‘LLVMFixedVectorTypeKind’ 
undeclared (first use in this function); did you mean 
‘LLVMVectorTypeKind’?
   238 |  if (LLVMGetTypeKind(t) == LLVMFixedVectorTypeKind) {
       |                            ^~~~~~~~~~~~~~~~~~~~~~~
       |                            LLVMVectorTypeKind
../src/amd/llvm/ac_llvm_build.c: In function ‘ac_to_float_type’:
../src/amd/llvm/ac_llvm_build.c:293:28: error: ‘LLVMFixedVectorTypeKind’ 
undeclared (first use in this function); did you mean 
‘LLVMVectorTypeKind’?
   293 |  if (LLVMGetTypeKind(t) == LLVMFixedVectorTypeKind) {
       |                            ^~~~~~~~~~~~~~~~~~~~~~~
       |                            LLVMVectorTypeKind
../src/amd/llvm/ac_llvm_build.c: In function 
‘ac_build_type_name_for_intr’:
../src/amd/llvm/ac_llvm_build.c:355:31: error: ‘LLVMFixedVectorTypeKind’ 
undeclared (first use in this function); did you mean 
‘LLVMVectorTypeKind’?
   355 |  if (LLVMGetTypeKind(type) == LLVMFixedVectorTypeKind) {
       |                               ^~~~~~~~~~~~~~~~~~~~~~~
       |                               LLVMVectorTypeKind
../src/amd/llvm/ac_llvm_build.c: In function ‘ac_build_expand’:
../src/amd/llvm/ac_llvm_build.c:630:44: error: ‘LLVMFixedVectorTypeKind’ 
undeclared (first use in this function); did you mean 
‘LLVMVectorTypeKind’?
   630 |  if (LLVMGetTypeKind(LLVMTypeOf(value)) == 
LLVMFixedVectorTypeKind) {
       |                                            
^~~~~~~~~~~~~~~~~~~~~~~
       |                                            LLVMVectorTypeKind
[17/521] Compiling C object 
'src/amd/vulkan/9198681@@vulkan_radeon at sha/radv_meta_clear.c.o'
ninja: build stopped: subcommand failed.


More information about the mesa-dev mailing list