Closed jsphweid closed 9 months ago
Hi, it indeed looks like the build file is not deciding to include the hh_neon target.
We base this on "@platforms//cpu:arm64": [],
. I'm not very familiar with Bazel's platform detection; is there something else we should be checking for M1?
Thanks for the quick response. I'm not too familiar with this stuff either outside vanilla usage. Here's what I found.
If I change "aarch64" here to "darwin_arm64" instead, it works. I think that's what I'll do. I'm not immediately sure whether this is a general problem or one somehow related to my setup.
I found I could also define that config_setting with constraint_values instead in which case ["@platforms//cpu:aarch64"]
, ["@platforms//cpu:arm64"]
and probably others work as well.
Potentially related: https://github.com/bazelbuild/bazel/issues/15175.
Thanks for letting us know :)
Is this expected to build on Mac M1?
When using riegeli, it seems to have issues compiling highwayhash.
I have no issues on my x86 ubuntu machine. But the above is what I get on mac. I'm not immediately sure why it can't find these definitions, although I suspect it has to do with some potential weirdness in highwayhash.BUILD -- something with
highwayhash/highwayhash_target.cc
where I believe those definitions are located -- it's being included in textual_hdrs which seems odd (ex. https://github.com/google/riegeli/blob/master/third_party/highwayhash.BUILD#L178).Would be curious if anyone else on M1 has this issue.