codesnap.nvim
codesnap.nvim copied to clipboard
Build failled in debian stable
I try to install in debain satble (bookworm) and seens like i dosen´t have a specific dependency for compile from source, and i received this log as result
./scripts/build_generator.sh --release
Blocking waiting for file lock on build directory
Compiling libuv-sys2 v1.48.0
Compiling wl-clipboard-rs v0.8.1
Compiling fontdb v0.16.2
Compiling oxi-api v0.3.0
Compiling syntect v5.2.0
Compiling parking_lot v0.12.1
Compiling cached_proc_macro v0.20.0
Compiling oxi-macros v0.3.0
Compiling instant v0.1.12
Compiling rustc-hash v1.1.0
Compiling unicode-linebreak v0.1.5
Compiling cached_proc_macro_types v0.1.1
Compiling self_cell v1.0.3
Compiling sys-locale v0.3.1
Compiling unicode-segmentation v1.11.0
Compiling arrayvec v0.7.4
Compiling unicode-bidi v0.3.15
Compiling rangemap v1.5.1
Compiling tiny-skia v0.11.4
Compiling two-face v0.3.0
Compiling cosmic-text v0.11.2
Compiling cached v0.49.3
Compiling arboard v3.3.2
Compiling regex v1.10.3
The following warnings were emitted during compilation:
warning: [email protected]: Compiler version doesn't include clang or GCC: "cc" "--version"
error: failed to run custom build command for `libuv-sys2 v1.48.0`
Caused by:
process didn't exit successfully: `/home/v_raton/.local/share/nvim/lazy/codesnap.nvim/generator/target/release/build/libuv-sys2-2ce6608c37db8cc7/build-script-build` (exit status: 101)
--- stdout
cargo:rerun-if-env-changed=LIBUV_NO_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG
cargo:rerun-if-env-changed=PKG_CONFIG
cargo:rerun-if-env-changed=LIBUV_STATIC
cargo:rerun-if-env-changed=LIBUV_DYNAMIC
cargo:rerun-if-env-changed=PKG_CONFIG_ALL_STATIC
cargo:rerun-if-env-changed=PKG_CONFIG_ALL_DYNAMIC
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_PATH
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR
OPT_LEVEL = Some("3")
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
cargo:rerun-if-env-changed=CC_x86_64-unknown-linux-gnu
CC_x86_64-unknown-linux-gnu = None
cargo:rerun-if-env-changed=CC_x86_64_unknown_linux_gnu
CC_x86_64_unknown_linux_gnu = None
cargo:rerun-if-env-changed=HOST_CC
HOST_CC = None
cargo:rerun-if-env-changed=CC
CC = None
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
cargo:warning=Compiler version doesn't include clang or GCC: "cc" "--version"
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("false")
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu
CFLAGS_x86_64-unknown-linux-gnu = None
cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu
CFLAGS_x86_64_unknown_linux_gnu = None
cargo:rerun-if-env-changed=HOST_CFLAGS
HOST_CFLAGS = None
cargo:rerun-if-env-changed=CFLAGS
CFLAGS = None
cargo:rustc-link-lib=pthread
cargo:rustc-link-lib=dl
cargo:rustc-link-lib=rt
cargo:rerun-if-env-changed=AR_x86_64-unknown-linux-gnu
AR_x86_64-unknown-linux-gnu = None
cargo:rerun-if-env-changed=AR_x86_64_unknown_linux_gnu
AR_x86_64_unknown_linux_gnu = None
cargo:rerun-if-env-changed=HOST_AR
HOST_AR = None
cargo:rerun-if-env-changed=AR
AR = None
cargo:rerun-if-env-changed=ARFLAGS_x86_64-unknown-linux-gnu
ARFLAGS_x86_64-unknown-linux-gnu = None
cargo:rerun-if-env-changed=ARFLAGS_x86_64_unknown_linux_gnu
ARFLAGS_x86_64_unknown_linux_gnu = None
cargo:rerun-if-env-changed=HOST_ARFLAGS
HOST_ARFLAGS = None
cargo:rerun-if-env-changed=ARFLAGS
ARFLAGS = None
cargo:rustc-link-lib=static=uv
cargo:rustc-link-search=native=/home/v_raton/.local/share/nvim/lazy/codesnap.nvim/generator/target/release/build/libuv-sys2-575694828bbe684b/out
Generating bindings for libuv...
--- stderr
thread 'main' panicked at /home/v_raton/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bindgen-0.68.1/lib.rs:611: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
warning: build failed, waiting for other jobs to finish...
cp: cannot stat './generator/target/release/libgenerator.so': No such file or directory
make: *** [makefile:8: build_generator] Error 1
Hi @victorfernandesraton, check the https://github.com/rust-lang/cc-rs/issues/909, did it help you?
Hi @victorfernandesraton, check the rust-lang/cc-rs#909, did it help you?
After see rust-lang/cc-rs#909 and https://github.com/rust-lang/cc-rs/issues/958#issue-2145684955 i see a solution when i installing clang, they allow me to build.