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

Open
claydiffrient opened this issue Nov 27, 2023 · 2 comments
Open

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

claydiffrient opened this issue Nov 27, 2023 · 2 comments
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

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.

@Ekrekr Ekrekr added the bug label Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants