[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: config.guess returns bogus triple on Linux/x86_64 bi-arch system
From: |
Bruno Haible |
Subject: |
Re: config.guess returns bogus triple on Linux/x86_64 bi-arch system |
Date: |
Sun, 08 May 2022 21:55:09 +0200 |
Dmitry V. Levin wrote:
> Thanks, I agree with this approach in general, but could you rewrite the
> test to invoke the compiler just once, please? You can use cc_set_libc
> and cc_set_vars cases as examples.
Sure. Find it attached. Tested with various GCC versions, clang, and tcc:
$ ./config.guess
x86_64-pc-linux-gnu
$ CC="gcc-version 8.5.0 -m64" ./config.guess
x86_64-pc-linux-gnu
$ CC="gcc-version 9.4.0 -m64" ./config.guess
x86_64-pc-linux-gnu
$ CC=$HOME/inst-clang/13.0.0/bin/clang ./config.guess
x86_64-pc-linux-gnu
$ CC=$HOME/inst-tcc/0.9.27/bin/tcc ./config.guess
x86_64-pc-linux-gnu
$ CC="gcc-version 8.5.0 -m32" ./config.guess
i686-pc-linux-gnu
$ CC="gcc-version 9.4.0 -m32" ./config.guess
i686-pc-linux-gnu
$ CC=i686-linux-gnu-gcc-10 ./config.guess
i686-pc-linux-gnu
$ CC="$HOME/inst-clang/13.0.0/bin/clang -m32" ./config.guess
i686-pc-linux-gnu
$ CC=$HOME/inst-tcc/0.9.27-i386/bin/tcc ./config.guess
i686-pc-linux-gnu
$ CC="gcc-version 8.5.0 -mx32" ./config.guess
x86_64-pc-linux-gnux32
$ CC="gcc-version 9.4.0 -mx32" ./config.guess
x86_64-pc-linux-gnux32
$ CC=x86_64-linux-gnux32-gcc-10 ./config.guess
x86_64-pc-linux-gnux32
0001-config.guess-x86_64-Linux-Detect-32-bit-ABI.patch
Description: Text Data