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

Compile error on aarch64 in version 0.8.4 #170

Closed
PureWhiteWu opened this issue Oct 23, 2023 · 4 comments · Fixed by #171
Closed

Compile error on aarch64 in version 0.8.4 #170

PureWhiteWu opened this issue Oct 23, 2023 · 4 comments · Fixed by #171

Comments

@PureWhiteWu
Copy link
Contributor

PureWhiteWu commented Oct 23, 2023

error[E0423]: expected function, found macro `transmute`
   --> /Users/purewhite/.cargo/registry/src/rsproxy.cn-0dccff568467c15b/ahash-0.8.4/src/operations.rs:128:15
    |
128 |         xor ^ transmute::<_, u128>(vaesmcq_u8(vaeseq_u8(value, transmute!(0u128))))
    |               ^^^^^^^^^^^^^^^^^^^^ not a function
    |
help: use `!` to invoke the macro
    |
128 |         xor ^ transmute::<_, u128>!(vaesmcq_u8(vaeseq_u8(value, transmute!(0u128))))
    |                                   +
help: consider importing one of these items instead
    |
1   + use core::mem::transmute;
    |
1   + use std::mem::transmute;
    |
1   + use zerocopy::macro_util::core_reexport::mem::transmute;
    |

error[E0423]: expected function, found macro `transmute`
   --> /Users/purewhite/.cargo/registry/src/rsproxy.cn-0dccff568467c15b/ahash-0.8.4/src/operations.rs:161:15
    |
161 |         xor ^ transmute::<_, u128>(vaesimcq_u8(vaesdq_u8(value, transmute!(0u128))))
    |               ^^^^^^^^^^^^^^^^^^^^ not a function
    |
help: use `!` to invoke the macro
    |
161 |         xor ^ transmute::<_, u128>!(vaesimcq_u8(vaesdq_u8(value, transmute!(0u128))))
    |                                   +
help: consider importing one of these items instead
    |
1   + use core::mem::transmute;
    |
1   + use std::mem::transmute;
    |
1   + use zerocopy::macro_util::core_reexport::mem::transmute;
    |

For more information about this error, try `rustc --explain E0423`.
error: could not compile `ahash` (lib) due to 2 previous errors

env:

rustc 1.75.0-nightly (42b1224e9 2023-10-15)
macOS 14.0 with Apple Silicon
PureWhiteWu added a commit to PureWhiteWu/aHash that referenced this issue Oct 23, 2023
@PureWhiteWu PureWhiteWu changed the title Compile error on 0.8.4 Compile error on aarch64 in version 0.8.4 Oct 23, 2023
@momodi
Copy link

momodi commented Oct 23, 2023

I got this error, please revert 0.8.4 to 0.8.3

@blackm00n
Copy link

@tkaitchuck could you please yank 0.8.4

@Tails
Copy link

Tails commented Oct 23, 2023

This worked for me:

 cargo update ahash@0.8.4 --precise 0.8.3

@joshlf
Copy link
Contributor

joshlf commented Oct 23, 2023

A fix has been uploaded: #171

facebook-github-bot pushed a commit to facebook/buck2 that referenced this issue Oct 23, 2023
Summary: tkaitchuck/aHash#170

Reviewed By: lmvasquezg

Differential Revision: D50553125

fbshipit-source-id: d25115a99097dd017dc6da382b4b69963eb32766
tkaitchuck added a commit that referenced this issue Oct 23, 2023
compile fail on aarch64

Co-authored-by: Joshua Liebow-Feeser <joshlf@users.noreply.github.com>
Co-authored-by: Joshua Liebow-Feeser <joshlf@users.noreply.github.com>
Co-authored-by: Tom Kaitchuck <tkaitchuck@users.noreply.github.com>
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.

5 participants