RE: Simpler example of pathological behavior of directory caching

2016-10-07 Thread Martin Dorey
, perhaps explaining why this has gone forever without being tracked down before, but I can think of one place. -Original Message- From: Paul Smith [mailto:psm...@gnu.org] Sent: Friday, October 07, 2016 05:07 To: Martin Dorey; Kyle Rose; bug-make@gnu.org Subject: Re: Simpler example of patholo

Re: Simpler example of pathological behavior of directory caching

2016-10-07 Thread Paul Smith
On Fri, 2016-10-07 at 00:10 +, Martin Dorey wrote: > ... then I failed to find any source that invalidates that cache, be > it the whole cache, just one directory or one entry in that directory. I'd have to reread that code to be sure but I don't think that's how it works.  I think that what's

Re: Simpler example of pathological behavior of directory caching

2016-10-06 Thread Eli Zaretskii
> From: Kyle Rose > Date: Thu, 6 Oct 2016 13:51:02 -0700 > Cc: psm...@gnu.org, bug-make@gnu.org > > On Thu, Oct 6, 2016 at 12:03 PM, Eli Zaretskii wrote: > > It works as you'd expect for me even on MS-Windows, as it did for Paul > on GNU/Linux, so I'm curious what kind of filesystem do you ha

RE: Simpler example of pathological behavior of directory caching

2016-10-06 Thread Martin Dorey
() calls after the "target" files have been created. There's enough junk that glibc has to go back to the kernel, not just to its getdents results. -Original Message----- From: Bug-make [mailto:bug-make-bounces+martin.dorey=hds@gnu.org] On Behalf Of Paul Smith Sent: Thur

Re: Simpler example of pathological behavior of directory caching

2016-10-06 Thread Paul Smith
On Thu, 2016-10-06 at 10:26 -0700, Kyle Rose wrote: > This is not a weird or contrived use case: this is wildcard not > finding targets in a recipe executed after they've been built as > explicit prerequisites. I discovered the difference.  If you put the makefile in a different directory, like th

Re: Simpler example of pathological behavior of directory caching

2016-10-06 Thread Kyle Rose
On Thu, Oct 6, 2016 at 12:01 PM, Martin Dorey wrote: > I can reproduce it too: > > > > martind@swiftboat:~/playpen/kyle-rose$ rm -f target*; > ~/download/make-git/make > > touch target1 > > touch target2 > > touch target3 > > touch target4 > > touch target5 > > touch target6 > > touch target7 > >

Re: Simpler example of pathological behavior of directory caching

2016-10-06 Thread Kyle Rose
On Thu, Oct 6, 2016 at 12:03 PM, Eli Zaretskii wrote: > It works as you'd expect for me even on MS-Windows, as it did for Paul > on GNU/Linux, so I'm curious what kind of filesystem do you have > there. (I think this issue has much more to do with the type of > filesystem than with the OS.) > T

Re: Simpler example of pathological behavior of directory caching

2016-10-06 Thread Kyle Rose
On Thu, Oct 6, 2016 at 12:06 PM, Paul Smith wrote: > > 4.2.1 definitely broken, at least on my system. > > It works on my system. I've tried it multiple times. I'm using Ubuntu > GNOME 16.04.1, with GNU libc 2.23, on an ext4 filesystem. > Broken here on on Debian using the Linux kernel with gl

Re: Simpler example of pathological behavior of directory caching

2016-10-06 Thread Paul Smith
On Thu, 2016-10-06 at 11:47 -0700, Kyle Rose wrote: > On Thu, Oct 6, 2016 at 11:38 AM, Paul Smith wrote: > > You should include the version of GNU make that you're using; my > > version works as expected: > > > > $ make --version > > GNU Make 4.2.1 > > Funny you should mention that: > > $ make

Re: Simpler example of pathological behavior of directory caching

2016-10-06 Thread Eli Zaretskii
> From: Kyle Rose > Date: Thu, 6 Oct 2016 11:47:02 -0700 > Cc: bug-make@gnu.org > > $ make --version > GNU Make 4.2.1 > Built for i686-pc-linux-gnu > Copyright (C) 1988-2016 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > This is fr

RE: Simpler example of pathological behavior of directory caching

2016-10-06 Thread Martin Dorey
ot when it's parsed. From: Bug-make [mailto:bug-make-bounces+martin.dorey=hds@gnu.org] On Behalf Of Kyle Rose Sent: Thursday, October 06, 2016 11:47 To: psm...@gnu.org Cc: bug-make@gnu.org Subject: Re: Simpler example of pathological behavior of directory caching On Thu, Oct 6, 2016 at 11:38 AM,

Re: Simpler example of pathological behavior of directory caching

2016-10-06 Thread Kyle Rose
On Thu, Oct 6, 2016 at 11:38 AM, Paul Smith wrote: > You should include the version of GNU make that you're using; my > version works as expected: > > $ make --version > GNU Make 4.2.1 > Funny you should mention that: $ make --version GNU Make 4.2.1 Built for i686-pc-linux-gnu Copyright (C) 198

Re: Simpler example of pathological behavior of directory caching

2016-10-06 Thread Paul Smith
On Thu, 2016-10-06 at 10:26 -0700, Kyle Rose wrote: > all: $(addprefix target,1 2 3 4 5 6 7 8 9 10) >     @echo glob: $(wildcard target*) > > target%: >     touch $@ > > To wit: > > $ make > touch target1 > touch target2 > touch target3 > touch target4 > touch target5 > touch target6 > touch tar