Skip to content

🐛 Failed to compile on arch caused by onig_sys error #157

@KevCui

Description

@KevCui

Run commandyay -S git-delta, compilation process failed:

   ...
   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: `/home/kev/.cache/yay/git-delta/src/delta-0.1.1/target/release/build/onig_sys-1144788a31764b6f/build-script-build` (exit code: 101)
--- stdout
cargo:warning=couldn't execute `llvm-config --prefix` (exit code: exit code: 127)
cargo:warning=set the LLVM_CONFIG_PATH environment variable to a valid `llvm-config` executable

--- stderr
thread 'main' panicked at 'Unable to find libclang: "the `libclang` shared library at /usr/lib64/libclang.so.10 could not be opened: libLLVM-10.so: cannot open shared object file: No such file or directory"', src/libcore/result.rs:1084:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

==> ERROR: A failure occurred in build().
    Aborting...
Error making: git-delta

Same error occurs when running makepkg on latest commit 3423f36f144f29fbed68f1679b from master.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions