config-patches
[Top][All Lists]
Advanced

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

Re: [PATCH] PR bootstrap/65176: config.guess failed to guess machine wit


From: Jakub Jelinek
Subject: Re: [PATCH] PR bootstrap/65176: config.guess failed to guess machine with 64-bit kernel and 32-bit user space
Date: Mon, 23 Feb 2015 18:52:51 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

On Mon, Feb 23, 2015 at 09:49:43AM -0800, H.J. Lu wrote:
> On Mon, Feb 23, 2015 at 9:40 AM, Jakub Jelinek <address@hidden> wrote:
> > On Mon, Feb 23, 2015 at 09:17:43AM -0800, H.J. Lu wrote:
> >> 32-bit and x32 user-space environments may be running under Linux/x86-64
> >> kernel.  Using "uname -m" isn't sufficient to properly detect the
> >> canonical system name for 32-bit and x32 user-space environments.  This
> >> patch checks if compiler is configured for 64-bit, 32-bit or x32 objects
> >> under Linux/x86-64 kernel.
> >>
> >> Tested with 64-bit, 32-bit and x32 user-space environments under
> >> Linux/x86-64 kernel.  I am not sure if this will ever be accepted in
> >> upstream since the config.guess maintainer doesn't want to add a new
> >> use of set_cc_for_build to config.guess.  set_cc_for_build is used for
> >> Linux:
> >
> > Ugh, isn't this what setarch is meant for?
> >
> 
> It doesn't cover x32.

So extend it for x32?
I mean, this is the way various other Linux arches work (e.g. powerpc*, s390*,
sparc*, etc.), you are trying to do something different and again for x86
only.

        Jakub



reply via email to

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