Re: [Mesa-dev] [r600/sfn] Compilation error (and some warnings) - maybe to old LLVM git version, here?

2020-11-28 Thread Gert Wollny
Am Samstag, den 28.11.2020, 02:46 +0100 schrieb Dieter Nützel:
> [48/179] Compiling C++ object 
> src/gallium/drivers/r600/libr600.a.p/sfn_sfn_shader_fragment.cpp.o
> FAILED: 
> src/gallium/drivers/r600/libr600.a.p/sfn_sfn_shader_fragment.cpp.o
> ccache c++ -Isrc/gallium/drivers/r600/libr600.a.p 
> -Isrc/gallium/drivers/r600 -I../src/gallium/drivers/r600 -Isrc
> -I../src 
> -Isrc/mapi -I../src/mapi -Isrc/mesa -I../src/mesa -Iinclude
> -I../include 
> -Isrc/compiler -I../src/compiler -I../src/gallium/include 
> -Isrc/gallium/auxiliary -I../src/gallium/auxiliary -Isrc/amd/common 
> -I../src/amd/common -Isrc/gallium/drivers -I../src/gallium/drivers 
> -Isrc/compiler/nir -I../src/compiler/nir -Isrc/util -I../src/util 
> -I/usr/include/libdrm -fvisibility=hidden -fdiagnostics-color=always 
> -DNDEBUG -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch 
> -Wnon-virtual-dtor -std=c++14 -O3 -ffunction-sections -fdata-
> sections 
> '-DPACKAGE_VERSION="21.0.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 -DHAVE_XCB_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_ALIAS -DHAVE_FUNC_ATTRIBUTE_NORETURN 
> -DHAVE_FUNC_ATTRIBUTE_VISIBILITY -DHAVE_UINT128 -DUSE_SSE41 
> -DUSE_GCC_ATOMIC_BUILTINS -DUSE_X86_64_ASM -DMAJOR_IN_SYSMACROS 
> -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="12.0.0"' -DLLVM_IS_SHARED=1 
> -DUSE_LIBGLVND=1 -DHAVE_LIBUNWIND -DHAVE_DRI3 -DHAVE_DRI3_MODIFIERS 
> -DHAVE_LIBSENSORS=1 -Werror=return-type -Werror=empty-body 
> -Wno-non-virtual-dtor -Wno-missing-field-initializers 
> -Wno-format-truncation -fno-math-errno -fno-trapping-math 
> -flifetime-dse=1 -Werror=format -Wformat-security -fPIC -pthread 
> -D__STDC_FORMAT_MACROS -D_GNU_SOURCE -D__STDC_LIMIT_MACROS 
> -D__STDC_CONSTANT_MACROS -MD -MQ 
> src/gallium/drivers/r600/libr600.a.p/sfn_sfn_shader_fragment.cpp.o
> -MF 
> src/gallium/drivers/r600/libr600.a.p/sfn_sfn_shader_fragment.cpp.o.d
> -o 
> src/gallium/drivers/r600/libr600.a.p/sfn_sfn_shader_fragment.cpp.o
> -c 
> ../src/gallium/drivers/r600/sfn/sfn_shader_fragment.cpp
> ../src/gallium/drivers/r600/sfn/sfn_shader_fragment.cpp: In function 
> ‘unsigned int r600::barycentric_ij_index(nir_intrinsic_instr*)’:
> ../src/gallium/drivers/r600/sfn/sfn_shader_fragment.cpp:102:4:
> error: 
> control reaches end of non-void function [-Werror=return-type]
>102 |case INTERP_MODE_FLAT:
>|^~~~
There is an "assert" there that should be an "unreachable", patch
coming up.  

Thanks for testing. 
Gert 


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


[Mesa-dev] [r600/sfn] Compilation error (and some warnings) - maybe to old LLVM git version, here?

