libplacebo 2.72.0 and git master fail to build against glslang (master)
The latest release of shaderc 2020.1 requires an unreleased glslang because of running into
shaderc-2020.1/libshaderc_util/src/resources.cc:142:6: error: cannot convert '<brace-enclosed initializer list>' to 'bool' in initialization
but with glslang git master (051c6fed884b6837dc5728adc9e0ba25ba8f4212), libplacebo 2.72.0 and current git master fail to compile with -Dglslang=enabled -Dshaderc=disabled
as it seems to run into a similiar error:
[12/53] Generating vulkan boilerplate with a custom command
Found vk.xml: /usr/share/vulkan/registry/vk.xml
[44/53] Compiling C++ object 'src/25a6634@@placebo@sha/glsl_glslang.cc.o'
FAILED: src/25a6634@@placebo@sha/glsl_glslang.cc.o
ccache c++ -Isrc/25a6634@@placebo@sha -Isrc -I../libplacebo/src -I../libplacebo/src/include -I../libplacebo/src/include/dummy -I../libplacebo/subprojects/xtalloc/include -I../libplacebo/subprojects/bstr/include -I/usr/include/glslang -I/usr/local/include/glslang -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -std=c++11 -g -Wundef -Wshadow -Wparentheses -Wpointer-arith -fvisibility=hidden -fPIC -pthread -MD -MQ 'src/25a6634@@placebo@sha/glsl_glslang.cc.o' -MF 'src/25a6634@@placebo@sha/glsl_glslang.cc.o.d' -o 'src/25a6634@@placebo@sha/glsl_glslang.cc.o' -c ../libplacebo/src/glsl/glslang.cc
../libplacebo/src/glsl/glslang.cc:226:1: error: cannot convert '<brace-enclosed initializer list>' to 'int' in initialization
226 | };
| ^
../libplacebo/src/glsl/glslang.cc:226:1: warning: missing initializer for member 'TBuiltInResource::limits' [-Wmissing-field-initializers]
ninja: build stopped: subcommand failed.
Sadly the closed shaderc issue https://github.com/google/shaderc/issues/1056 doesn't seem to point to any useful commit.
Edited by Timo Gurr