[前][次][番号順一覧][スレッド一覧]

ruby-changes:71421

From: Yuta <ko1@a...>
Date: Tue, 15 Mar 2022 10:25:30 +0900 (JST)
Subject: [ruby-changes:71421] 459bbdeb74 (master): wasm/README.md: add manual config.guess download and autoconf steps

https://git.ruby-lang.org/ruby.git/commit/?id=459bbdeb74

From 459bbdeb74224168af5c2b288f206485f7866872 Mon Sep 17 00:00:00 2001
From: Yuta Saito <kateinoigakukun@g...>
Date: Tue, 15 Mar 2022 01:21:02 +0000
Subject: 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: https://github.com/ruby/chkbuild/commit/2297012efd6364f6fde45f54531b6fc0f0838ec9
---
 wasm/README.md | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/wasm/README.md b/wasm/README.md
index b18429a381..4269bc33cf 100644
--- a/wasm/README.md
+++ b/wasm/README.md
@@ -23,7 +23,14 @@ $ export WASI_SDK_PATH=/path/to/wasi-sdk-X.Y https://github.com/ruby/ruby/blob/trunk/wasm/README.md#L23
 ```console
 $ export PATH=path/to/binaryen:$PATH
 ```
-5. Configure
+5. Download the latest `config.guess` with WASI support, and run `./autogen.sh` to generate configure when you
+   are building from the source checked out from Git repository
+```console
+$ ruby tool/downloader.rb -d tool -e gnu config.guess config.sub
+$ ./autogen.sh
+```
+
+6. Configure
   - You can select which extensions you want to build.
   - If you got `Out of bounds memory access` while running the produced ruby, you may need to increase the maximum size of stack.
 ```console
@@ -34,7 +41,7 @@ $ ./configure LDFLAGS="-Xlinker -zstack-size=16777216" \ https://github.com/ruby/ruby/blob/trunk/wasm/README.md#L41
   --with-ext=ripper,monitor
 ```
 
-6. Make
+7. Make
 ```console
 $ make install
 ```
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]