2020-11-27 Thread Dieter Nützel
[48/179] Compiling C++ object 
src/gallium/drivers/r600/libr600.a.p/sfn_sfn_shader_fragment.cpp.o
FAILED: 
src/gallium/drivers/r600/libr600.a.p/sfn_sfn_shader_fragment.cpp.o
ccache c++ -Isrc/gallium/drivers/r600/libr600.a.p 
-Isrc/gallium/drivers/r600 -I../src/gallium/drivers/r600 -Isrc -I../src 
-Isrc/mapi -I../src/mapi -Isrc/mesa -I../src/mesa -Iinclude -I../include 
-Isrc/compiler -I../src/compiler -I../src/gallium/include 
-Isrc/gallium/auxiliary -I../src/gallium/auxiliary -Isrc/amd/common 
-I../src/amd/common -Isrc/gallium/drivers -I../src/gallium/drivers 
-Isrc/compiler/nir -I../src/compiler/nir -Isrc/util -I../src/util 
-I/usr/include/libdrm -fvisibility=hidden -fdiagnostics-color=always 
-DNDEBUG -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch 
-Wnon-virtual-dtor -std=c++14 -O3 -ffunction-sections -fdata-sections 
'-DPACKAGE_VERSION="21.0.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 -DHAVE_XCB_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_ALIAS -DHAVE_FUNC_ATTRIBUTE_NORETURN 
-DHAVE_FUNC_ATTRIBUTE_VISIBILITY -DHAVE_UINT128 -DUSE_SSE41 
-DUSE_GCC_ATOMIC_BUILTINS -DUSE_X86_64_ASM -DMAJOR_IN_SYSMACROS 
-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="12.0.0"' -DLLVM_IS_SHARED=1 
-DUSE_LIBGLVND=1 -DHAVE_LIBUNWIND -DHAVE_DRI3 -DHAVE_DRI3_MODIFIERS 
-DHAVE_LIBSENSORS=1 -Werror=return-type -Werror=empty-body 
-Wno-non-virtual-dtor -Wno-missing-field-initializers 
-Wno-format-truncation -fno-math-errno -fno-trapping-math 
-flifetime-dse=1 -Werror=format -Wformat-security -fPIC -pthread 
-D__STDC_FORMAT_MACROS -D_GNU_SOURCE -D__STDC_LIMIT_MACROS 
-D__STDC_CONSTANT_MACROS -MD -MQ 
src/gallium/drivers/r600/libr600.a.p/sfn_sfn_shader_fragment.cpp.o -MF 
src/gallium/drivers/r600/libr600.a.p/sfn_sfn_shader_fragment.cpp.o.d -o 
src/gallium/drivers/r600/libr600.a.p/sfn_sfn_shader_fragment.cpp.o -c 
../src/gallium/drivers/r600/sfn/sfn_shader_fragment.cpp
../src/gallium/drivers/r600/sfn/sfn_shader_fragment.cpp: In function 
‘unsigned int r600::barycentric_ij_index(nir_intrinsic_instr*)’:
../src/gallium/drivers/r600/sfn/sfn_shader_fragment.cpp:102:4: error: 
control reaches end of non-void function [-Werror=return-type]

  102 |case INTERP_MODE_FLAT:
  |^~~~
cc1plus: some warnings being treated as errors
[56/179] Compiling C++ object 
src/gallium/frontends/clover/libclllvm.a.p/llvm_codegen_common.cpp.o
In file included from 
../src/gallium/frontends/clover/llvm/codegen/common.cpp:34:
../src/gallium/frontends/clover/llvm/metadata.hpp: In function 
‘std::string clover::llvm::get_type_kernel_metadata(const 
llvm::Function&, const string&)’:
../src/gallium/frontends/clover/llvm/metadata.hpp:132:86: warning: 
‘unsigned int llvm::VectorType::getNumElements() const’ is deprecated 
[-Wdeprecated-declarations]
  132 |   data += 
std::to_string(((::llvm::VectorType*)type)->getNumElements());
  |  
^

In file included from /usr/local/include/llvm/IR/DataLayout.h:26,
 from /usr/local/include/llvm/IR/Module.h:25,
 from 
../src/gallium/frontends/clover/llvm/codegen.hpp:35,
 from 
../src/gallium/frontends/clover/llvm/codegen/common.cpp:33:

/usr/local/include/llvm/IR/DerivedTypes.h:534:10: note: declared here
  534 | unsigned VectorType::getNumElements() const {
  |  ^~
[57/179] Compiling C++ object 
src/gallium/frontends/clover/libclllvm.a.p/llvm_invocation.cpp.o
In file included from 
../src/gallium/frontends/clover/llvm/invocation.cpp:55:
../src/gallium/frontends/clover/llvm/metadata.hpp: In function 
‘std::string clover::llvm::get_type_kernel_metadata(const 
llvm::Function&, const string&)’: