Re: gl_FUNC_FSTATAT doesn’t support cross-compilation

2011-11-12 Thread Jim Meyering
Ludovic Courtès wrote: >> 2011-11-10 Bruno Haible >> >> fstatat: Make cross-compilation guess succeed everywhere except on AIX. >> * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST. >> When cross-compiling, guess yes on all platforms except AIX. >> Reported by Ludo

Re: gl_FUNC_FSTATAT doesn’t support cross-compilation

2011-11-11 Thread Ludovic Courtès
Hi Bruno, Bruno Haible skribis: > OK, I've pushed this: > > > 2011-11-10 Bruno Haible > > fstatat: Make cross-compilation guess succeed everywhere except on AIX. > * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST. > When cross-compiling, guess yes on all platform

Re: gl_FUNC_FSTATAT doesn’t support cross-compilation

2011-11-10 Thread Ludovic Courtès
Hi, Bruno Haible skribis: > + [case "$host_os" in > +linux*) gl_cv_func_fstatat_zero_flag="guessing yes";; > +*) gl_cv_func_fstatat_zero_flag="guessing no";; I’m actually interested in cross-compilation to GNU/Hurd, which doesn’t have the problem I suppose.

Re: gl_FUNC_FSTATAT doesn’t support cross-compilation

2011-11-10 Thread Bruno Haible
Paul Eggert wrote: > >> > One possibility is to assume that AIX 7.1 is the only > >> > target platform with that bug -- that would be easier > >> > to maintain > > Yes, this appears to be the case. > > OK, let's go with that then. Or perhaps, a bit more > conservatively, we can assume that AIX is

Re: gl_FUNC_FSTATAT doesn’t support cross-compilation

2011-11-09 Thread Paul Eggert
On 11/09/11 17:55, Bruno Haible wrote: > Paul Eggert wrote: >> > One possibility is to assume that AIX 7.1 is the only >> > target platform with that bug -- that would be easier >> > to maintain > Yes, this appears to be the case. OK, let's go with that then. Or perhaps, a bit more conservatively

Re: gl_FUNC_FSTATAT doesn’t support cross-compilation

2011-11-09 Thread Bruno Haible
Paul Eggert wrote: > One possibility is to assume that AIX 7.1 is the only > target platform with that bug -- that would be easier > to maintain Yes, this appears to be the case. Grepping through log files of many platforms: $ fgrep 'checking whether fstatat (..., 0) works' multibuild-1*/*.log |

Re: gl_FUNC_FSTATAT doesn’t support cross-compilation

2011-11-09 Thread Paul Eggert
On 11/09/11 16:42, Eric Blake wrote: > we also ought to guess yes on cygwin 1.7 and on Solaris 10 and newer, which > we also know work. ... which is why I was trying to avoid this issue. :-) I'm not a fan of hardwiring this stuff in, as I figure that people doing embedded cross-compilation shoul

Re: gl_FUNC_FSTATAT doesn’t support cross-compilation

2011-11-09 Thread Eric Blake
On 11/09/2011 05:39 PM, Bruno Haible wrote: Also, a minor nit: When I see configure output like checking whether fstatat (..., 0) works... cross-compiling I wonder: does that count as a "yes" or as a "no"? Here's a proposed followup patch: @@ -36,16 +37,23 @@ ]])],

Re: gl_FUNC_FSTATAT doesn’t support cross-compilation

2011-11-09 Thread Bruno Haible
Hi Paul, > I'd rather not hardwire assumptions about AIX into > the 'configure' code, so instead I installed the > following more-conservative patch The problem with this conservative approach is that it penalizes all the people who do cross-compiles to embedded Linux (eglibc or uClibc) platforms

Re: gl_FUNC_FSTATAT doesn’t support cross-compilation

2011-11-09 Thread Paul Eggert
On 11/09/11 13:36, Ludovic Courtès wrote: > What about a patch along these lines? I'd rather not hardwire assumptions about AIX into the 'configure' code, so instead I installed the following more-conservative patch, which I hope fixes your problem. fstatat: work with cross-compilation Problem r

gl_FUNC_FSTATAT doesn’t support cross-compilation

2011-11-09 Thread Ludovic Courtès
Hi, (Adding bug-gnulib + Paul.) ludo-mXXj517/z...@public.gmane.org (Ludovic Courtès) skribis: > Rob Vermaas skribis: > >>> On x86_64-linux, the new build doesn't look healthy: >>> (http://hydra.nixos.org/build/1302194) >>> >>> checking whether fstatat fills in st_size etc configure: error: