-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
dev-infra: can't build project or run dev-app on MacBooks with m1 CPUs #23983
Comments
As stated offline:
Though:
just a summary of what I found already when I worked with M1 |
Any news on this issue? |
@pkirchniawy nope, I still get the same errors as above when using the latest I went to the link in the error, but I'm not familiar enough with |
I guess that this might be the specific steps that need to be done to use your own locally built |
Unfortunately, that didn't work for me as the local build failed since the
What version of bazel does this build expect? It seems like others are using 4.2.1 in other issues, so I think that this version might be okay? It looks like this
These issues (and an associated issue in a dependency) have been open since November 2021 and there doesn't appear to be anyone working on them. |
There is a PR open against bazel-watcher to add m1 mac support: bazelbuild/bazel-watcher#496. It could use some reviews. |
Also wanted to mention that I will be using M1 only for the next couple of weeks/and potentially months (as I had to move without my Windows machine). So I'm sure we'll be able to get to this very soon. Still want to mention though that I think the majority of workflows should work. The key really is currently using Bazel globally, and avoiding ibazel (or using a custom build) |
I was able to build ibazel locally based on the pr branch, but when running ´yarn dev-app´ it is still using ibazel from the npm package installed. Even after setting ibazel into the PATH and running the dev-app script directly in the terminal it shows me echo $PATH gives me this paths: Any suggestions? |
@pkirchniawy you could run ibazel directly. e.g. |
Thanks! I've already tried that. But ibazel is not a valid command. After compiling it locally, I struggle with setting the PATH right. (https://github.com/bazelbuild/bazel-watcher#compiling-yourself). So when I type ibazel run, it tells me command not found: ibazel. |
interesting, that indicates that |
|
|
If I bump Line 89 in 3deca24
to
|
Had the same issue @Splaktar. Made it work for me following these steps.
Hope this helps. |
I'm trying to make a change to #24657. However,
Based on @kevinpauer 's comment above I tried manually updating
I'm unsure how to proceed from here. |
@RobertAKARobin thx for the details. I think your branch is outdated and would need a rebase. We updated both the bazel-watcher and Bazel already to an M1 compatible version. |
That worked, thanks! |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
What are you trying to do?
I've switched to an m1Max MacBook Pro as my main device now.
I've got Bazel 4.2.1 installed locally, but the build seems to be trying to install Bazel 4.0.0 and failing.
What troubleshooting steps have you tried?
Setting my
BAZEL
environment variable as discussed in angular/angular#40498 (comment). This fixed Bazel builds for Framework, but not Components.Reproduction
Steps to reproduce:
Environment
/opt/local/bin/bazel
The text was updated successfully, but these errors were encountered: