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

Bazel fails to build the project on Apple silicon processors #1593

Closed
claydiffrient opened this issue Nov 27, 2023 · 2 comments · Fixed by #1790
Closed

Bazel fails to build the project on Apple silicon processors #1593

claydiffrient opened this issue Nov 27, 2023 · 2 comments · Fixed by #1790
Labels

Comments

@claydiffrient
Copy link
Contributor

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.

@ashish10alex
Copy link
Contributor

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.

@Ekrekr
Copy link
Contributor

Ekrekr commented Apr 4, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants