Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 879149 - media-libs/shaderc-2022.2-r1 doesn't compile with glslang-1.3.231 (error: cannot convert ‘<brace-enclosed initializer list>’ to ‘int’)
Summary: media-libs/shaderc-2022.2-r1 doesn't compile with glslang-1.3.231 (error: can...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Nick Sarnie
URL: https://github.com/google/shaderc/iss...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-02 10:06 UTC by Marius Stoica
Modified: 2022-11-09 00:08 UTC (History)
4 users (show)

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


Attachments
build log (build.log,17.34 KB, text/x-log)
2022-11-02 10:06 UTC, Marius Stoica
Details
emerge --info (shaderc.info,6.92 KB, text/plain)
2022-11-02 10:07 UTC, Marius Stoica
Details
environment (environment,140.08 KB, text/plain)
2022-11-02 10:08 UTC, Marius Stoica
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marius Stoica 2022-11-02 10:06:47 UTC
Created attachment 826669 [details]
build log

When setting the vulcan use flag and installing new dependencies for media-video/mpv, media-libs/shaderc fails to compile.

So far I've tried:

Compiling with gcc 10 and gcc 11 when gcc 12 failed.

Emerging media-libs/shaderc-2022.2 instead of media-libs/shaderc-2022.2-r1

recompiling dev-util/glslang, according to bug #840773

Unsetting the abi_x86_32 use flag.


The error is always the same as it appears in the build log:

> * ERROR: media-libs/shaderc-2022.2::gentoo failed (compile phase):
> *   ninja -v -j9 -l0 failed
> * 
> * Call stack:
> *     ebuild.sh, line  122:  Called src_compile
> *   environment, line 3557:  Called cmake-multilib_src_compile
> *   environment, line 1329:  Called multilib-minimal_src_compile
> *   environment, line 2474:  Called multilib_foreach_abi 'multilib-minimal_abi_src_compile'
> *   environment, line 2741:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
> *   environment, line 2434:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
> *   environment, line 2432:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_compile'
> *   environment, line  571:  Called multilib-minimal_abi_src_compile
> *   environment, line 2468:  Called multilib_src_compile
> *   environment, line 2964:  Called cmake_src_compile
> *   environment, line 1440:  Called cmake_build
> *   environment, line 1409:  Called eninja
> *   environment, line 1860:  Called die
> * The specific snippet of code:
> *       "$@" || die "${nonfatal_args[@]}" "${*} failed"
Comment 1 Marius Stoica 2022-11-02 10:07:42 UTC
Created attachment 826671 [details]
emerge --info
Comment 2 Marius Stoica 2022-11-02 10:08:55 UTC
Created attachment 826673 [details]
environment
Comment 3 Ionen Wolkens gentoo-dev 2022-11-02 10:31:39 UTC
Sets TBuiltInResource which changed and also broke ABI in the process, see [1]. Believe [2] is trying to improve the situation for upstreams but meanwhile may need to downgrade to stable ~glslang-1.3.224

[1] https://github.com/KhronosGroup/glslang/issues/3052
[2] https://github.com/KhronosGroup/glslang/pull/3055
Comment 4 Larry the Git Cow gentoo-dev 2022-11-02 10:48:23 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65175c86ff867496f27b5cbdaa5cc9db94def416

commit 65175c86ff867496f27b5cbdaa5cc9db94def416
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2022-11-02 10:43:19 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2022-11-02 10:47:01 +0000

    profiles: mask =dev-util/glslang-1.3.231
    
    Hopefully only masking this (rather than whole 1.3.231 stack)
    is okay. Preemptively masking myself given the ABI breakage
    will worsen the situation if left alone too long.
    
    Bug: https://bugs.gentoo.org/879149
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 profiles/package.mask | 10 ++++++++++
 1 file changed, 10 insertions(+)
Comment 5 Larry the Git Cow gentoo-dev 2022-11-02 11:02:06 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d0b812a8e68cf5f2d2d91ce4d59a768ee4c7540

commit 6d0b812a8e68cf5f2d2d91ce4d59a768ee4c7540
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2022-11-02 10:59:48 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2022-11-02 11:01:54 +0000

    profiles: extend glslang mask to whole stack
    
    Noticed the =glslang-${PV} deps so I don't see this working out.
    Hoipefully not forgetting anything.
    
    Bug: https://bugs.gentoo.org/879149
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 profiles/package.mask | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
Comment 6 Ionen Wolkens gentoo-dev 2022-11-02 11:58:29 UTC
wrt https://github.com/google/shaderc/issues/1274, sounds fixed in 2022.3

Albeit unsure what to think about the ABI breakage which is primary reason I did the mask (e.g. waifu2x-ncnn-vulkan is broken until ncnn is rebuilt, mpv[vulkan] is broken probably until libplacebo is rebuilt, albeit libplacebo fails to build with this version right now due to missing libOSDependent.a and others). Downgrade itself is messy given won't get automated rebuilds.

Maybe will need a subslot on glslang.
Comment 7 Nick Sarnie gentoo-dev 2022-11-09 00:08:07 UTC
Fixed wtih d24ca1e26b11e466ebf87e92e60b0953c4a7e74a