Stream: git-wasmtime

Topic: wasmtime / Issue #1552 Installation script fails because ...


view this post on Zulip Wasmtime GitHub notifications bot (Apr 19 2020 at 11:52):

laaglu opened Issue #1552:

Hi,
I wanted to try wasmtime (on opensuse 15.1 x86_64) so I simply ran the install script as described on the project homepage

curl https://wasmtime.dev/install.sh -sSf | bash
  Installing latest version of Wasmtime (dev)
    Checking for existing Wasmtime installation
    Fetching archive for Linux, version dev
https://github.com/cranestation/wasmtime/releases/download/dev/wasmtime-dev-x86_64-linux.tar.xz
######################################################################## 100.0% -#O#-  #   #
    Creating directory layout
  Extracting Wasmtime binaries
wasmtime-dev-x86_64-linux/
wasmtime-dev-x86_64-linux/README.md
wasmtime-dev-x86_64-linux/wasmtime
wasmtime-dev-x86_64-linux/LICENSE
cp: cannot stat '/tmp/tmp.2lBZFrJIZA/wasmtime-dev-x86_64-linux/wasm2obj': No such file or directory

Indeed, it turns out wasm2obj is not in https://github.com/cranestation/wasmtime/releases/download/dev/wasmtime-dev-x86_64-linux.tar.xz (I also checked https://github.com/bytecodealliance/wasmtime/releases/download/v0.15.0/wasmtime-v0.15.0-x86_64-linux.tar.xz)

tar tvf wasmtime-dev-x86_64-linux.tar.xz yields:
drwxr-xr-x runner/docker     0 2020-03-31 23:54 wasmtime-v0.15.0-x86_64-linux/
-rwxr-xr-x runner/docker 13738648 2020-03-31 23:54 wasmtime-v0.15.0-x86_64-linux/wasmtime
-rw-r--r-- runner/docker    12243 2020-03-31 23:54 wasmtime-v0.15.0-x86_64-linux/LICENSE
-rw-r--r-- runner/docker     3684 2020-03-31 23:54 wasmtime-v0.15.0-x86_64-linux/README.md

The install script fails on this line

  # copy the files to the specified directory
  # binaries go into the bin folder
  cp "$extracted_path/wasmtime" "$extracted_path/wasm2obj" "$copy_to/bin"

Is the content of the archive incorrect or is wasm2obj no longer needed ?

view this post on Zulip Wasmtime GitHub notifications bot (Apr 19 2020 at 14:05):

bjorn3 commented on Issue #1552:

wasm2obj is no longer a standalone program, but a sub-command of wasmtime. The install script should be updated.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 19 2020 at 14:09):

bjorn3 commented on Issue #1552:

Opened https://github.com/bytecodealliance/wasmtime.dev/pull/5.

view this post on Zulip Wasmtime GitHub notifications bot (Apr 19 2020 at 14:44):

tschneidereit closed Issue #1552:

Hi,
I wanted to try wasmtime (on opensuse 15.1 x86_64) so I simply ran the install script as described on the project homepage

curl https://wasmtime.dev/install.sh -sSf | bash
  Installing latest version of Wasmtime (dev)
    Checking for existing Wasmtime installation
    Fetching archive for Linux, version dev
https://github.com/cranestation/wasmtime/releases/download/dev/wasmtime-dev-x86_64-linux.tar.xz
######################################################################## 100.0% -#O#-  #   #
    Creating directory layout
  Extracting Wasmtime binaries
wasmtime-dev-x86_64-linux/
wasmtime-dev-x86_64-linux/README.md
wasmtime-dev-x86_64-linux/wasmtime
wasmtime-dev-x86_64-linux/LICENSE
cp: cannot stat '/tmp/tmp.2lBZFrJIZA/wasmtime-dev-x86_64-linux/wasm2obj': No such file or directory

Indeed, it turns out wasm2obj is not in https://github.com/cranestation/wasmtime/releases/download/dev/wasmtime-dev-x86_64-linux.tar.xz (I also checked https://github.com/bytecodealliance/wasmtime/releases/download/v0.15.0/wasmtime-v0.15.0-x86_64-linux.tar.xz)

tar tvf wasmtime-dev-x86_64-linux.tar.xz yields:
drwxr-xr-x runner/docker     0 2020-03-31 23:54 wasmtime-v0.15.0-x86_64-linux/
-rwxr-xr-x runner/docker 13738648 2020-03-31 23:54 wasmtime-v0.15.0-x86_64-linux/wasmtime
-rw-r--r-- runner/docker    12243 2020-03-31 23:54 wasmtime-v0.15.0-x86_64-linux/LICENSE
-rw-r--r-- runner/docker     3684 2020-03-31 23:54 wasmtime-v0.15.0-x86_64-linux/README.md

The install script fails on this line

  # copy the files to the specified directory
  # binaries go into the bin folder
  cp "$extracted_path/wasmtime" "$extracted_path/wasm2obj" "$copy_to/bin"

Is the content of the archive incorrect or is wasm2obj no longer needed ?


Last updated: Oct 23 2024 at 20:03 UTC