Artix Linux Forum

Artix Linux => Package management => Topic started by: huge on 22 January 2025, 08:01:10

Title: Zig package 0.13.0-1 errors
Post by: huge on 22 January 2025, 08:01:10
Hi, apologies if this isn't the correct place to post. I'm unable to open issues on the gitea issue tracker for this package.

The zig 0.13.0-1 package appears to be broken. After install, running
Code: [Select]
zig version
produces the following error:

Code: [Select]
zig: error while loading shared libraries: libclang-cpp.so.18.1: cannot open shared object file: No such file or directory

This post (https://lyoneel.dev/clang-error-loading-shared-libraries-liblang-cpp-so/) suggests the issue is incompatible clang/llvm dependencies.  The version of zig in the package is 0.13.0-1, which is the latest release and the README (https://github.com/ziglang/zig) specifies clang/llvm @ 19.x.

Both clang and llvm-libs are at 19.1.7-1

Code: [Select]
pacman -Qi llvm-libs
Name            : llvm-libs
Version         : 19.1.7-1

Code: [Select]
 pacman -Qi clang
Name            : clang
Version         : 19.1.7-1

Has anyone successfully installed this version of the package? Would you mind sharing your dependency versions?

cc @nikolar
Title: Re: Zig package 0.13.0-1 errors
Post by: huge on 22 January 2025, 08:26:37
The dependencies in the PKGBUILD (https://gitea.artixlinux.org/packages/zig/src/branch/master/PKGBUILD#L12) are pinned to 18x