Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 859799 - media-gfx/renderdoc-1.20 fails to compile (lto): ShaderLang.h:181:8: error: type struct TInputLanguage violates the C++ One Definition Rule [-Werror=odr]
Summary: media-gfx/renderdoc-1.20 fails to compile (lto): ShaderLang.h:181:8: error: t...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthew Smith
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2022-07-21 14:52 UTC by Agostino Sarubbo
Modified: 2022-07-22 09:31 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,390.41 KB, text/plain)
2022-07-21 14:52 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-07-21 14:52:40 UTC
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
Comment 1 Agostino Sarubbo gentoo-dev 2022-07-21 14:52:43 UTC
Created attachment 792872 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-07-21 14:52:45 UTC
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]
Comment 3 Larry the Git Cow gentoo-dev 2022-07-22 09:31:03 UTC
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(-)