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

Compatibility issue while installing emsdk 2.0.24 with M1 Mac #1330

Open
char0n opened this issue Jan 4, 2024 · 3 comments
Open

Compatibility issue while installing emsdk 2.0.24 with M1 Mac #1330

char0n opened this issue Jan 4, 2024 · 3 comments

Comments

@char0n
Copy link

char0n commented Jan 4, 2024

Hi everybody,

When installing v2.0.24 on M1 Mac I'll get the following:

image

Specifically this is what is happening under the hood:

12.84 Error: Downloading URL 'https://storage.googleapis.com/webassembly/emscripten-releases-builds/linux/6ab7fc5622a67e6111d07c4ba61c8d3c8fc33ed2/wasm-binaries-arm64.tar.xz': HTTP Error 404: Not Found
12.84 error: installation failed!
12.85 Unpacking '/tmp/emsdk/downloads/node-v16.20.0-linux-arm64.tar.xz' to '/tmp/emsdk/node/16.20.0_64bit'
12.85 Done installing tool 'node-16.20.0-64bit'.
12.85 Installing tool 'releases-6ab7fc5622a67e6111d07c4ba61c8d3c8fc33ed2-64bit'..

As far as I understand from #671, this should be available since 2.0.21.

@sbc100
Copy link
Collaborator

sbc100 commented Jan 4, 2024

It looks like emsdk is trying to install the linux version? My guess is that you are trying to install on a linux VM running on your mac M1 hardware?

The ticket you refer to (#671) is refering to native macOS support for installing on arm64 (M1). The issue around running emsdk on arm64 is somewhat more complicated. Those images are built and uploaded on a best-effort bases and not all versions are available. You can use emsdk install latest-arm64-linux to install the latest available version (which currently looks like it is 3.1.47).

@char0n
Copy link
Author

char0n commented Jan 5, 2024

Hi @sbc100,

It looks like emsdk is trying to install the linux version? My guess is that you are trying to install on a linux VM running on your mac M1 hardware?

Exactly

Those images are built and uploaded on a best-effort bases and not all versions are available.

That's unfortunate.

You can use emsdk install latest-arm64-linux to install the latest available version (which currently looks like it is 3.1.47).

Unfortunately I cannot. We're currently pinned to v2.0.24 because of our tree-sitter. The only YAML grammar for tree-sitter out there works properly only on a specific combination of tree-sitter version and emsdk.

@sbc100
Copy link
Collaborator

sbc100 commented Jan 5, 2024

Can we work with you to help fix the issues you are having with more recent versions of emsdk?

Sadly linux arm64 support didn't exist at all back in v2.0.24

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