https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: media-gfx/renderdoc-1.20 fails to compile (lto). Discovered on: amd64 (internal ref: lto_tinderbox) NOTE: This machine uses lto with CFLAGS=-flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing
Created attachment 792872 [details] build.log build log and emerge --info
Error(s) that match a know pattern in addition to what has been reported in the summary: FAILED: lib/librenderdoc.so /var/tmp/portage/media-gfx/renderdoc-1.20/work/renderdoc-1.20/renderdoc/3rdparty/glslang/glslang/Public/ShaderLang.h:181:8: error: type ‘struct TInputLanguage’ violates the C++ One Definition Rule [-Werror=odr]
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3285fc55eac9e699b5fc4b50d0171d9745ca85b6 commit 3285fc55eac9e699b5fc4b50d0171d9745ca85b6 Author: Matthew Smith <matthew@gentoo.org> AuthorDate: 2022-07-22 09:28:43 +0000 Commit: Matthew Smith <matthew@gentoo.org> CommitDate: 2022-07-22 09:28:43 +0000 media-gfx/renderdoc: filter lto Also: * rebase the system-glslang patch as one header from the vendored copy of glslang was used, causing issues due to the differing versions. * delete the vendored glslang directory in src_prepare to remove the possibility of the above happening again. Closes: https://bugs.gentoo.org/859799 Signed-off-by: Matthew Smith <matthew@gentoo.org> .../files/renderdoc-1.20-system-glslang.patch | 197 +++++++++++++++++++++ ...derdoc-1.20.ebuild => renderdoc-1.20-r1.ebuild} | 11 +- 2 files changed, 206 insertions(+), 2 deletions(-)