Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cross-compilation error: could not compile h2 (lib) #134

Open
chrysos349 opened this issue Oct 15, 2023 · 0 comments
Open

cross-compilation error: could not compile h2 (lib) #134

chrysos349 opened this issue Oct 15, 2023 · 0 comments

Comments

@chrysos349
Copy link

Hi, I'm trying to cross-compile your app for aarch64, but get the error below

error[E0107]: struct takes 3 generic arguments but 2 generic arguments were supplied
  --> /host/cargo/registry/src/index.crates.io-6f17d22bba15001f/h2-0.2.7/src/proto/streams/store.rs:15:10
   |
15 |     ids: IndexMap<StreamId, SlabIndex>,
   |          ^^^^^^^^ --------  --------- supplied 2 generic arguments
   |          |
   |          expected 3 generic arguments
   |
note: struct defined here, with 3 generic parameters: `K`, `V`, `S`
  --> /host/cargo/registry/src/index.crates.io-6f17d22bba15001f/indexmap-1.7.0/src/map.rs:76:12
   |
76 | pub struct IndexMap<K, V, S> {
   |            ^^^^^^^^ -  -  -
help: add missing generic argument
   |
15 |     ids: IndexMap<StreamId, SlabIndex, S>,
   |                                      +++

For more information about this error, try `rustc --explain E0107`.
error: could not compile `h2` (lib) due to previous error
warning: build failed, waiting for other jobs to finish...

Any help?

@chrysos349 chrysos349 changed the title cross-comilation error: could not compile h2 (lib) cross-compilation error: could not compile h2 (lib) Oct 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant