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

Hawkeye plugin needs -flax-vector-conversions flag to build with gcc on aarch64 #598

Open
risicle opened this issue Nov 8, 2024 · 0 comments

Comments

@risicle
Copy link
Contributor

risicle commented Nov 8, 2024

Building 4.4.1 on aarch64-linux with gcc 13 results in:

/build/source/plugins/hawkeye/src/sbox_database.cpp: In function 'smallset_t hal::hawkeye::{anonymous}::smallset_init_full(u32)':
/build/source/plugins/hawkeye/src/sbox_database.cpp:868:56: error: cannot convert '__Uint64x2_t' to 'uint32x4_t'
  868 |                     return {vsetq_lane_u32(0xFFFFFFFF, tmp, 0), vdupq_n_u64(0)};
      |                                                        ^~~
      |                                                        |
      |                                                        __Uint64x2_t

etc. ad nauseum.

I'm guessing this is because you've generally been building using LLVM on aarch64, which appears to have -flax-vector-conversions enabled by default. But gcc doesn't. Builds fine with that flag added.

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