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

hashbrown fails to compile on avr architectures because target_pointer_width is 16 #352

Closed
mutantbob opened this issue Aug 19, 2022 · 2 comments · Fixed by #368
Closed

Comments

@mutantbob
Copy link

I am porting an embedded app to AVR, and hashbrown is giving me several compile errors:

error[E0433]: failed to resolve: use of undeclared type `GroupWord`
  --> /home/thoth/.cargo/registry/src/github.com-1ecc6299db9ec823/hashbrown-0.3.1/src/raw/generic.rs:33:18
   |
33 |     let repeat = GroupWord::from(byte);
   |                  ^^^^^^^^^ use of undeclared type `GroupWord`

error[E0425]: cannot find value `K` in this scope
  --> /home/thoth/.cargo/registry/src/github.com-1ecc6299db9ec823/hashbrown-0.3.1/src/fx.rs:41:69
   |
41 |         self.hash = self.hash.rotate_left(5).bitxor(i).wrapping_mul(K);
   |                                                                     ^ help: a local variable with a similar name exists: `i`

it appears hashbrown has cfg checks based on target_pointer_width, but no clause cover the 16-bit pointer case (AVR has 16-bit pointers)

@mutantbob
Copy link
Author

This problem appears to be fixed in recent versions. hashbrown was a dependency of another crate that was locked to ^0.3

@mutantbob
Copy link
Author

OK, the K is fixed, but GroupWord seems to still be missing.

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

Successfully merging a pull request may close this issue.

1 participant