-
Notifications
You must be signed in to change notification settings - Fork 111
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
git-annex isn't available on M1 Macs #5701
Comments
FWIW, filed datalad/git-annex#61 to eventually/hopefully provide a native build (if that is what is needed) |
thanks! |
I vaguely recall @yarikoptic reporting that this was fixed... Did I dream this, or is there indeed git-annex for M1 macs now? |
I think its ok to close this issue. It does not so much belong into datalad, and while not optimal, there are some ways to get git-annex for M1 users. Its apparently possible to use it via Rosetta2, and homebrew (which has become available for M1 macs) has bottled all git-annex dependencies. Maybe it even bottles git-annex itself soon. |
When I do this step I just get any idea on how to fix this? |
I personally have no idea, and also no hardware to try this myself. Sadly, brew also hasn't bottled it up: https://formulae.brew.sh/formula/git-annex#default. I'll reopen the issue in hopes of someone with M1/mac experience to come by. |
Saving a collection of links from the chat on updates with brew (sadly, no steps forward): judging from Homebrew/brew#7857, the brew team has troubles to bottle the haskell compiler (but that list may be outdated, because it looks like there is a formula: https://formulae.brew.sh/formula/ghc). As far as I know, Rosetta2 is the official way to get support for x86-64 applications when there is no Apple Silicon alternative. |
to contribute I guess we would need some M1 box. I guess I could buy one (and provide ssh access), or here are some virtual providers:
update1: macstadium gave us an instance for an open source project. Waiting for details on setup |
Hi there -- I've tried a few times to get git-annex built on M1 macOS: Homebrew/homebrew-core#88995, Homebrew/homebrew-core#93863 Homebrew CI always attempts to build a binary package on version bumps, so you'll see several other attempts here: https://github.com/Homebrew/homebrew-core/pulls?q=is%3Apr+is%3Aclosed+in%3Atitle+git-annex The build invariably fails with an error like
I don't really understand why, since I also saw a suggestion in the GHCUp repo to export the environment variable I have one last idea, and if that fails, I'll try to crank up the verbosity of the build. I know Homebrew well, but know next to little about Haskell, so I'll need a little help here if I'm still unsuccessful. Many other Haskell builds on M1 require an LLVM installation (they fail when it's not available), but none of the others fail in this way, so I'm not really sure what the problem is here. I recall a user having reported being able to successfully build git-annex from source using Homebrew on M1 macOS, though. |
So I tried setting I then upped the verbosity of the logs. It didn't get much more informative than
which isn't helpful. Still, here's the log in case I missed something: arm.log.tar.gz (N.B. ~14M uncompressed) @angerman, if you don't mind taking a look at this, I'd appreciate it. |
Thank you @carlocab for taking a stab at it! |
Also from my side thanks a lot for looking in to it, @carlocab! |
@yarikoptic could you add information on the new virtual M1 mac somewhere (sorry if I missed this)? |
Where? Do you want access @adswa ? |
yes please. @mslw probably too? |
Yes, I'd be interested - not immediately, but I'd happily give it a try in the near future. |
linking issue in datalad/git-annex: datalad/git-annex#61 (comment) : @jwodder:
|
I had a few minutes and tried to build git-annex on that M1, here's what I did so far: Then I went for
Based on
I checked the LLVM version.
I'm not sure what "is not symlinked" means in practice. It seems the system has it installed (if
but adding any of those paths into |
GHC does not work with LLVM 13. You need to |
thanks much! |
I just wanted to provide one more data point. Today I managed to install git-annex painlessly with homebrew, running brew install --build-from-source git-annex it took about 25 minutes, but then |
Yes, we've had reports at Homebrew about users being able to build git-annex successfully from source. Unfortunately, it does not work in our CI for some reason. |
Just an FYI: the git-annex build for M1 macOS was fixed recently at Homebrew, so you can now do It seems the issue was a process leak in GHC 8.10. We were able to build git-annex successfully using GHC 9.2 (+ some patches). |
This is great news, thanks for the update @carlocab ! I think we can close this issue now. |
I don't have a machine to verify or test this, but a group of M1 Mac users just reported that they can't install git-annex. The workaround that they found is recorded here. To cite the relevant parts:
The text was updated successfully, but these errors were encountered: