Skip to content

Instantly share code, notes, and snippets.

@chessai
Created March 27, 2019 20:42
Show Gist options
  • Save chessai/0cbdb2667f87fbd32832f8b719c360e6 to your computer and use it in GitHub Desktop.
Save chessai/0cbdb2667f87fbd32832f8b719c360e6 to your computer and use it in GitHub Desktop.
Building build.rs (librocksdb-sys)
Running rustc --crate-name build_script_build build.rs --crate-type bin -C opt-level=3 -C codegen-units=1 --cfg feature="zstd" --cfg feature="zlib" --cfg feature="static" --cfg feature="snappy" --cfg feature="lz4" --cfg feature="default" --cfg feature="bzip2" --out-dir target/build/librocksdb-sys --emit=dep-info,link -L dependency=target/buildDeps --extern bindgen=/nix/store/ksq6msrj8lxn771j7q4wmnjfx58rcfy9-rust_bindgen-0.47.3/lib/libbindgen-257b470b9c.rlib --extern cc=/nix/store/2bihshk564grlwk8jllqb6niwyj58j6a-rust_cc-1.0.32/lib/libcc-d214a1c57c.rlib --extern glob=/nix/store/ffzh87sjai1hqj046g69gr99pdbsvbqy-rust_glob-0.2.11/lib/libglob-67202cca89.rlib --cap-lints allow -L native=/nix/store/vrzv48gkazkwkbn1v9x0fcxsyja3bdiw-rust_backtrace-sys-0.1.28/lib/backtrace-sys.out -L native=/nix/store/xv6f9l6sg5mfsam2ak78qysda66nf368-rust_libloading-0.5.0/lib/libloading.out -l dl -l static=backtrace -l static=global_static --color always
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:1009:5
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: std::panicking::rust_panic_with_hook
5: std::panicking::continue_panic_fmt
6: rust_begin_unwind
7: core::panicking::panic_fmt
8: core::result::unwrap_failed
9: std::sync::once::Once::call_once::{{closure}}
10: std::sync::once::Once::call_inner
11: bindgen::Bindings::generate
12: bindgen::Builder::generate
13: build_script_build::main
14: std::rt::lang_start::{{closure}}
15: std::panicking::try::do_call
16: __rust_maybe_catch_panic
17: std::rt::lang_start_internal
18: main
19: __libc_start_main
20: _start
at ../sysdeps/x86_64/start.S:120
builder for '/nix/store/2af63v90hh8vv187mjyy24h2fhrssb2d-rust_librocksdb-sys-5.17.2.drv' failed with exit code 101
cannot build derivation '/nix/store/1wfwdz0b4rfxwx7dgl5iqdl13z0qbm8l-rust_sonic-server-1.1.8.drv': 1 dependencies couldn't be built
error: build of '/nix/store/1wfwdz0b4rfxwx7dgl5iqdl13z0qbm8l-rust_sonic-server-1.1.8.drv' failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment