[PATCH] PR bootstrap/65176: config.guess failed to guess machine with 64-bit kernel and 32-bit user space

2015-02-23 Thread H.J. Lu
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

Re: [PATCH] PR bootstrap/65176: config.guess failed to guess machine with 64-bit kernel and 32-bit user space

2015-02-23 Thread Jakub Jelinek
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 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 sufficien

Re: [PATCH] PR bootstrap/65176: config.guess failed to guess machine with 64-bit kernel and 32-bit user space

2015-02-23 Thread Jakub Jelinek
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 compile

Re: [PATCH] PR bootstrap/65176: config.guess failed to guess machine with 64-bit kernel and 32-bit user space

2015-02-23 Thread Joseph Myers
On Mon, 23 Feb 2015, H.J. Lu wrote: > 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_fo

Re: PATCH: Add x32 support to config.guess

2015-02-23 Thread Mike Frysinger
On 23 Feb 2015 05:29, H.J. Lu wrote: > On Sun, Aug 19, 2012 at 2:47 AM, Ben Elliston 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

Re: [PATCH] PR bootstrap/65176: config.guess failed to guess machine with 64-bit kernel and 32-bit user space

2015-02-23 Thread H.J. Lu
On Mon, Feb 23, 2015 at 9:52 AM, Jakub Jelinek wrote: > 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 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

Re: PATCH: Add x32 support to config.guess

2015-02-23 Thread H.J. Lu
On Mon, Feb 23, 2015 at 6:00 AM, Jan Engelhardt wrote: > On Monday 2015-02-23 14:29, H.J. Lu wrote: > >>On Sun, Aug 19, 2012 at 2:47 AM, Ben Elliston 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 withou

Re: PATCH: Add x32 support to config.guess

2015-02-23 Thread Jan Engelhardt
On Monday 2015-02-23 14:29, H.J. Lu wrote: >On Sun, Aug 19, 2012 at 2:47 AM, Ben Elliston 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_

Re: PATCH: Add x32 support to config.guess

2015-02-23 Thread H.J. Lu
On Sun, Aug 19, 2012 at 2:47 AM, Ben Elliston 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 mu