Skip to content
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

No native build on apple silicon m1 #37

Open
stefanodecillis opened this issue Apr 27, 2021 · 8 comments
Open

No native build on apple silicon m1 #37

stefanodecillis opened this issue Apr 27, 2021 · 8 comments

Comments

@stefanodecillis
Copy link

Hi,

I'm getting this error:

No native build was found for platform=linux arch=arm64 runtime=node abi=93 uv=1 armv=8 libc=glibc node=16.0.0 seeder_1 | loaded from: /app/webtorrent-pocp/node_modules/utp-native

There is a version of this package running on arm64?

@mafintosh
Copy link
Owner

I'm using in my M1. Looking at the error, are you on linux?

@stefanodecillis
Copy link
Author

Thank you for the fast reply! I'm on m1 but I'm using Docker

@mafintosh
Copy link
Owner

Ah I see. I guess we need to add a prebuild for Linux M1 then. Is it easy to get Docker running on the M1 now? Since there is no M1 support on Actions yet, I've been doing the M1 builds myself.

@stefanodecillis
Copy link
Author

How do you do your own M1 builds?
Tbh now docker works really good on M1. There are few stupid bugs (happend twice in one month) and I'm not facing problems with containers. This was my first problem

@mafintosh
Copy link
Owner

Oh nice, I'll try to get it setup when I have some free time. To build it do:

git clone git://github.com/mafintosh/utp-native
cd utp-native
npm run fetch-libutp
npm install
npm run prebuild
rm -rf build
npm test # to see that it works

If the build works we can add it to the releases :)

@stefanodecillis
Copy link
Author

I'm trying to do that procedure but I get timed out running fetch-libutp. Not sure if it's a problem of permissions

@mafintosh
Copy link
Owner

mafintosh commented Apr 27, 2021

Weird. You just have to clone https://github.com/mafintosh/libutp inside deps/libutp

@stefanodecillis
Copy link
Author

Yeah but it tries to download it with git (and not with http) so "probably" it goes timed out for the permissions on the repository. I will try today to clone the directory with http without using npm run fetch-libutp and then try again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants