Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 943516 - sys-power/wluma-4.4.0-r2 error: failed to run custom build command for `v4l-sys v0.3.0`
Summary: sys-power/wluma-4.4.0-r2 error: failed to run custom build command for `v4l-s...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-14 15:28 UTC by mrpingo
Modified: 2024-11-14 20:12 UTC (History)
1 user (show)

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


Attachments
build log (sys-power:wluma-4.4.0-r2:20241114-151212.log,26.66 KB, text/plain)
2024-11-14 15:29 UTC, mrpingo
Details
emerge --info log (emerge-info.log,29.39 KB, text/plain)
2024-11-14 15:31 UTC, mrpingo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mrpingo 2024-11-14 15:28:28 UTC
Cant find CLANG/LLVM libs.
Appending LIBCLANG_PATH="/usr/lib/llvm/18/lib64" before emerge command compiles fine.

Reproducible: Always

Actual Results:  
Fail emerge.

____________________________
error: failed to run custom build command for `v4l-sys v0.3.0`

Caused by:
  process didn't exit successfully: `/var/tmp/portage/sys-power/wluma-4.4.0-r2/work/wluma-4.4.0/target/release/build/v4l-sys-238790346baaca19/build-script-build` (exit status: 101)
  --- stdout
  cargo:rustc-link-lib=v4l1
  cargo:rustc-link-lib=v4l2
  cargo:rustc-link-lib=v4lconvert

  --- stderr
  thread 'main' panicked at /var/tmp/portage/sys-power/wluma-4.4.0-r2/work/cargo_home/gentoo/bindgen-0.65.1/lib.rs:603: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
____________________

Expected Results:  
Complete emerge

Can be fixed with something like:

LLVM_COMPAT=( 17 18 19 )
RUST_MIN_VER="1.75.0"
_RUST_LLVM_MAP=(
    ["1.82.0"]=19
    ["1.81.0"]=18
    ["1.80.1"]=18
    ["1.79.0"]=18
    ["1.77.1"]=17
    ["1.75.0"]=17
)
Comment 1 mrpingo 2024-11-14 15:29:32 UTC
Created attachment 908702 [details]
build log
Comment 2 mrpingo 2024-11-14 15:31:52 UTC
Created attachment 908703 [details]
emerge --info log