This repository was archived by the owner on Aug 22, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
This repository was archived by the owner on Aug 22, 2025. It is now read-only.
can't be installed with cargo install --git https://github.com/BrianHicks/tree-grepper
#602
Copy link
Copy link
Closed
Description
my environment
❯ uname -a
Linux DESKTOP-NGIRL25 5.15.167.4-microsoft-standard-WSL2 #1 SMP Tue Nov 5 00:21:55 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
error occur
use order cargo install --git https://github.com/BrianHicks/tree-grepper
to meet error below:
The following warnings were emitted during compilation:
warning: [email protected]: cc1: fatal error: vendor/tree-sitter-c/src/parser.c: No such file or directory
warning: [email protected]: compilation terminated.
error: failed to run custom build command for `tree-grepper v2.5.0-pre (/home/cncsmonster/.cargo/git/checkouts/tree-grepper-c51361105713412d/551d793)`
Caused by:
process didn't exit successfully: `/tmp/cargo-installeG53xK/release/build/tree-grepper-bce497b44630279a/build-script-build` (exit status: 1)
--- stdout
cargo:rerun-if-changed=build.rs
cargo:rerun-if-changed=vendor/tree-sitter-c/src/parser.c
OUT_DIR = Some(/tmp/cargo-installeG53xK/release/build/tree-grepper-8a1c96d5034fd9c2/out)
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
RUSTC_WRAPPER = None
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_ENCODED_RUSTFLAGS = Some()
cargo:warning=cc1: fatal error: vendor/tree-sitter-c/src/parser.c: No such file or directory
cargo:warning=compilation terminated.
--- stderr
error occurred in cc-rs: Command LC_ALL="C" "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "vendor/tree-sitter-c/src" "-o" "/tmp/cargo-installeG53xK/release/build/tree-grepper-8a1c96d5034fd9c2/out/8cfc9357e5bac31d-parser.o" "-c" "vendor/tree-sitter-c/src/parser.c" with args cc did not execute
successfully (status code exit status: 1).
warning: build failed, waiting for other jobs to finish...
error: failed to compile `tree-grepper v2.5.0-pre (https://github.com/BrianHicks/tree-grepper#551d793c)`, intermediate artifacts can be found at `/tmp/cargo-installeG53xK`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
Metadata
Metadata
Assignees
Labels
No labels