Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 867250

Summary: media-video/obs-studio[wayland] fails to compile (lto): work/obs-studio-27.2.4/deps/glad/include/glad/glad_egl.h:306:12: error: type of ‘eglCreateWindowSurface’ does not match original declaration [-Werror=lto-type-mismatch]
Product: Gentoo Linux Reporter: Kostadin Shishmanov <kocelfc>
Component: Current packagesAssignee: Chiitoo <chiitoo>
Status: RESOLVED FIXED    
Severity: normal CC: gentoo, lg3dx6fd, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
See Also: https://github.com/obsproject/obs-studio/issues/8988
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 618550    
Attachments: buildlog
buildlog

Description Kostadin Shishmanov 2022-08-29 05:02:21 UTC
Created attachment 801736 [details]
buildlog

media-video/obs-studio-27.2.4 fails to compile with CFLAGS=-flto -Werror=lto-type-mismatch -Werror=odr -Werror-strict-aliasing
Comment 1 Chiitoo gentoo-dev 2023-05-06 11:04:16 UTC
Please test with 29.1.0 if possible, and if this is still on-going, I'll take a look into it.

Thanks!
Comment 2 Kostadin Shishmanov 2023-05-09 12:03:52 UTC
Created attachment 861387 [details]
buildlog

Still reproducible on 29.1.0
Comment 3 Chiitoo gentoo-dev 2023-05-29 19:04:24 UTC
Did not manage to re-produce yet with USE="-wayland".

Thanks again!
Comment 4 Arniii 2024-01-23 11:20:07 UTC
still reproducible with =media-video/obs-studio-30.0.2
Comment 5 Erik Quaeghebeur 2024-03-23 10:29:54 UTC
still reproducible with =media-video/obs-studio-30.1.0
Comment 6 Larry the Git Cow gentoo-dev 2024-04-04 19:44:00 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3557fa0afc8d1dd8af01f346aa73dd1ffc267e0a

commit 3557fa0afc8d1dd8af01f346aa73dd1ffc267e0a
Author:     Jimi Huotari <chiitoo@gentoo.org>
AuthorDate: 2024-04-01 21:24:39 +0000
Commit:     Jimi Huotari <chiitoo@gentoo.org>
CommitDate: 2024-04-04 19:42:52 +0000

    media-video/obs-studio: add version 30.1.1
    
    Add 'NATIVE_NVENC' (9999 only) CMake switch controlled via
    USE="nvenc", which was automagically enabled otherwise,
    leading into configure errors if ffmpeg was not built with
    nvenc support.
    
    Also add USE="X" on the 'media-libs/libglvnd' dependency.
    
    Also also use 'filter-lto' to filter LTO issues when USE="wayland"
    for the time being.
    
    Closes: https://bugs.gentoo.org/867250
    Closes: https://bugs.gentoo.org/923805
    Closes: https://bugs.gentoo.org/927964
    Signed-off-by: Jimi Huotari <chiitoo@gentoo.org>

 media-video/obs-studio/Manifest                 |   1 +
 media-video/obs-studio/obs-studio-30.1.1.ebuild | 269 ++++++++++++++++++++++++
 media-video/obs-studio/obs-studio-9999.ebuild   |   8 +-
 3 files changed, 277 insertions(+), 1 deletion(-)