-
Notifications
You must be signed in to change notification settings - Fork 565
Add Darwin-arm64 support for the nodetime
pkg
#873
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
Comments
yes, I would :) |
There is now an additonal question:
|
Working on this here: |
nodejs (itself) takes a very long time to compile on rpi :P |
Oh, why do we compile it on a Pi? Zeit pkg should be able to do it on an AMD machine. |
Got it. Will work from my mac in that case. |
This requires a cross-compile setup. We can have one, but it takes a minute, unless you know something I do not. I've got linux-arm64 complete, but still need to get finished with darwin-arm64. There aren't pre-built packages for linux-arm64 and darwin-arm64 the way there are for linux-x64 and darwin-x64. |
We end up in a funny spot. Few systems will be able to build for all targets. For now I am going to take out the macos-arm64 target and if anyone has an m1 cpu they can do the build, and push the resulting binary. I think that we now have Linux arm 64 support Otherwise, the solution really looks like building a cross compile tool chain and I've built those.... It takes time. of course since we want the entire thing to be able to built from source by anybody, anywhere at any time, eventually we will need to bake in a cross compile toolchain.
|
@ilgooz let me know please if I'm missing something that seems obvious to you. From where I'm standing, being able to build for all targets from a Mac, for example, will require the creation of a cross compile tool chain, and the addition of a script for that to the repository. |
Success! (for linux-arm64 only)
|
nodetime
pkgnodetime
pkg
Changed the topic as we should still try to cover the M1 cpus |
@faddat please, reopen, if you plan to work on this. |
I would love to but I need access to an m1 CPU. I just built my new machine and it is decidedly not an Apple thing. |
@fadeev silly of me not to mention that I support the Can address this / look into: For approx this: 43,990,000 Vietnamese dong equals 1,908.13 United States Dollar https://cellphones.com.vn/macbook-pro-2020-13-inch-touch-bar-m1-16gb-512gb.html Or this: 28,900,000 Vietnamese dong equals 1,253.68 United States Dollar No idea if this is the right way to propose this; figure that the value for money exists. |
Hey @ilgooz I can help with this one but I need a little help on the node side. Where are these gz coming from? Do I need to add it manually or is there a script that downloads them? Please see the follow draft PR to make sure I didn't miss the necessary changes #1118 It looks like node 14 is not available as a package and I'm not sure it can be built for mac arm since it's only officially supported since version 16. Would upgrading be an option? ------ Progress --------
I see what went wrong here ^^ Bumping pkg version to |
See #1116 for more info. |
#1187 continues this. It is getting close, down to a single typescript error. |
Closing in favor of #2130. |
Right now only x64 is supported.
https://github.com/tendermint/starport/blob/fd2abefd165325180efe43e585ff4c0bbd84090e/scripts/data/gen-nodetime/package.json#L9
The script needs to be updated to place the gzipped tarbal and an ARM target needs to be added here for conditional builds.
Also see zeit/pkg#targets.
This issue needs to be resolved in order to Starport's ARM releases work.
nodetime
pkg is used to build js clients from proto. Please add the following to yourconfig.yml
and runstarport build
. Command should successfully get executed on ARM once it is supported, right now it should be failing.@faddat would you like to take this one?
The text was updated successfully, but these errors were encountered: