-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
Apple Silicon support in Homebrew #10152
Comments
This comment has been minimized.
This comment has been minimized.
Just to confirm my understanding here, the Homebrew (the package manager) software itself is M1 ready, the installer script is pending Homebrew/install#373, and then there will be subsequent packages that require some hand-holding, however for the ~70% of packages out there that are ARM ready will be good to go with that MR? There is a TON of info flying around and want just to verify understanding. |
This comment has been minimized.
This comment has been minimized.
@AddoSolutions yes, that sums it up nicely. We will communicate more clearly on this, in the next few days, through an official announcement. @Mushroom if you could sort out Qt, you'd be a hero :) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This may be off-topic but it is not clear how to install brew safely on an M1 machine to run both Rosetta 2 and arm64 versions of brew packages. I already have brew running under Rosetta2. Running installation script natively, gives
The instructions on alternate installation are unclear-it merely states what not to do, rather than what to do step by step. |
@sunilshah The installer will be ready in a couple of days: Homebrew/install#373 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Thanks for the response. Please let me know when I should try the native installer. |
@sunilshah, if you don't want to wait, you can also use the untar method of installation. This is what I have been using, and it has worked well - it essentially does what the installer script does, but manually.
After Homebrew installs, make sure to add |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@briandunn we don't bottle |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Are you sure the issue isn't in |
YADM bootstrap is just calling a shell script, which is in turn calling |
Probably an issue in |
@shaunsingh should be fixed by Homebrew/homebrew-bundle#988 |
I've recently ran into issues with the |
@emeraldsanto Never heard of/seen that before. |
You're right, upon running Good news is I can now use that workaround when needed, thanks! $ brew doctor
Your system is ready to brew. $ brew -v
Homebrew 3.3.2-2-gb14078a
Homebrew/homebrew-core (git revision 63c932f6434; last commit 2021-10-31)
Homebrew/homebrew-cask (git revision 90dba73132; last commit 2021-11-01) |
I'm having a problem where Xcode build phase scripts do not pick up the home-brew path, despite the Update: I was able to work around the issue by adding a symlink to the executable I needed in |
@mgrider, you might want to read the Startup/Shutdown Files section of the zsh man page. |
Thanks @gromgit, I appreciate the thought, but I don't think that's it. I have some prompt stuff in Also worth noting that brew-installed commands work perfectly from my interactive shell, just not from Xcode build phase scripts. I have verified that the brew install path isn't present in |
Does anything you set in
Try not to do too much of this, as this can confuse |
How did you verify that last bit (that your scripts are actually run with zsh)? If you add the following lines to your build scripts:
what's the output you get when running them through Xcode? |
I can successfully build and test |
It still fails to build, unfortunately. |
This is the build log on my local M1 Air of |
Hi @gromgit, I had just used
...clearly indicating that perhaps the script is actually running as bash. After this revelation, I added the requisite brew eval to a |
That is likely the core issue, since Try the following in order, stopping when one of them produces the results you seek:
|
Can you say more about this? What are the possible consequences of this? |
This comment has been minimized.
This comment has been minimized.
@meridsa that's an issue with either your network connection or system configuration. Check Homebrew/discussions#666 for related errors and solutions/workarounds. |
I can't say too much about it, as I never really looked into it. The only thing I know is that a user did something similar and reported very weird errors from |
Can we close this? There are still formulae to be bottled; but this is better handled/tracked in homebrew-core. I think all the actions on the brew side are done. |
Yeah this has turned into a support forum. If anyone needs to ask a question or get help, post at https://github.com/Homebrew/discussions/discussions instead. If anyone spots a formula which builds from source but isn't bottled, then open an issue in homebrew-core. Recent CI changes however mean we're automatically check this on every new formula version, so a lot less slip through. |
Current status
We now have a majority of our formulas bottled for Apple Silicon: 70%. However, not all software is ready for ARM processors on macOS, and since we ship what upstream releases, there will be some formulas that take a long time to be fixed, have a new release… and some which will never support ARM.
Our level of support is this: Homebrew strives to ship ARM bottles for software that does support ARM. We can't fix every software that's out there, and we won't accept feature requests like “formula Z does not support ARM can you fix it”. The most useful way you can help that software work on ARM is to open a bug report with the software developers.
What formulas are supported? The ones that have an ARM bottle, i.e. an
arm64_big_sur
line in the bottle block. You can also check online at https://formulae.brew.shHow you can help
brew install -s foo && brew test foo
both work), please leave a comment below to let us know and we'll try building a bottlebrew bump-formula-pr
Also:
Current major blockers
We know these are not currently working, and are widely used. We are tracking their developers' progress and will be incorporating them as soon as possible:
PS: We had a previous gigantic issue tracking our work in previous months (before we roll out official support) at #7857 If you're trying to build something from source, be sure to go check there if someone has tried before you :)
The text was updated successfully, but these errors were encountered: