New: Noveau fails to compile when using meson and LLVM without RTTI
https://bugs.freedesktop.org/show_bug.cgi?id=106391
Bug ID: 106391
Summary: Noveau fails to compile when using meson and LLVM
without RTTI
Product: Mesa
Version: unspecified
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/DRI/nouveau
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
When building mesa without RTTI support nouveau fails to compile because NDBUG isn't defined by meson. src/gallium/drivers/nouveau/codegen/nv50_ir.cpp has the following snippet in it:
#ifndef NDEBUG // non-conformant assert, so this is required
assert(typeid(*i) == typeid(*this));
#endif
which results in:
[1581/1667] x86_64-pc-linux-gnu-c++ -Isrc/gallium/drivers/nouveau/src@gallium@drivers@nouveau@@nouveau@sta -Isrc/gallium/drivers/nouveau -I../mesa-18.0.2/src/gallium/drivers/nouveau -Isrc -I../mesa-18.0.2/src -Iinclude -I../mesa-18.0.2/include -I../mesa-18.0.2/src/gallium/include -Isrc/gallium/auxiliary -I../mesa-18.0.2/src/gallium/auxiliary -I/usr/x86_64-pc-linux-gnu/include/libdrm -I/usr/x86_64-pc-linux-gnu/include/libdrm/nouveau -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++11 -O2 -g -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS '-DVERSION="18.0.2"' -DPACKAGE_VERSION=VERSION '-DPACKAGE_BUGREPORT="https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa"' -DTEXTURE_FLOAT_ENABLED -DGLX_USE_TLS -DHAVE_X11_PLATFORM -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_DRM -DHAVE_DRM_PLATFORM -DHAVE_SURFACELESS_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 -D_GNU_SOURCE -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_STRTOF -DHAVE_MKOSTEMP -DHAVE_POSIX_MEMALIGN -DHAVE_TIMESPEC_GET -DHAVE_MEMFD_CREATE -DHAVE_STRTOD_L -DHAVE_DLADDR -DHAVE_DL_ITERATE_PHDR -DHAVE_LIBDRM -DHAVE_ZLIB -DHAVE_PTHREAD -DHAVE_LLVM=0x0500 -DMESA_LLVM_VERSION_PATCH=1 -DHAVE_WAYLAND_PLATFORM -DWL_HIDE_DEPRECATED -DHAVE_DRI3 -Wall -fno-math-errno -fno-trapping-math -Wno-non-virtual-dtor -fno-rtti -march=native -O2 -march=native -O2 -fPIC -fvisibility=hidden -MD -MQ 'src/gallium/drivers/nouveau/src@gallium@drivers@nouveau@@nouveau@sta/codegen_nv50_ir.cpp.o' -MF 'src/gallium/drivers/nouveau/src@gallium@drivers@nouveau@@nouveau@sta/codegen_nv50_ir.cpp.o.d' -o 'src/gallium/drivers/nouveau/src@gallium@drivers@nouveau@@nouveau@sta/codegen_nv50_ir.cpp.o' -c ../mesa-18.0.2/src/gallium/drivers/nouveau/codegen/nv50_ir.cpp
FAILED:src/gallium/drivers/nouveau/src@gallium@drivers@nouveau@@nouveau@sta/codegen_nv50_ir.cpp.o x86_64-pc-linux-gnu-c++ -Isrc/gallium/drivers/nouveau/src@gallium@drivers@nouveau@@nouveau@sta -Isrc/gallium/drivers/nouveau -I../mesa-18.0.2/src/gallium/drivers/nouveau -Isrc -I../mesa-18.0.2/src -Iinclude -I../mesa-18.0.2/include -I../mesa-18.0.2/src/gallium/include -Isrc/gallium/auxiliary -I../mesa-18.0.2/src/gallium/auxiliary -I/usr/x86_64-pc-linux-gnu/include/libdrm -I/usr/x86_64-pc-linux-gnu/include/libdrm/nouveau -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++11 -O2 -g -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS '-DVERSION="18.0.2"' -DPACKAGE_VERSION=VERSION '-DPACKAGE_BUGREPORT="https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa"' -DTEXTURE_FLOAT_ENABLED -DGLX_USE_TLS -DHAVE_X11_PLATFORM -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_DRM -DHAVE_DRM_PLATFORM -DHAVE_SURFACELESS_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 -D_GNU_SOURCE -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_STRTOF -DHAVE_MKOSTEMP -DHAVE_POSIX_MEMALIGN -DHAVE_TIMESPEC_GET -DHAVE_MEMFD_CREATE -DHAVE_STRTOD_L -DHAVE_DLADDR -DHAVE_DL_ITERATE_PHDR -DHAVE_LIBDRM -DHAVE_ZLIB -DHAVE_PTHREAD -DHAVE_LLVM=0x0500 -DMESA_LLVM_VERSION_PATCH=1 -DHAVE_WAYLAND_PLATFORM -DWL_HIDE_DEPRECATED -DHAVE_DRI3 -Wall -fno-math-errno -fno-trapping-math -Wno-non-virtual-dtor -fno-rtti -march=native -O2 -march=native -O2 -fPIC -fvisibility=hidden -MD -MQ 'src/gallium/drivers/nouveau/src@gallium@drivers@nouveau@@nouveau@sta/codegen_nv50_ir.cpp.o' -MF 'src/gallium/drivers/nouveau/src@gallium@drivers@nouveau@@nouveau@sta/codegen_nv50_ir.cpp.o.d' -o 'src/gallium/drivers/nouveau/src@gallium@drivers@nouveau@@nouveau@sta/codegen_nv50_ir.cpp.o' -c ../mesa-18.0.2/src/gallium/drivers/nouveau/codegen/nv50_ir.cpp
In file included from ../mesa-18.0.2/src/util/bitscan.h:32:0,
from ../mesa-18.0.2/src/gallium/auxiliary/util/u_math.h:49,
from ../mesa-18.0.2/src/gallium/auxiliary/util/u_box.h:5,
from ../mesa-18.0.2/src/gallium/auxiliary/util/u_inlines.h:40,
from../mesa-18.0.2/src/gallium/drivers/nouveau/codegen/nv50_ir_util.h:36,
from../mesa-18.0.2/src/gallium/drivers/nouveau/codegen/nv50_ir.h:34,
from
../mesa-18.0.2/src/gallium/drivers/nouveau/codegen/nv50_ir.cpp:23:
../mesa-18.0.2/src/gallium/drivers/nouveau/codegen/nv50_ir.cpp: In member function 'virtual nv50_ir::Instruction* nv50_ir::Instruction::clone(nv50_ir::ClonePolicy<nv50_ir::Function>&, nv50_ir::Instruction*) const':
../mesa-18.0.2/src/gallium/drivers/nouveau/codegen/nv50_ir.cpp:740:19: error:
cannot use typeid with -fno-rtti
assert(typeid(*i) == typeid(*this));
^
../mesa-18.0.2/src/gallium/drivers/nouveau/codegen/nv50_ir.cpp:740:33: error:
cannot use typeid with -fno-rtti
assert(typeid(*i) == typeid(*this));
^Signature · 3 lines
You are receiving this mail because: You are the QA Contact for the bug. You are the assignee for the bug.
_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau
[Bug 106391] Noveau fails to compile when using meson and LLVM without RTTI
In reply to a message not in the archivehttps://bugs.freedesktop.org/show_bug.cgi?id=106391
Dylan Baker <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED--- Comment #1 from Dylan Baker <[email protected]> --- This should be fixed now, please re-open if it's not.
Signature · 3 lines
You are receiving this mail because: You are the assignee for the bug. You are the QA Contact for the bug.
_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau