Older version of emsdk fails to install

486 views
Skip to first unread message

Amit Sharma

unread,
Sep 26, 2021, 11:14:10 PM9/26/21
to emscripten-discuss
Hi there - 
Trying to install an older version of the sdk on a M1 ARM Mac. 

./emsdk install sdk-1.40.0-64bit
The installation fails here:

Installing tool 'releases-upstream-edf24e7233e0def312a08cc8dcec63a461155da1-64bit'..

Error: Downloading URL 'https://storage.googleapis.com/webassembly/emscripten-releases-builds/mac/edf24e7233e0def312a08cc8dcec63a461155da1/wasm-binaries-arm64.tbz2': HTTP Error 404: Not Found

error: installation failed!


Can you please help.

thanks

Am


Shlomi Fish

unread,
Sep 27, 2021, 1:19:14 AM9/27/21
to Amit Sharma, emscripte...@googlegroups.com
Hi Amit!

On Sun, 26 Sep 2021 20:14:10 -0700 (PDT)
Amit Sharma <amitsh...@gmail.com> wrote:

> Hi there -
> Trying to install an older version of the sdk on a M1 ARM Mac.
>
> ./emsdk install sdk-1.40.0-64bit
> The installation fails here:
>
> Installing tool
> 'releases-upstream-edf24e7233e0def312a08cc8dcec63a461155da1-64bit'..
>
> *Error: Downloading URL
> 'https://storage.googleapis.com/webassembly/emscripten-releases-builds/mac/edf24e7233e0def312a08cc8dcec63a461155da1/wasm-binaries-arm64.tbz2':
> HTTP Error 404: Not Found*
>
> error: installation failed!
>

my guess is that emsdk-v1.40.0 is too old to have been packaged for
m1-arm64-mac.

For the record, that command runs fine on debian-bookworm-x86-64:

```
[shlomif@telaviv ~]$ -t fcs
shlomif[fcs]:$trunk/fc-solve/source$ . ~/bin/Dev-Path-Configs-Source-Me.bash
Adding directories to PATH:
PATH += /home/shlomif/Download/unpack/prog/llvm-to-js/emsdk
PATH += /home/shlomif/Download/unpack/prog/llvm-to-js/emsdk/upstream/emscripten
PATH +=
/home/shlomif/Download/unpack/prog/llvm-to-js/emsdk/node/14.15.5_64bit/bin

Setting environment variables:
PATH =
/home/shlomif/Download/unpack/prog/llvm-to-js/emsdk:/home/shlomif/Download/unpack/prog/llvm-to-js/emsdk/upstream/emscripten:/home/shlomif/Download/unpack/prog/llvm-to-js/emsdk/node/14.15.5_64bit/bin:/home/shlomif/apps/valgrind/bin:/home/shlomif/apps/golang/bin:/home/shlomif/.local/bin:/home/shlomif/bin:/home/shlomif/apps/perl/modules/bin:/home/shlomif/apps/perl/modules/local/bin:/home/shlomif/apps/neovim/bin:/home/shlomif/apps/fop/fop-20140425:/home/shlomif/apps/vim/bin:/home/shlomif/.perl6/bin:/home/shlomif/.cargo/bin:/home/shlomif/apps/to-del-fortune/games:/home/shlomif/apps/to-del-fortune/bin:/home/shlomif/perl5/bin:/home/shlomif/apps/latemp/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/home/shlomif/progs/freecell/git/fc-solve/fc-solve/site/wml/node_modules/.bin:/home/shlomif/apps/test/bin:/home/shlomif/perl5/bin/
EMSDK = /home/shlomif/Download/unpack/prog/llvm-to-js/emsdk
EM_CONFIG = /home/shlomif/Download/unpack/prog/llvm-to-js/emsdk/.emscripten
EMSDK_NODE =
/home/shlomif/Download/unpack/prog/llvm-to-js/emsdk/node/14.15.5_64bit/bin/node
shlomif[fcs]:$trunk/fc-solve/source$ emsdk install sdk-1.40.0-64bit
Resolving SDK version '1.40.0' to
'sdk-releases-upstream-edf24e7233e0def312a08cc8dcec63a461155da1-64bit'
Installing SDK
'sdk-releases-upstream-edf24e7233e0def312a08cc8dcec63a461155da1-64bit'..
Skipped installing node-14.15.5-64bit, already installed.
Skipped installing
releases-upstream-edf24e7233e0def312a08cc8dcec63a461155da1-64bit, already installed.
All SDK components already installed:
'sdk-releases-upstream-edf24e7233e0def312a08cc8dcec63a461155da1-64bit'.
shlomif[fcs]:$trunk/fc-solve/source$ emsdk activate sdk-1.40.0-64bit
Resolving SDK version '1.40.0' to
'sdk-releases-upstream-edf24e7233e0def312a08cc8dcec63a461155da1-64bit'
Setting the following tools as active:
node-14.15.5-64bit
releases-upstream-edf24e7233e0def312a08cc8dcec63a461155da1-64bit

Next steps:
- To conveniently access emsdk tools from the command line,
consider adding the following directories to your PATH:
/home/shlomif/Download/unpack/prog/llvm-to-js/emsdk
/home/shlomif/Download/unpack/prog/llvm-to-js/emsdk/node/14.15.5_64bit/bin
/home/shlomif/Download/unpack/prog/llvm-to-js/emsdk/upstream/emscripten
- This can be done for the current shell by running:
source "/home/shlomif/Download/unpack/prog/llvm-to-js/emsdk/emsdk_env.sh"
- Configure emsdk in your shell startup scripts by running:
echo 'source
"/home/shlomif/Download/unpack/prog/llvm-to-js/emsdk/emsdk_env.sh"' >> $HOME/.zprofile
shlomif[fcs]:$trunk/fc-solve/source$

```

