Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 701990 - sys-apps/bat-0.12.0 : error: failed to run custom build command for onig_sys v69.2.0
Summary: sys-apps/bat-0.12.0 : error: failed to run custom build command for onig_sys ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Georgy Yakovlev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-04 20:32 UTC by Toralf Förster
Modified: 2020-05-13 09:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,15.60 KB, text/plain)
2019-12-04 20:32 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,144.33 KB, text/plain)
2019-12-04 20:32 UTC, Toralf Förster
Details
environment (environment,37.28 KB, text/plain)
2019-12-04 20:32 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,15.82 KB, application/x-bzip)
2019-12-04 20:32 UTC, Toralf Förster
Details
sys-apps:bat-0.12.0:20191204-201916.log (sys-apps:bat-0.12.0:20191204-201916.log,14.55 KB, text/plain)
2019-12-04 20:32 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,11.95 KB, application/x-bzip)
2019-12-04 20:32 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2019-12-04 20:32:05 UTC
   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"
Comment 1 Toralf Förster gentoo-dev 2019-12-04 20:32:08 UTC
Created attachment 598480 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-12-04 20:32:11 UTC
Created attachment 598482 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2019-12-04 20:32:14 UTC
Created attachment 598484 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2019-12-04 20:32:16 UTC
Created attachment 598486 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2019-12-04 20:32:19 UTC
Created attachment 598488 [details]
sys-apps:bat-0.12.0:20191204-201916.log
Comment 6 Toralf Förster gentoo-dev 2019-12-04 20:32:23 UTC
Created attachment 598490 [details]
temp.tbz2
Comment 7 Georgy Yakovlev archtester gentoo-dev 2019-12-04 21:05:25 UTC
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.
Comment 8 Micha Glave 2020-02-10 13:21:30 UTC
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
Comment 9 Georgy Yakovlev archtester gentoo-dev 2020-02-18 04:57:52 UTC
dep was added to 0.12.1-r1
Comment 10 Fin Christensen 2020-04-18 11:58:53 UTC
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