[#107430] [Ruby master Feature#18566] Merge `io-wait` gem into core IO — "byroot (Jean Boussier)" <noreply@...>
Issue #18566 has been reported by byroot (Jean Boussier).
22 messages
2022/02/02
[ruby-core:107589] [Ruby master Bug#18504] configure prints a warning when cross-compiling
From:
"nobu (Nobuyoshi Nakada)" <noreply@...>
Date:
2022-02-15 11:22:27 UTC
List:
ruby-core #107589
Issue #18504 has been updated by nobu (Nobuyoshi Nakada).
What about this?
```diff
diff --git a/configure.ac b/configure.ac
index 4feefb57915..01e87c0a9b4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -129,9 +129,9 @@ AC_ARG_WITH(gcc,
AS_HELP_STRING([--without-gcc], [never use gcc]),
[
AS_CASE([$withval],
- [no], [: ${CC=cc}],
- [yes], [: ${CC=gcc}],
- [CC=$withval])])
+ [no], [with_gcc=cc],
+ [yes], [with_gcc=gcc],
+ [])])
dnl If the user switches compilers, we can't believe the cache
AS_IF([test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"], [
AC_MSG_ERROR(cached CC is different -- throw away $cache_file
@@ -143,16 +143,16 @@ RUBY_WASM_TOOLS
AS_CASE(["${build_os}"],
[linux*|cygwin*|msys*], [
# Naruse prefers GCC on Linux
- AC_CHECK_TOOLS([CC], [gcc clang cc])
+ AC_CHECK_TOOLS([CC], [${with_gcc} gcc clang cc])
],
[solaris*], [
# Clang on Solaris is largely untested.
# https://bugs.ruby-lang.org/issues/17949
- AC_CHECK_TOOLS([CC], [cc gcc])
+ AC_CHECK_TOOLS([CC], [${with_gcc} cc gcc])
], [
# OpenBSD wants to prefer cc over gcc.
# See https://github.com/ruby/ruby/pull/2443
- AC_CHECK_TOOLS([CC], [cl.exe clang cc gcc c99 /usr/ucb/cc])
+ AC_CHECK_TOOLS([CC], [${with_gcc} cl.exe clang cc gcc c99 /usr/ucb/cc])
])
AC_ARG_VAR([AR], [Archiver command])
```
----------------------------------------
Bug #18504: configure prints a warning when cross-compiling
https://bugs.ruby-lang.org/issues/18504#change-96501
* Author: mame (Yusuke Endoh)
* Status: Assigned
* Priority: Normal
* Assignee: shyouhei (Shyouhei Urabe)
* Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN
----------------------------------------
```
$ sudo apt-get install gcc-aarch64-linux-gnu
$ ./configure --host=aarch64-linux-gnu
downloading config.guess ... done
downloading config.sub ... done
checking build system type... x86_64-pc-linux-gnu
checking host system type... aarch64-unknown-linux-gnu
checking target system type... aarch64-unknown-linux-gnu
checking for aarch64-linux-gnu-gcc... aarch64-linux-gnu-gcc
checking for aarch64-linux-gnu-aarch64-linux-gnu-ld... no
checking for aarch64-linux-gnu-ld... aarch64-linux-gnu-ld
configure: WARNING: using cross tools not prefixed with host triplet
```
It attempts to find `aarch64-linux-gnu-aarch64-linux-gnu-ld`, which fails. Then it finds `aarch64-linux-gnu-ld`, but also it prints "WARNING: using cross tools not prefixed with host triplet".
I guess this was triggered by commit:2c96e04868477eaa1420945d57bf5b3adb521e84. @shyouhei Could you take a look?
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:[email protected]?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>