dataform icon indicating copy to clipboard operation
dataform copied to clipboard

Bazel fails to build the project on Apple silicon processors

Open claydiffrient opened this issue 1 year ago • 2 comments

When doing a few recent contributions, I was unable to build the project on my normal M1 Macbook and instead had to use an older Intel Mac to run the build.

The error I received was:

ERROR: ~/dataform/sandbox/vm/BUILD:42:14: While resolving toolchains for target //sandbox/vm:compile: no matching toolchains found for types @build_bazel_rules_nodejs//toolchains/node:toolchain_type
ERROR: Analysis of target '//cli:cli' failed; build aborted:

I believe that updating to a newer version of rules_nodejs will fix it similar to this issue.

Sadly, I don't have the bandwidth to do such an upgrade at the moment, but wanted to at least make sure there was an issue filed in case someone else can do it.

claydiffrient avatar Nov 27 '23 17:11 claydiffrient

Having the same issue when trying to build using Bazel on M2 Mac. I tried updating the config but ended up in dependancy hell CleanShot 2024-02-22 at 13 07 55@2x

Would highly appreciate if someone could update the WORKSPACE config required to make this work on Apple Silicon.

ashish10alex avatar Feb 22 '24 13:02 ashish10alex

I think a bunch of our dependencies are older than the release of the M1 instruction set 😅 so this is unsurprising.

Bumping our dependencies will probably fix that, but that's a fairly painful process. It's already on the radar though, so this may be fixed in the next couple months.

Ekrekr avatar Apr 04 '24 09:04 Ekrekr