cargo install error when update rust 1.80.0
haunt98 opened this issue · 2 comments
haunt98 commented
After I update to rust 1.80.0, I can not build llm-ls anymore
Command:
cargo install --locked --git https://github.com/huggingface/llm-ls llm-ls
Error:
➜ ~ cargo install --locked --git https://github.com/huggingface/llm-ls llm-ls
Updating git repository `https://github.com/huggingface/llm-ls`
Installing llm-ls v0.5.3 (https://github.com/huggingface/llm-ls#59febfea)
Updating crates.io index
Compiling libc v0.2.147
Compiling proc-macro2 v1.0.66
Compiling unicode-ident v1.0.11
Compiling memchr v2.6.3
Compiling autocfg v1.1.0
Compiling regex-syntax v0.7.5
Compiling cfg-if v1.0.0
Compiling serde v1.0.188
Compiling once_cell v1.18.0
Compiling itoa v1.0.9
Compiling pin-project-lite v0.2.13
Compiling aho-corasick v1.1.2
Compiling syn v1.0.109
Compiling futures-core v0.3.28
Compiling regex-automata v0.3.8
Compiling quote v1.0.33
Compiling cc v1.0.83
Compiling syn v2.0.31
Compiling tracing-core v0.1.31
Compiling slab v0.4.9
Compiling futures-sink v0.3.28
Compiling crossbeam-utils v0.8.16
Compiling regex v1.9.5
Compiling tree-sitter v0.20.10
Compiling futures-task v0.3.28
Compiling futures-channel v0.3.28
Compiling bytes v1.4.0
Compiling ring v0.16.20
Compiling serde_json v1.0.105
Compiling ryu v1.0.15
Compiling futures-util v0.3.28
Compiling scopeguard v1.2.0
Compiling socket2 v0.5.3
Compiling serde_derive v1.0.188
Compiling tracing-attributes v0.1.26
Compiling futures-macro v0.3.28
Compiling tokio-macros v2.1.0
Compiling mio v0.8.8
Compiling num_cpus v1.16.0
Compiling memoffset v0.9.0
Compiling log v0.4.20
Compiling futures-io v0.3.28
Compiling tracing v0.1.37
Compiling smallvec v1.11.0
Compiling tinyvec_macros v0.1.1
Compiling version_check v0.9.4
Compiling pin-utils v0.1.0
Compiling tinyvec v1.6.0
Compiling tokio v1.32.0
Compiling crossbeam-epoch v0.9.15
Compiling percent-encoding v2.3.0
Compiling untrusted v0.7.1
Compiling strsim v0.10.0
Compiling ident_case v1.0.1
Compiling fnv v1.0.7
Compiling unicode-normalization v0.1.22
Compiling darling_core v0.14.4
Compiling form_urlencoded v1.2.0
Compiling getrandom v0.2.10
Compiling indexmap v1.9.3
Compiling unicode-bidi v0.3.13
Compiling httparse v1.8.0
Compiling idna v0.4.0
Compiling darling_macro v0.14.4
Compiling http v0.2.9
Compiling rand_core v0.6.4
Compiling proc-macro-error-attr v1.0.4
Compiling rustls v0.21.7
Compiling tokio-util v0.7.8
Compiling ppv-lite86 v0.2.17
Compiling rayon-core v1.12.0
Compiling hashbrown v0.12.3
Compiling lazy_static v1.4.0
Compiling bitflags v1.3.2
Compiling pkg-config v0.3.27
Compiling tower-service v0.3.2
Compiling rand_chacha v0.3.1
Compiling onig_sys v69.8.1
Compiling crossbeam-deque v0.8.3
Compiling url v2.4.1
Compiling darling v0.14.4
Compiling rustls-webpki v0.101.4
Compiling sct v0.7.0
Compiling proc-macro-error v1.0.4
Compiling lock_api v0.4.10
Compiling try-lock v0.2.4
Compiling utf8parse v0.2.1
Compiling parking_lot_core v0.9.8
Compiling paste v1.0.14
Compiling regex-syntax v0.6.29
Compiling either v1.9.0
Compiling anstyle-parse v0.2.2
Compiling want v0.3.1
Compiling derive_builder_core v0.12.0
Compiling h2 v0.3.21
Compiling regex-automata v0.1.10
Compiling rand v0.8.5
Compiling http-body v0.4.5
Compiling pin-project-internal v1.1.3
Compiling serde_repr v0.1.16
Compiling socket2 v0.4.9
Compiling colorchoice v1.0.0
Compiling anstyle-query v1.0.0
Compiling thiserror v1.0.50
Compiling httpdate v1.0.3
Compiling anstyle v1.0.4
Compiling minimal-lexical v0.2.1
Compiling async-trait v0.1.73
Compiling esaxx-rs v0.1.10
Compiling overload v0.1.1
Compiling nu-ansi-term v0.46.0
Compiling nom v7.1.3
Compiling anstream v0.6.4
Compiling hyper v0.14.27
Compiling pin-project v1.1.3
Compiling lsp-types v0.94.1
Compiling tokio-rustls v0.24.1
Compiling matchers v0.1.0
Compiling derive_builder_macro v0.12.0
Compiling rayon v1.8.0
Compiling itertools v0.11.0
Compiling sharded-slab v0.1.4
Compiling tracing-log v0.1.3
Compiling tracing-serde v0.1.3
Compiling monostate-impl v0.1.9
Compiling thiserror-impl v1.0.50
Compiling tree-sitter-go v0.20.0
Compiling tree-sitter-java v0.20.2
Compiling tree-sitter-cpp v0.20.3
Compiling tree-sitter-scala v0.20.2
Compiling tree-sitter-objc v3.0.0
Compiling tree-sitter-rust v0.20.4
Compiling tree-sitter-bash v0.20.3
Compiling tree-sitter-r v0.19.5
Compiling tree-sitter-c v0.20.6
Compiling tree-sitter-kotlin v0.3.1
Compiling tree-sitter-erlang v0.4.0
Compiling tree-sitter-javascript v0.20.1
Compiling tree-sitter-swift v0.4.0
Compiling tree-sitter-c-sharp v0.20.0
Compiling tree-sitter-json v0.20.1
Compiling tree-sitter-lua v0.0.19
Compiling tree-sitter-elixir v0.1.0
Compiling tree-sitter-ruby v0.20.0
Compiling tree-sitter-typescript v0.20.3
Compiling tree-sitter-md v0.1.5
Compiling tree-sitter-python v0.20.4
Compiling tree-sitter-html v0.20.0
Compiling thread_local v1.1.7
Compiling clap_lex v0.6.0
Compiling base64 v0.13.1
Compiling heck v0.4.1
Compiling time-core v0.1.1
Compiling deranged v0.3.8
Compiling unicode-segmentation v1.10.1
Compiling base64 v0.21.3
Compiling macro_rules_attribute-proc_macro v0.2.0
Compiling tower-layer v0.3.2
Compiling hashbrown v0.14.0
Compiling time v0.3.28
Compiling macro_rules_attribute v0.2.0
Compiling tower v0.4.13
Compiling spm_precompiled v0.1.4
error[E0282]: type annotations needed for `Box<_>`
--> /Users/anon/.cargo/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.28/src/format_description/parse/mod.rs:83:9
|
83 | let items = format_items
| ^^^^^
...
86 | Ok(items.into())
| ---- type must be known at this point
|
help: consider giving `items` an explicit type, where the placeholders `_` are specified
|
83 | let items: Box<_> = format_items
| ++++++++
Compiling dashmap v5.5.3
Compiling rustls-pemfile v1.0.3
Compiling clap_derive v4.4.7
For more information about this error, try `rustc --explain E0282`.
error: could not compile `time` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `llm-ls v0.5.3 (https://github.com/huggingface/llm-ls#59febfea)`, intermediate artifacts can be found at `/var/folders/l7/q2h2fyb5279gggx0f758mzr40000gn/T/cargo-install4kGtfm`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
jfvillablanca commented
Following this issue. llm-ls
in nixpkgs
is currently broken.