FS#70990 - [shaderc] undefined symbol _ZN8spvtools9Optimizer18RegisterSizePassesEv

Attached to Project: Arch Linux
Opened by d (08d09) - Saturday, 22 May 2021, 15:54 GMT
Last edited by Laurent Carlier (lordheavy) - Saturday, 12 March 2022, 12:22 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Laurent Carlier (lordheavy)
Levente Polyak (anthraxx)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 6
Private No

Details

Description:
Mpv fails to launch with shaderc version 2021.0-1 due to this error:

mpv: symbol lookup error: /usr/lib/libshaderc_shared.so.1: undefined symbol: _ZN8spvtools9Optimizer18RegisterSizePassesEv


Additional info:
linux-5.12.4-arch1-2
mpv-1:0.33.1-2
shaderc-2021.0-1

This task depends upon

Closed by  Laurent Carlier (lordheavy)
Saturday, 12 March 2022, 12:22 GMT
Reason for closing:  Not a bug
Additional comments about closing:  not our bug
Comment by raine (raine) - Sunday, 06 June 2021, 00:18 GMT
I can confirm this. mpv has been broken in the past 2 weeks.
Comment by d (08d09) - Monday, 07 June 2021, 09:59 GMT
Trying to build mpv using the AUR package mpv-git also fails due to shaderc-2021.0-1, I get this error with version 2021.0-1 but it works with 2020.5-1.

/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../lib/libshaderc_combined.a(compiler.cc.o): undefined reference to symbol '_ZN7glslang7TShader18setShiftUboBindingEj'

Should this be reported to upstream or is this a packaging issue?
Comment by Corrado Primier (bardo) - Sunday, 11 July 2021, 14:53 GMT
Rebuilding the shaderc package fixes the mpv issue for me. No need to rebuild mpv itself.
Comment by Corrado Primier (bardo) - Sunday, 29 August 2021, 15:11 GMT
Issue still present with shaderc-2011.1-1, again fixed with a local rebuild. Considering that the package has been rebuilt in the meantime, there could be some difference in the build settings. Maybe a missing dependency?
Comment by Corrado Primier (bardo) - Sunday, 29 August 2021, 15:21 GMT
...and I just saw shaderc-2011.1-2 has been released by Svenstaro. Same error, same fix.
Comment by Martín Perazzo (rechap) - Wednesday, 29 September 2021, 15:51 GMT
I have 2 systems.
1.One with nvidia card and drivers installed and this is not an issue
2.Other with AMD card and mesa drivers installed and this is an issue

Is it possible shaderc has been built against the nvidia driver symbols and _ZN8spvtools9Optimizer18RegisterSizePassesEv is missing from mesa's?
Comment by Martín Perazzo (rechap) - Wednesday, 29 September 2021, 20:15 GMT
I think I got it.
Seems shaderc's dependency on glslang needs to be versioned.
I got an old git version installed. Installed glslang version 11.6.0-1 and the issue was solved

Loading...