Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 884379 - media-libs/shaderc fails to build after media-libs/glslang-1.3.231-r2 update
Summary: media-libs/shaderc fails to build after media-libs/glslang-1.3.231-r2 update
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on: 884381
Blocks:
  Show dependency tree
 
Reported: 2022-12-04 22:05 UTC by Hadrien Lacour
Modified: 2022-12-04 22:32 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hadrien Lacour 2022-12-04 22:05:01 UTC
I get the following error:

FAILED: libshaderc_util/CMakeFiles/shaderc_util.dir/src/resources.cc.o
/usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ -DENABLE_HLSL -I/var/tmp/portage/media-libs/shaderc-2022.2-r1/work/shaderc-2022.2/libshaderc_util/include  -O3 -march=native -pipe -Wimplicit-fallthrough -Wextra-semi -Wall -fvisibility=hidden -fPIC -std=c++11 -std=gnu++11 -MD -MT libshaderc_util/CMakeFiles/shaderc_util.dir/src/resources.cc.o -MF libshaderc_util/CMakeFiles/shaderc_util.dir/src/resources.cc.o.d -o libshaderc_util/CMakeFiles/shaderc_util.dir/src/resources.cc.o -c /var/tmp/portage/media-libs/shaderc-2022.2-r1/work/shaderc-2022.2/libshaderc_util/src/resources.cc
/var/tmp/portage/media-libs/shaderc-2022.2-r1/work/shaderc-2022.2/libshaderc_util/src/resources.cc:142:6: error: cannot convert ‘<brace-enclosed initializer
list>’ to ‘int’ in initialization
  142 |     }};
      |      ^

Building after reverting glslang works again.

Same error as https://github.com/google/shaderc/issues/1056, but this was closed in 2020 so I don't know...

-2022.3 builds correctly after I unmasked spirv-tools and spirv-headers.

PS: glslang and spirv-* stable versions being desynchronized looks strange. Is this wanted?
Comment 1 Nick Sarnie gentoo-dev 2022-12-04 22:10:50 UTC
You need shaderc-2022.3
Comment 2 Ionen Wolkens gentoo-dev 2022-12-04 22:13:32 UTC
>PS: glslang and spirv-* stable versions being desynchronized looks strange. Is this wanted?
No, it happened to be stabled together with renderdoc because it depends >=1.3.231 and likely didn't know the vulkan stack is normally only stabled together when ready.
 
(In reply to Nick Sarnie from comment #1)
> You need shaderc-2022.3
Problem is that the new glslang was stabled and shaderc-2022.2 is the stable one