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

2020-05-19 Thread Dieter Nützel

Am 19.05.2020 09:32, schrieb Michel Dänzer:

On 2020-05-19 4:19 a.m., Dieter Nützel wrote:

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...


See https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5087 .


Your are my hero ;-) - Thanks!

Dieter
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev


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

2020-05-19 Thread Michel Dänzer
On 2020-05-19 4:19 a.m., Dieter Nützel wrote:
> 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...

See https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5087 .


-- 
Earthling Michel Dänzer   |   https://redhat.com
Libre software enthusiast | Mesa and X developer
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev


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

2020-05-18 Thread Dieter Nützel

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@sta/ac_nir_to_llvm.c.o'

FAILED: src/amd/llvm/ce8261c@@amd_common_llvm@sta/ac_nir_to_llvm.c.o
ccache cc -Isrc/amd/llvm/ce8261c@@amd_common_llvm@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@sta/ac_nir_to_llvm.c.o' -MF 
'src/amd/llvm/ce8261c@@amd_common_llvm@sta/ac_nir_to_llvm.c.o.d' -o 
'src/amd/llvm/ce8261c@@amd_common_llvm@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: