Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 954216 - [GURU] app-arch/ouch-0.6.0: Unable to find libclang
Summary: [GURU] app-arch/ouch-0.6.0: Unable to find libclang
Status: RESOLVED FIXED
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Jonas Frei
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-22 15:00 UTC by squatted_posture785
Modified: 2025-04-25 15:24 UTC (History)
1 user (show)

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


Attachments
emerge --info (emerge_info.log,14.24 KB, text/x-log)
2025-04-22 15:01 UTC, squatted_posture785
Details

Note You need to log in before you can comment on or make changes to this bug.
Description squatted_posture785 2025-04-22 15:00:45 UTC
Building app-arch/ouch-0.6.0 fails:

error: failed to run custom build command for `libbzip3-sys v0.4.0+1.4.0`

Caused by:
  process didn't exit successfully: `/var/tmp/portage/app-arch/ouch-0.6.0/work/ouch-0.6.0/target/release/build/libbzip3-sys-9ce583f0976053dd/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-changed=./bzip3/include/libbz3.h

  --- stderr

  thread 'main' panicked at /var/tmp/portage/app-arch/ouch-0.6.0/work/cargo_home/gentoo/bindgen-0.63.0/lib.rs:2338:31:
  Unable to find libclang: "couldn't find any valid shared libraries matching: ['libclang.so', 'libclang-*.so', 'libclang.so.*', 'libclang-*.so.*'], set the`LIBCLANG_PATH` environment variable to a path where one of these files can be found (invalid: [])"
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace




Reproducible: Always

Steps to Reproduce:
1. # emerge app-arch/ouch
Actual Results:  
The error occurs.

Expected Results:  
The package compiles.

Adding

BDEPEND="llvm-core/clang"

to the ebuild fixes the issue, at least on my end.
Comment 1 squatted_posture785 2025-04-22 15:01:20 UTC
Created attachment 925672 [details]
emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2025-04-25 15:24:28 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e984f4a10dd30c3d3254d5a3579c59687f95dab5

commit e984f4a10dd30c3d3254d5a3579c59687f95dab5
Author:     Jonas Frei <freijon@pm.me>
AuthorDate: 2025-04-24 18:06:27 +0000
Commit:     Jonas Frei <freijon@pm.me>
CommitDate: 2025-04-24 18:09:18 +0000

    app-arch/ouch: add 0.6.1
    
    Closes: https://bugs.gentoo.org/954216
    Closes: https://bugs.gentoo.org/954229
    Signed-off-by: Jonas Frei <freijon@pm.me>

 app-arch/ouch/Manifest          |  2 ++
 app-arch/ouch/ouch-0.6.1.ebuild | 52 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 54 insertions(+)