ul / kak-tree

Structural selections for Kakoune
The Unlicense
100 stars 10 forks source link

Cargo build fails #15

Closed Vincent-Carrier closed 4 years ago

Vincent-Carrier commented 4 years ago

Cloning the repo: hub clone ul/kak-tree --recurse-submodules | tail

Output:

remote: Enumerating objects: 88, done.
remote: Total 88 (delta 0), reused 0 (delta 0), pack-reused 88
Submodule path 'vendor/tree-sitter-bash/examples/bash-it/test_lib/bats-assert': checked out '9f88b4207da750093baabc4e3f41bf68f0dd3630'
Submodule path 'vendor/tree-sitter-bash/examples/bash-it/test_lib/bats-core': checked out '85388685632f85d5a1c32e6bca2deec401964cf7'
Submodule path 'vendor/tree-sitter-bash/examples/bash-it/test_lib/bats-file': checked out '2fddb2b831d65cdf2e411f3b47f4677fbb15729c'
Submodule path 'vendor/tree-sitter-bash/examples/bash-it/test_lib/bats-support': checked out '004e707638eedd62e0481e8cdc9223ad471f12ee'
error: Server does not allow request for unadvertised object 627806ec6a6109b17de8400384474395ac2afb2d
Fetched in submodule path 'vendor/tree-sitter-c', but it did not contain 627806ec6a6109b17de8400384474395ac2afb2d. Direct fetching of that commit failed.

Building the executable: cargo install --path . --force --features "rust"

Output:

  Installing kak-tree v0.1.0 (/Users/vincent/repos/ul/kak-tree)
    Updating crates.io index
   Compiling serde_derive v1.0.104
   Compiling kak-tree v0.1.0 (/Users/vincent/repos/ul/kak-tree)
   Compiling trackable_derive v0.1.2
error: failed to run custom build command for `kak-tree v0.1.0 (/Users/vincent/repos/ul/kak-tree)`

Caused by:
  process didn't exit successfully: `/Users/vincent/repos/ul/kak-tree/target/release/build/kak-tree-2c230ccdf8b60dd7/build-script-build` (exit code: 1)
--- stdout
TARGET = Some("x86_64-apple-darwin")
OPT_LEVEL = Some("3")
HOST = Some("x86_64-apple-darwin")
CC_x86_64-apple-darwin = None
CC_x86_64_apple_darwin = None
HOST_CC = None
CC = None
CFLAGS_x86_64-apple-darwin = None
CFLAGS_x86_64_apple_darwin = None
HOST_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("false")
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2,sse3,ssse3")
running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "vendor/tree-sitter-rust/src" "-Wall" "-Wextra" "-o" "/Users/vincent/repos/ul/kak-tree/target/release/build/kak-tree-73953501e48e9377/out/vendor/tree-sitter-rust/src/parser.o" "-c" "vendor/tree-sitter-rust/src/parser.c"
cargo:warning=clang: error: no such file or directory: 'vendor/tree-sitter-rust/src/parser.c'
cargo:warning=clang: error: no input files
exit code: 1

--- stderr

error occurred: Command "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-I" "vendor/tree-sitter-rust/src" "-Wall" "-Wextra" "-o" "/Users/vincent/repos/ul/kak-tree/target/release/build/kak-tree-73953501e48e9377/out/vendor/tree-sitter-rust/src/parser.o" "-c" "vendor/tree-sitter-rust/src/parser.c" with args "cc" did not execute successfully (status code exit code: 1).

warning: build failed, waiting for other jobs to finish...
error: failed to compile `kak-tree v0.1.0 (/Users/vincent/repos/ul/kak-tree)`, intermediate artifacts can be found at `/Users/vincent/repos/ul/kak-tree/target`

Caused by:
  build failed
cargo -V
cargo 1.39.0 (1c6ec66d5 2019-09-30)
Vincent-Carrier commented 4 years ago

Fixed it! Just had to call git submodule update --depth 100.