Compiling which v2.0.1 Compiling onig_sys v69.2.0 error: failed to run custom build command for `onig_sys v69.2.0` Caused by: process didn't exit successfully: `/var/tmp/portage/sys-apps/bat-0.12.0/work/bat-0.12.0/target/release/build/onig_sys-c88997f7173d15ee/build-script-build` (exit code: 101) ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_hardened-libressl_test-20191129-201951 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-9.2.0 * llvm: 9.0.0 Available Python interpreters, in order of preference: [1] python3.6 [2] python2.7 (fallback) Available Rust versions: [1] rust-1.39.0 * repository: ==> /var/db/repos/gentoo/metadata/timestamp.chk <== Wed, 04 Dec 2019 20:06:30 +0000 emerge -qpvO sys-apps/bat [ebuild N ] sys-apps/bat-0.12.0 USE="-debug"
Created attachment 598480 [details] emerge-info.txt
Created attachment 598482 [details] emerge-history.txt
Created attachment 598484 [details] environment
Created attachment 598486 [details] etc.portage.tbz2
Created attachment 598488 [details] sys-apps:bat-0.12.0:20191204-201916.log
Created attachment 598490 [details] temp.tbz2
thread 'main' panicked at 'Unable to find libclang: "couldn\'t find any valid shared libraries matching: [\'libclang.so\', \'libclang-*.so\', \'libclang.so.*\'], set the `LIBCLANG_PATH` environment variable to a path where one of these files can be found (invalid: [])"', src/libcore/result.rs:1165:5 have no idea why it wants libclang. will take a look later.
It's a build-time dependency of crate onig_sys to sys-devel/clang, More info: https://bugs.gentoo.org/show_bug.cgi?id=693894
dep was added to 0.12.1-r1
This issue happened to me with bat-0.13: Caused by: process didn't exit successfully: `/var/tmp/portage/sys-apps/bat-0.13.0/work/bat-0.13.0/target/release/build/onig_sys-9c9911ed83c06016/build-script-build` (exit code: 101) --- stderr thread 'main' panicked at 'Unable to find libclang: "couldn\'t find any valid shared libraries matching: [\'libclang.so\', \'libclang-*.so\', \'libclang.so.*\'], set the `LIBCLANG_PATH` environment variable to a path where one of these files can be found (invalid: [])"', /var/tmp/portage/sys-apps/bat-0.13.0/work/cargo_home/gentoo/bindgen-0.50.1/src/lib.rs:1711:13 I have sys-devel/clang-10.0.0 installed on my system. I was able to temporarily fix it by setting LIBCLANG_PATH manually: LIBCLANG_PATH=/usr/lib/llvm/10/lib64/ emerge bat