Package Details: lib32-shaderc 2024.3-1

Git Clone URL: https://aur.archlinux.org/lib32-shaderc.git (read-only, click to copy)
Package Base: lib32-shaderc
Description: Collection of tools, libraries and tests for shader compilation (32bit)
Upstream URL: https://github.com/google/shaderc
Licenses: Apache-2.0
Conflicts: lib32-shaderc-git
Provides: libshaderc_shared.so
Submitter: oxalin
Maintainer: oxalin
Last Packager: oxalin
Votes: 6
Popularity: 0.000000
First Submitted: 2019-08-15 16:26 (UTC)
Last Updated: 2024-12-20 08:04 (UTC)

Latest Comments

1 2 3 4 Next › Last »

CalliopeSystem commented on 2024-12-15 07:20 (UTC)

Unable to compile due to missing HLSL and OGLCompiler libraries in the current version of glslang as referenced here. https://github.com/KhronosGroup/glslang/releases/tag/14.0.0

Successfully built v2024.3 simply by changing the PKGBUILD version to 2024.3 (this matches the 64 bit version in the official arch repo) and updating the sha512sums and b2sums. Please update. https://github.com/google/shaderc/releases/tag/v2024.3

sgt-hartman commented on 2023-12-02 08:12 (UTC)

Any reason to not use the current 2023.7 (https://github.com/google/shaderc/releases/tag/v2023.7) version ?

This one build correctly and is aligned with 64 bit version available in official arch repo.

sgt-hartman commented on 2023-12-01 20:33 (UTC)

Can't build it:

[18/29] Building CXX object libshaderc_util/CMakeFiles/shaderc_util.dir/src/compiler.cc.o
FAILED: libshaderc_util/CMakeFiles/shaderc_util.dir/src/compiler.cc.o 
/usr/bin/g++  -m32 -DENABLE_HLSL -I/home/ben/.cache/yay/lib32-shaderc/src/shaderc-2023.4/libshaderc_util/include -I/usr/include/glslang -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -ffat-lto-objects -Wimplicit-fallthrough -O3 -DNDEBUG -std=gnu++17 -Wextra-semi -Wall -Werror -fvisibility=hidden -fPIC -std=c++11 -MD -MT libshaderc_util/CMakeFiles/shaderc_util.dir/src/compiler.cc.o -MF libshaderc_util/CMakeFiles/shaderc_util.dir/src/compiler.cc.o.d -o libshaderc_util/CMakeFiles/shaderc_util.dir/src/compiler.cc.o -c /home/ben/.cache/yay/lib32-shaderc/src/shaderc-2023.4/libshaderc_util/src/compiler.cc
In file included from /usr/include/glslang/Include/Types.h:47,
                 from /usr/include/glslang/Include/intermediate.h:57,
                 from /usr/include/glslang/MachineIndependent/localintermediate.h:42,
                 from /usr/include/glslang/SPIRV/SpvTools.h:50,
                 from /usr/include/glslang/SPIRV/GlslangToSpv.h:42,
                 from /home/ben/.cache/yay/lib32-shaderc/src/shaderc-2023.4/libshaderc_util/src/compiler.cc:23:
/usr/include/glslang/Include/SpirvIntrinsics.h:120:10: error: ‘variant’ in namespace ‘std’ does not name a template type
  120 |     std::variant<const TIntermConstantUnion*, const TType*> value;
      |          ^~~~~~~
/usr/include/glslang/Include/SpirvIntrinsics.h:120:5: note: ‘std::variant’ is only available from C++17 onwards
  120 |     std::variant<const TIntermConstantUnion*, const TType*> value;
      |     ^~~
/usr/include/glslang/Include/SpirvIntrinsics.h: In constructor ‘glslang::TSpirvTypeParameter::TSpirvTypeParameter(const glslang::TIntermConstantUnion*)’:
/usr/include/glslang/Include/SpirvIntrinsics.h:100:60: error: ‘value’ was not declared in this scope
  100 |     TSpirvTypeParameter(const TIntermConstantUnion* arg) { value = arg; }
      |                                                            ^~~~~
/usr/include/glslang/Include/SpirvIntrinsics.h: In constructor ‘glslang::TSpirvTypeParameter::TSpirvTypeParameter(const glslang::TType*)’:
/usr/include/glslang/Include/SpirvIntrinsics.h:101:45: error: ‘value’ was not declared in this scope
  101 |     TSpirvTypeParameter(const TType* arg) { value = arg; }
      |                                             ^~~~~
/usr/include/glslang/Include/SpirvIntrinsics.h: In member function ‘const glslang::TIntermConstantUnion* glslang::TSpirvTypeParameter::getAsConstant() const’:
/usr/include/glslang/Include/SpirvIntrinsics.h:105:13: error: ‘value’ was not declared in this scope
  105 |         if (value.index() == 0)
      |             ^~~~~
/usr/include/glslang/Include/SpirvIntrinsics.h: In member function ‘const glslang::TType* glslang::TSpirvTypeParameter::getAsType() const’:
/usr/include/glslang/Include/SpirvIntrinsics.h:111:13: error: ‘value’ was not declared in this scope
  111 |         if (value.index() == 1)
      |             ^~~~~
[22/29] Building CXX object glslc/CMakeFiles/glslc_exe.dir/src/main.cc.o
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: lib32-shaderc-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
lib32-shaderc - exit status 4

oxalin commented on 2023-11-13 20:11 (UTC)

FYI: I know this package has been outdated for sometime. I've been waiting for the native package to receive its update. Since it has been so long, I'll produce a temporary update to bring it on par with the native, but another one will probably be out short after.

fbrennan commented on 2023-06-01 02:16 (UTC) (edited on 2023-06-01 02:16 (UTC) by fbrennan)

Fails to build. Please apply:

diff --git a/PKGBUILD b/PKGBUILD
index 26cbfcc..35fefef 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -31,10 +31,10 @@ source=(
         "${_pkgbasename}-${pkgver}.tar.gz::https://github.com/google/shaderc/archive/v${pkgver}/${_pkgbasename}-${pkgver}.tar.gz"
         )
 sha512sums=(
-        '41e8a931ce47f42964c69c747aae96795d9791787deee411ce2e7053e2f426f1766a5aa42e8400fa9179c9428f11f3283a7b4c1dd20e7969963e6a00443549c1'
+        'c6422383318b5d4d341e5b4215489ba03590aeff65fd03fb0b57aab8689c9002444f520a4017485645291777ee442979d22db52d843e66d4d672da2810b20e36'
         )
 b2sums=(
-        'a9a29b4cef74b864b87af5700b830d1d193cf2cdb8ae6cafffc50c6130ac6e1bfb0a598ca30ecf1cfa06dd50144bdd421b7541a6fdb2965b8ee029ad749ea0fe'
+        'a66de9fea6d2d48ead7e3cda2b4b03f437fa30f7efbbd2c0448baf93240703177e0bf537e5f8f856222a8c7767e69ba039b7d9929bcc66401cef6cc804c8b3dd'
         )

As to why this is needed, your guess is as good as mine.

Nocifer commented on 2021-08-07 08:36 (UTC)

I've been trying to build lib32-gst-plugins-bad for the last couple of days, and after yesterday's update to lib32-spirv-tools which finally allowed that package to be built, I've now been getting this new error while trying to build lib32-shaderc:

[29/29] Linking CXX executable glslc/glslc
FAILED: glslc/glslc 
: && /usr/bin/g++  -m32 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto -Wimplicit-fallthrough -O3 -DNDEBUG -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now   -rdynamic glslc/CMakeFiles/glslc_exe.dir/src/main.cc.o -o glslc/glslc  glslc/libglslc.a  libshaderc_util/libshaderc_util.a  libshaderc/libshaderc.a  libshaderc_util/libshaderc_util.a  -lSPIRV-Tools-opt  -lSPIRV-Tools  -lHLSL  -lglslang  -lOSDependent  -lOGLCompiler  -lglslang  -lOSDependent  -lOGLCompiler  -lSPIRV  -lpthread && :
/usr/bin/ld: /tmp/ccuWwOLc.ltrans0.ltrans.o: in function `main':
<artificial>:(.text.startup+0x2ec2): undefined reference to `spvTargetEnvDescription'
/usr/bin/ld: <artificial>:(.text.startup+0x373b): undefined reference to `spvContextCreate'
...

...and then a bunch of similar /usr/bin/ld errors reporting undefined references to various SPIRV functions.

I also noticed that while building the required lib32-glslang I got this (the package built successfully though):

-- spirv-tools not linked - illegal SPIRV may be generated for HLSL

Could this be the reason for the SPIRV errors? Is anyone else getting these errors?

odecif commented on 2021-03-24 10:40 (UTC)

Same issue for me here on Manjaro 21.0 with version 2020.4 as for @MarsSeed.