Re: AC_FUNC_MMAP test fails on AIX for MAP_FIXED: who's at fault?

2024-07-31 Thread Yury V. Zaytsev
Hi Brooks, > On 29. Jul 2024, at 23:42, Brooks Davis wrote: > > I wonder if AIX builds are producing SPEC1170-requesting programs > most of the time, but not when building the autoconf code fragments? > Otherwise I'd expect things to be failing more. Thanks for the nudge in the right direction!

Re: First draft of application to Sovereign Tech Fund

2024-07-31 Thread Detlef Riekenberg
Hi Christoph. Some hints about your draft application: > > Where is your open source technology project being used (describe > > all user bases)? > > GNU Autoconf and GNU Automake are part of the GNU Autotools, also known > as the GNU Build System. The help making source code packages portable

Re: AC_FUNC_MMAP test fails on AIX for MAP_FIXED: who's at fault?

2024-07-31 Thread Zack Weinberg
On Wed, Jul 31, 2024, at 7:56 AM, Yury V. Zaytsev wrote: > So it appears to be not as trivial as “mmap on AIX has been broken for > ages”, but rather it seems that up to some version of AIX (4-5?), it > used to require unmapping the address first. After that IBM still kept > it as the default behav

Re: First draft of application to Sovereign Tech Fund

2024-07-31 Thread Zack Weinberg
On Wed, Jul 31, 2024, at 9:56 AM, Detlef Riekenberg wrote: > For all contributions, they have to be checked, commented and later > committed by the few busy people with commit rights. Because of this ... > We need a list of "todo projects", similar to what is available for > projects, who apply f

Re: AC_FUNC_MMAP test fails on AIX for MAP_FIXED: who's at fault?

2024-07-31 Thread Howard Chu via Discussion list for the autoconf build system
Zack Weinberg wrote: > On Wed, Jul 31, 2024, at 7:56 AM, Yury V. Zaytsev wrote: >> So it appears to be not as trivial as “mmap on AIX has been broken for >> ages”, but rather it seems that up to some version of AIX (4-5?), it >> used to require unmapping the address first. After that IBM still kept

Re: AC_FUNC_MMAP test fails on AIX for MAP_FIXED: who's at fault?

2024-07-31 Thread pluto--- via Discussion list for the autoconf build system
"Yury V. Zaytsev" wrote: > ... > bash-5.1$ gcc mmap-full.c > bash-5.1$ export XPG_SUS_ENV=ON > bash-5.1$ ./a.out > bash-5.1$ echo $? > 0 > bash-5.1$ unset XPG_SUS_ENV > bash-5.1$ ./a.out > bash-5.1$ echo $? > 10 > > ... all controlled by a variable at runtime > ... nothing one can do at

Re: First draft of application to Sovereign Tech Fund

2024-07-31 Thread Karl Berry
Hi Detlef - I think Christoph has already submitted the application to the fund, in somewhat different form than the one you commented on. There are some subsequent msgs between he and I on the list. (In short, I basically agree[d] with all your comments. We probably didn't get everything right fo

Re: AC_FUNC_MMAP test fails on AIX for MAP_FIXED: who's at fault?

2024-07-31 Thread Paul Eggert
On 2024-07-31 11:05, Zack Weinberg wrote: I'd like to ask everyone who reads this message to run the test program on operating systems not listed above, and on older versions of operating systems that*are* listed above. I just now tried running it on CheriBSD Morello (cfarm240.cfarm.net) and M

Re: AC_FUNC_MMAP test fails on AIX for MAP_FIXED: who's at fault?

2024-07-31 Thread Tim Rice
[trimming CC] On Wed, 31 Jul 2024, Zack Weinberg wrote: [snip] > note: using 4096 bytes as page size. > note: define MMAP_PROBE_PAGESIZE if this is incorrect. > test: zero-fill after EOF (shared mapping)... ok > test: zero-fill after EOF (private mapping)... ok > test: writes visible via shared ma

Re: AC_FUNC_MMAP test fails on AIX for MAP_FIXED: who's at fault?

2024-07-31 Thread Yury V. Zaytsev
Hi Perry, > On 1. Aug 2024, at 00:39, Perry Hutchison wrote: > > One could, at build time, include code to do something like (untested): > > if (strcmp(getenv("XPG_SUS_ENV", "ON")) != 0) > { >setenv("XPG_SUS_ENV", "ON", 1); > } > > (and yes, if AIX has already tested XPG_SUS_ENV before

Re: AC_FUNC_MMAP test fails on AIX for MAP_FIXED: who's at fault?

2024-07-31 Thread Yury V. Zaytsev
Hi Zack, > On 31. Jul 2024, at 20:05, Zack Weinberg wrote: > > Thanks for digging into this, Yury. I have access to AIX machines via > the GCC compile farm but I would not have been able to find this. I’m also using the compile farm thanks to the great peoples of GCC who maintain and provide