config-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PATCH: Add x32 support to config.guess


From: H.J. Lu
Subject: Re: PATCH: Add x32 support to config.guess
Date: Mon, 23 Feb 2015 05:29:42 -0800

On Sun, Aug 19, 2012 at 2:47 AM, Ben Elliston <address@hidden> wrote:
>> There are 12 existing set_cc_for_build usages in config.guess.  I
>> don't think it is reasonable to require x32 not to use it without
>> providing an alternative.  If you want to remove set_cc_for_build,
>> one extra usage doesn't make it much harder to do.
>
> That's what the person asking for the 12th instance said ..
>
> I don't think it's reasonable for config.guess to depend on a C
> compiler.  You would not believe how many problem reports I get due to
> this.

I realized that config.guess is more broken than I thought.  Depending
on "uname -m" doesn't work with 64-bit kernel and 32-bit user space:

bash-4.3# uname -m
x86_64
bash-4.3# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i686-redhat-linux/4.9.2/lto-wrapper
Target: i686-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info
--with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap
--enable-shared --enable-threads=posix --enable-checking=release
--enable-multilib --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-gnu-unique-object
--enable-linker-build-id --with-linker-hash-style=gnu
--enable-languages=c,c++,objc,obj-c++,fortran,ada,go,lto
--enable-plugin --enable-initfini-array --disable-libgcj
--with-isl=/builddir/build/BUILD/gcc-4.9.2-20150212/obj-i686-redhat-linux/isl-install
--with-cloog=/builddir/build/BUILD/gcc-4.9.2-20150212/obj-i686-redhat-linux/cloog-install
--enable-gnu-indirect-function --with-tune=generic --with-arch=i686
--build=i686-redhat-linux
Thread model: posix
gcc version 4.9.2 20150212 (Red Hat 4.9.2-6) (GCC)
bash-4.3# ./config.guess
x86_64-unknown-linux-gnu
bash-4.3#

I am expecting i686-unknown-linux-gnu, not x86_64-unknown-linux-gnu.
My x32 patch should be expanded to cover both ia32 and x32.


-- 
H.J.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]