Skip to content

Commit 459bbde

Browse files
wasm/README.md: add manual config.guess download and autoconf steps
Autoconf distributed with Ubuntu 22.04 is very old and doesn't support WASI as an OS, so add instructions to download the latest config.guess, then run `./autogen.sh`. See also: ruby/chkbuild@2297012
1 parent f277706 commit 459bbde

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

wasm/README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,14 @@ $ export WASI_SDK_PATH=/path/to/wasi-sdk-X.Y
2323
```console
2424
$ export PATH=path/to/binaryen:$PATH
2525
```
26-
5. Configure
26+
5. Download the latest `config.guess` with WASI support, and run `./autogen.sh` to generate configure when you
27+
are building from the source checked out from Git repository
28+
```console
29+
$ ruby tool/downloader.rb -d tool -e gnu config.guess config.sub
30+
$ ./autogen.sh
31+
```
32+
33+
6. Configure
2734
- You can select which extensions you want to build.
2835
- If you got `Out of bounds memory access` while running the produced ruby, you may need to increase the maximum size of stack.
2936
```console
@@ -34,7 +41,7 @@ $ ./configure LDFLAGS="-Xlinker -zstack-size=16777216" \
3441
--with-ext=ripper,monitor
3542
```
3643

37-
6. Make
44+
7. Make
3845
```console
3946
$ make install
4047
```

0 commit comments

Comments
 (0)