Can you try building v1.40.0 from its sources?

>
> Can you please help.
>
> thanks
>
> Am
>
>



--

Shlomi Fish https://www.shlomifish.org/
List of Text Processing Tools - https://shlom.in/text-proc

Beware of bugs in the above code; I have only proved it correct, not tried it.
https://en.wikiquote.org/wiki/Donald_Knuth

Please reply to list if it's a mailing list post - https://shlom.in/reply .

Shlomi Fish

unread,
Sep 30, 2021, 6:46:08 AM9/30/21
to emscripten-discuss
Amit, ping! Any news?

Amit Sharma

unread,
Sep 30, 2021, 3:03:29 PM9/30/21
to emscripten-discuss
Hi Shlomi - 
Apologies for not replying sooner.

Can you please provide some instructions on how to compile from sources for 1.40.0 for M1 ARM based machines. 
Much Appreciated.

The place where my command fails is after I run 

./emsdk install sdk-1.40.0-64bit

It seems it is looking for some existing binaries. 



Thank you
Amit

Shlomi Fish

unread,
Oct 1, 2021, 1:26:38 AM10/1/21
to emscripten-discuss
Hi Amit!


On Thursday, September 30, 2021 at 10:03:29 PM UTC+3 amitsh...@gmail.com wrote:
Hi Shlomi - 
Apologies for not replying sooner.

Can you please provide some instructions on how to compile from sources for 1.40.0 for M1 ARM based machines. 
Much Appreciated.


Shlomi Fish

unread,
Oct 15, 2021, 9:14:02 AM10/15/21
to Amit Sharma, emscripte...@googlegroups.com
Hi Amit!

Ping [again]!

On Thu, 30 Sep 2021 12:03:28 -0700 (PDT)
Amit Sharma <amitsh...@gmail.com> wrote:

> Hi Shlomi -
> Apologies for not replying sooner.
>
> Can you please provide some instructions on how to compile from sources for
> 1.40.0 for M1 ARM based machines.
> Much Appreciated.
>
> The place where my command fails is after I run
>
> *./emsdk install sdk-1.40.0-64bit*
>
> Error: Downloading URL
> 'https://storage.googleapis.com/webassembly/emscripten-releases-builds/mac/edf24e7233e0def312a08cc8dcec63a461155da1/wasm-binaries-arm64.tbz2':
> HTTP Error 404: Not Found
>
> It seems it is looking for some existing binaries.
>
>
>
> Thank you
> Amit
>
>



https://www.shlomifish.org/humour/bits/facts/Summer-Glau/

Emacs is a nice operating system, but what it lacks, in order to compete with
Linux, is a good text editor.
— based on https://en.wikiquote.org/wiki/Emacs
Reply all
Reply to author
Forward
0 new messages