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
Homebrew and Apple Silicone (M1) #88
Comments
Not really, unless someone funds it. We're doing the Intel build on a loaned Mac book which can disappear any minute. That was initially termed "experimental", and it's not notarised either. Apparently you can get Mac M1 in the cloud. https://aws.amazon.com/ec2/instance-types/mac/. |
Thanx for the quick reply. It would be a shame if this project for the Apple and Homebrew community failed because of this. Maybe I could help or compile it myself? |
What help did you have in mind? At a guess, we should compile the binaries we distribute yourselves. You have an M1/2 machine? Did you compile there successfully? |
I could compile it myself on a M1, but didn't try it right now. I skimmed through your build.sh and https://firefox-source-docs.mozilla.org/setup/macos_build.html, and it didn't seem too complicated, but maybe that's just naïve. |
With no updates for 7+ months - just wondering if anyone has been able to successfully build a version with native Apple Silicon support? (if so, could you post a link? 😅) |
We don't have the hardware, and BTW, the Intel Mac we use to compile is only on loan and can be withdrawn any day. Other than that, compiling shouldn't be a problem. It could even be done in the cloud via AWS: Last we checked, only 2% of users were on Mac, unclear how many of those were on M1/M2. |
This is sometimes a chicken-and-egg problem. 🐔 But I understand your point of view. |
We will use GitHub actions soon (#173). According to |
Seems like Github Actions can be used with m1 runners now |
Thanks for letting us know. Sadly, building on Mac only works for the "full build from repo", not the "reduced build from source tarball" which we prefer, see Issue #175. Upstream report here: They did answer here: @sagudev could you look into it again? |
Just here to throw my hat in, would love to see apple silicon builds |
Sure, see the comment before yours. |
So I tried compiling on an M2 mac. In mozconfig-Mac I changed/added: Building fails with: Any idea what can be done? ld does not support --version on mac |
We got same thing in mozjs, one solution is to set default linker to lld-classic or to clang's lld or apply this patch: https://github.com/servo/mozjs/blob/main/mozjs-sys/etc/patches/0029-fix-ld64-detection.patch |
changed to clangd's lld. works. Thanks @sagudev |
Has that been reported upstream at Mozilla. They build FF/TB for M1/M2, so why don't they have the issue? Or are they doing only cross-compiles for Mac on Linux? |
Mozilla is using their own toolchains (clang) using |
Found relevant bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1871153 |
Thanks. Maybe we should just add the patch to the project, I guess it won't break the other builds 😉 |
Nice Project!
I finished a Homebrew Cask for Betterbird but didn't push it to the Homebrew repo since there is no Apple Silicone version of BB. Are there any plans or options for a M1 build?
The text was updated successfully, but these errors were encountered: