-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
Build fails on Node 16.4 ARM M1 #305
Comments
Indeed, we build for ARM64 and for OS X but not for OS X on ARM64 together. I don't even think it is feasible, as GitHub Actions run on x86 and the run-on-arm64 action does not support OS X. For the time being, you will have to rebuild from sources. |
There's an open issue for M1 support on github actions: actions/runner-images#2187 It looks like there hasn't been any updates on it since December of last year. |
so any updates about arm64 ? |
anything? |
Anything? |
To solve this problem, I downgrade my node version to v14 by using nvm :
|
any news ? Rebuild from source does not work unfortunately. |
Still fails on node v16.7.0 |
No development from Github on supporting M1 for Actions, so no progress on this issue yet :( |
The package sharp has an ARM build, it says MacStadium but maybe you can try it out? You can checkout the commit here: lovell/sharp@21d1a7c Also seems like MacStadium is supporting open source projects! https://www.macstadium.com/opensource |
Thanks for all the hard work @ranisalt! Any update on this? Any possibility this could accelerate the timeline? Looks very promising and apparently usable today. hkratz/gha-runner-osx-arm64#2 Collection of some other related threads: gitx/gitx#289 Currently |
@slapbox definitely, will keep track of these in order to support ARM64 OS X as soon as possible. |
Note on node-gyp fails. Apparently, I've been using my old |
This still doesn't install on M1 Macs a year later. I hope that this is given a higher priority. In the meantime I guess I'll use bcrypt. |
@Tenpi in theory you should be able to build the package from source on M1 machines. It's really just those of us without M1 machines that are out of luck for now. |
You should be able to install it from source as @slapbox mentioned. It is a priority to get it working decently on every major platform but this project doesn't really have the resources to do so swiftly :( |
M1 chips have made trouble for many projects. It's hardly something Is there anything the users of this project can do to help accelerate the process? |
Donate a M1 to me so I can work around that 😆 but seriously, I applied to MacStadium as per @partyconfetti suggestion, and hopefully the workflow used by sharp can be just copy-pasted. |
Compiling arm64 images for Darwin (Mac) is also possible on intel with cross compilation. Check some of the other projects that does that already, like: https://github.com/lovell/sharp-libvips/blob/main/.github/workflows/build-release.yml How it is done: lovell/sharp-libvips#74 |
@ranisalt - Does this get us any closer? actions/runner#1618 (comment) |
@ranisalt did you ever hear back about your MacStadium application? Any news on this generally? I hate to keep bumping this thread, but I also dislike that our installer size is 500mb for macOS users (certainly not saying that's your fault - I am very grateful for your work.) I'm eagerly anticipating the day |
@slapbox I got an approval from MacStadium a couple of days ago, but I'm on vacation for this week, after that I'll be able to work on it - and it shouldn't be very long since you guys helped a lot already :) If you prefer, you can open a pull request configuring it and I will set up the token when needed. |
If you can afford to upgrade, using Node 18.1.0 fixed the issue for me. Rebuilding from source wasn't doing the trick. |
Any updates @ranisalt? Not to rush you of course; I super appreciate that you even shared this project to begin with! A few macOS users are dismayed at the giant size of the dual-architecture installer we're distributing in the meanwhile which got this back on my radar. If I had any experience with MacStadium I'd be happy to help with a PR, but sadly I haven't got a clue. |
@slapbox I'm working on that now on the macos-m1 branch. MacStadium has answered me |
Here we go! Please help me test v0.29.0 |
Thank you so much for your outstanding work @ranisalt! I finally got a chance to give this a try and it's looking great! |
Macbook Pro M2 2022 user here - still getting following error: I tried it with using v0.29.0 but sadly it didn't work, even with v0.29.1 Fixed this by changing my architecture with following commands (using nvm):
It should install (depending on your system) |
@necm1 this is an upstream issue, it is @mapbox/node-pre-gyp that decides what prebuilt to install. Can you open an issue there and link back so we can track it? |
Standing by to smash the thumbs up button on that issue when you've created it @necm1. |
Updating to 0.29 (you can force sub lib to use 29 with override directive in package.json) worked like a charm, thanks. |
Still seems to be failing? I notice homebrew has an argon2 install available for M1 silicon. Wondering if I can install that and somehow it works in my Elixir apps... in the meantime latest attempt to build:
Which is a really strange error at this stage...
|
@buildreactive wrong repository? This one has nothing to do with Elixir or Erlang |
It's not an Elixir issue, it's a build issue related to argon2 (so... ya, maybe wrong repo? At first I thought this was the old "won't build M1" issue). But updating here with solution anyhow. Problem started when I added argon2 as a project dependency. Pulling in argon2 generates an error, and the error seems to be saying "you need a C compiler to compile argon2." (Which is silly, and a misdiagnosis, since I have a C compiler). So... After a good bit of digging and experimenting... I found the problem is caused by having a space in the project path. Moving the project to a new path (with no space) fixes it – and all builds just fine now. So... workaround: Don't use spaces. Ultimate fix(?): Find out why the build fusses over a space? |
Never using spaces in a project's path is generally good practice because it's just not worth the headaches that spaces can cause. |
@buildreactive report that at riverrun/argon2_elixir, this repo is for the Javascript bindings for Argon2 |
FOUND! I found a solution. in my m2 pro cpu device after running Error occurs because of that if you use python 3.12+ Dont ask me whats the relation between argon and python. I dont know. I saw ModuleNotFound error on argon installation. |
I note there are new ARM builds but trying
yarn add argon2
fails on my system.Big Sur 11.3
Node v16.4.0
The text was updated successfully, but these errors were encountered: