FS#74064 - [shaderc] rebuild necessary?

Attached to Project: Arch Linux
Opened by Christoph Haag (haagch) - Wednesday, 09 March 2022, 01:18 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Wednesday, 09 March 2022, 07:19 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

When building our gulkan library with the gulkan-toy example app (https://aur.archlinux.org/packages/gulkan-git), I get lots of linking errors.

FAILED: examples/gulkan-toy
cc -o examples/gulkan-toy examples/gulkan-toy.p/meson-generated_.._.._shaders_shader_resources.c.o examples/gulkan-toy.p/toy.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,--whole-archive -Wl,--start-group examples/common/libcommon.a -Wl,--no-whole-archive '-Wl,-rpath,$ORIGIN/../src' -Wl,-rpath-link,/home/haagch-collabora/gulkan/build/src src/libgulkan-0.15.so.0.15.1 /usr/lib/libcairo.so /usr/lib/libgio-2.0.so /usr/lib/libgobject-2.0.so /usr/lib/libglib-2.0.so /usr/lib/libgdk_pixbuf-2.0.so /usr/lib/libvulkan.so /usr/lib/libgraphene-1.0.so /usr/lib/libdrm.so /usr/lib/libglfw.so /usr/lib/libshaderc_shared.so /usr/lib/libjson-glib-1.0.so -Wl,--end-group
/usr/bin/ld: /usr/lib/libshaderc_shared.so: undefined reference to `spvtools::Optimizer::RegisterSizePasses()'
/usr/bin/ld: /usr/lib/libshaderc_shared.so: undefined reference to `spvValidatorOptionsSetRelaxLogicalPointer'
/usr/bin/ld: /usr/lib/libshaderc_shared.so: undefined reference to `spvValidatorOptionsSetSkipBlockLayout'
/usr/bin/ld: /usr/lib/libshaderc_shared.so: undefined reference to `spvOptimizerOptionsSetValidatorOptions'
/usr/bin/ld: /usr/lib/libshaderc_shared.so: undefined reference to `spvTextToBinary'
/usr/bin/ld: /usr/lib/libshaderc_shared.so: undefined reference to `spvtools::SpirvTools::Disassemble(std::vector<unsigned int, std::allocator<unsigned int> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*, unsigned int) const'
/usr/bin/ld: /usr/lib/libshaderc_shared.so: undefined reference to `spvtools::Optimizer::RegisterPass(spvtools::Optimizer::PassToken&&)'
/usr/bin/ld: /usr/lib/libshaderc_shared.so: undefined reference to `spvValidatorOptionsSetBeforeHlslLegalization'
/usr/bin/ld: /usr/lib/libshaderc_shared.so: undefined reference to `spvtools::Optimizer::RegisterLegalizationPasses()'
/usr/bin/ld: /usr/lib/libshaderc_shared.so: undefined reference to `spvtools::Optimizer::Optimizer(spv_target_env)'
/usr/bin/ld: /usr/lib/libshaderc_shared.so: undefined reference to `spvtools::Optimizer::~Optimizer()'
/usr/bin/ld: /usr/lib/libshaderc_shared.so: undefined reference to `spvBinaryDestroy'
/usr/bin/ld: /usr/lib/libshaderc_shared.so: undefined reference to `spvtools::Optimizer::SetMessageConsumer(std::function<void (spv_message_level_t, char const*, spv_position_t const&, char const*)>)'
/usr/bin/ld: /usr/lib/libshaderc_shared.so: undefined reference to `spvtools::CreateStripDebugInfoPass()'
/usr/bin/ld: /usr/lib/libshaderc_shared.so: undefined reference to `spvOptimizerOptionsDestroy'
/usr/bin/ld: /usr/lib/libshaderc_shared.so: undefined reference to `spvtools::CreateCompactIdsPass()'
/usr/bin/ld: /usr/lib/libshaderc_shared.so: undefined reference to `spvOptimizerOptionsCreate'
/usr/bin/ld: /usr/lib/libshaderc_shared.so: undefined reference to `spvtools::Optimizer::Run(unsigned int const*, unsigned long, std::vector<unsigned int, std::allocator<unsigned int> >*, spv_optimizer_options_t*) const'
/usr/bin/ld: /usr/lib/libshaderc_shared.so: undefined reference to `spvDiagnosticDestroy'
/usr/bin/ld: /usr/lib/libshaderc_shared.so: undefined reference to `spvtools::SpirvTools::SetMessageConsumer(std::function<void (spv_message_level_t, char const*, spv_position_t const&, char const*)>)'
/usr/bin/ld: /usr/lib/libshaderc_shared.so: undefined reference to `spvContextCreate'
/usr/bin/ld: /usr/lib/libshaderc_shared.so: undefined reference to `spvContextDestroy'
/usr/bin/ld: /usr/lib/libshaderc_shared.so: undefined reference to `spvtools::Optimizer::RegisterPerformancePasses()'
/usr/bin/ld: /usr/lib/libshaderc_shared.so: undefined reference to `spvtools::SpirvTools::~SpirvTools()'
/usr/bin/ld: /usr/lib/libshaderc_shared.so: undefined reference to `spvValidatorOptionsCreate'
/usr/bin/ld: /usr/lib/libshaderc_shared.so: undefined reference to `spvValidatorOptionsDestroy'
/usr/bin/ld: /usr/lib/libshaderc_shared.so: undefined reference to `spvOptimizerOptionsSetRunValidator'
/usr/bin/ld: /usr/lib/libshaderc_shared.so: undefined reference to `spvtools::SpirvTools::SpirvTools(spv_target_env)'
/usr/bin/ld: /usr/lib/libshaderc_shared.so: undefined reference to `spvtools::Optimizer::PassToken::~PassToken()'
collect2: Fehler: ld gab 1 als Ende-Status zurück
[86/87] Linking target examples/dmabuf-drm-modifiers
ninja: build stopped: subcommand failed


Simply rebuilding the current 2022.1-1 package version of shaderc fixes those build issues.


Additional info:
* package version(s) shaderc 2022.1-1, glslang 11.8.0-2, spirv-tools 2022.1-1
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Wednesday, 09 March 2022, 07:19 GMT
Reason for closing:  Fixed
Comment by Sven-Hendrik Haase (Svenstaro) - Wednesday, 09 March 2022, 02:07 GMT
That's odd, I thought I built everything in the correct order. Oh well. Can you try the new package 2022.1-2?
Comment by Alois Nespor (anespor) - Wednesday, 09 March 2022, 06:10 GMT
with new package 2022.1-2 i can build my own mpv package again! thanks for fix!

Loading...