Code Monkey home page Code Monkey logo

Comments (3)

oovm avatar oovm commented on June 21, 2024

Same problem: https://github.com/GalAster/carbon-rs/runs/492035660

   Compiling onig_sys v69.2.0
     Running `rustc --crate-name build_script_build C:\Users\runneradmin\.cargo\registry\src\github.com-1ecc6299db9ec823\onig_sys-69.2.0\build.rs --error-format=json --json=diagnostic-rendered-ansi --crate-type bin --emit=dep-info,link -C opt-level=3 -C metadata=523edfba9713ec13 -C extra-filename=-523edfba9713ec13 --out-dir D:\a\carbon-rs\carbon-rs\target\release\build\onig_sys-523edfba9713ec13 -L dependency=D:\a\carbon-rs\carbon-rs\target\release\deps --extern bindgen=D:\a\carbon-rs\carbon-rs\target\release\deps\libbindgen-aa80d456a78fa41c.rlib --extern cc=D:\a\carbon-rs\carbon-rs\target\release\deps\libcc-6c97d0e1bec95bbf.rlib --extern pkg_config=D:\a\carbon-rs\carbon-rs\target\release\deps\libpkg_config-d357e1153e3965c7.rlib --cap-lints allow`
     Running `D:\a\carbon-rs\carbon-rs\target\release\build\onig_sys-523edfba9713ec13\build-script-build`
error: failed to run custom build command for `onig_sys v69.2.0`

Caused by:
  process didn't exit successfully: `D:\a\carbon-rs\carbon-rs\target\release\build\onig_sys-523edfba9713ec13\build-script-build` (exit code: 101)
--- stdout
cargo:warning=couldn't execute `llvm-config --prefix` (error: The system cannot find the file specified. (os error 2))
cargo:warning=set the LLVM_CONFIG_PATH environment variable to a valid `llvm-config` executable

--- stderr
thread 'main' panicked at 'Unable to find libclang: "couldn\'t find any valid shared libraries matching: [\'clang.dll\', \'libclang.dll\'], set the `LIBCLANG_PATH` environment variable to a path where one of these files can be found (invalid: [])"', src\libcore\result.rs:1188:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

##[error]Process completed with exit code 1.

from rust-onig.

iwillspeak avatar iwillspeak commented on June 21, 2024

Both of these errors appear to be a lack of the llvm-config too which the bindgen crate uses to generate bindings.

I plan on updating this crate to pre-pack the bindings for common platforms. That work is being tracked in #126.

In the mean time you'll need LLVM installed to get llvm-config available for bindgen to use.

from rust-onig.

Keats avatar Keats commented on June 21, 2024

The new version can disable the bindgen build now.

from rust-onig.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.