[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] gawk-4.0.0 not parallel make check friendly
From: |
Jack Howarth |
Subject: |
Re: [bug-gawk] gawk-4.0.0 not parallel make check friendly |
Date: |
Tue, 9 Aug 2011 09:37:53 -0400 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
On Tue, Aug 09, 2011 at 12:52:30AM -0400, Eli Zaretskii wrote:
> > Date: Sun, 7 Aug 2011 20:01:25 -0400
> > From: Jack Howarth <address@hidden>
> >
> > While gawk 4.0.0 appears to properly support parallel make and
> > make install, the parallel make check is broken. It fails on
> > x86_64-apple-darwin11 with...
> > [...]
> > profile1
> > profile2
> > profile3
> > rebuf
> > gawk: fatal: can't open source file `awkprof.out' for reading (No such file
> > or directory)
> > regx8bit
> > /bin/sh: awkprof.out: No such file or directory
> > rm: awkprof.out: No such file or directory
> > make[1]: *** [profile1] Error 1
> > rm: awkprof.out: No such file or directory
> > reint
> > make[1]: *** [profile2] Error 1
>
> Does the trivial patch below give good results?
>
> --- test/Makefile.in~0 2011-06-24 04:26:55.000000000 -0400
> +++ test/Makefile.in 2011-08-09 00:50:16.727707410 -0400
> @@ -1701,19 +1701,19 @@
> profile1:
> @echo $@
> @$(AWK) --profile -f $(srcdir)/xref.awk $(srcdir)/dtdgport.awk >
> address@hidden
> - @$(AWK) -f awkprof.out $(srcdir)/dtdgport.awk > address@hidden ; rm
> awkprof.out
> + @$(AWK) -f awkprof1.out $(srcdir)/dtdgport.awk > address@hidden ; rm
> awkprof1.out
> @cmp address@hidden address@hidden && rm address@hidden || echo EXIT
> CODE: $$? >>_$@
>
> profile2:
> @echo $@
> @$(PGAWK) -v sortcmd=sort -f $(srcdir)/xref.awk $(srcdir)/dtdgport.awk
> > /dev/null
> - @sed 1,2d < awkprof.out > _$@; rm awkprof.out
> + @sed 1,2d < awkprof2.out > _$@; rm awkprof2.out
> @-$(CMP) $(srcdir)/address@hidden _$@ && rm -f _$@
>
> profile3:
> @echo $@
> @$(PGAWK) -f $(srcdir)/address@hidden > /dev/null
> - @sed 1,2d < awkprof.out > _$@; rm awkprof.out
> + @sed 1,2d < awkprof3.out > _$@; rm awkprof3.out
> @-$(CMP) $(srcdir)/address@hidden _$@ && rm -f _$@
>
> next:
This still fails with...
reint
/bin/sh: awkprof3.out: No such file or directory
rm: awkprof3.out: No such file or directory
make[1]: *** [profile3] Error 1
reint2
rsstart1
rsstart2
rsstart3
/bin/sh: awkprof2.out: No such file or directory
rstest6
rm: awkprof2.out: No such file or directory
make[1]: *** [profile2] Error 1
shadow
gawk: fatal: can't open source file `awkprof1.out' for reading (No such file or
directory)
sortfor
rm: awkprof1.out: No such file or directory
make[1]: *** [profile1] Error 1
sortu
splitarg4
This test could fail on slow machines or on a minute boundary,
so if it does, double check the actual results:
strftime
strtonum
switch2
double1
======== Done with gawk extension tests ========
I don't follow where awkprof[123].out would be created. The Makefile generated
from the
proposed patch only has...
profile1:
@echo $@
@$(AWK) --profile -f $(srcdir)/xref.awk $(srcdir)/dtdgport.awk >
address@hidden
@$(AWK) -f awkprof1.out $(srcdir)/dtdgport.awk > address@hidden ; rm
awkprof1.out
@cmp address@hidden address@hidden && rm address@hidden || echo EXIT
CODE: $$? >>_$@
profile2:
@echo $@
@$(PGAWK) -v sortcmd=sort -f $(srcdir)/xref.awk $(srcdir)/dtdgport.awk
> /dev/null
@sed 1,2d < awkprof2.out > _$@; rm awkprof2.out
@-$(CMP) $(srcdir)/address@hidden _$@ && rm -f _$@
profile3:
@echo $@
@$(PGAWK) -f $(srcdir)/address@hidden > /dev/null
@sed 1,2d < awkprof3.out > _$@; rm awkprof3.out
@-$(CMP) $(srcdir)/address@hidden _$@ && rm -f _$@
which would only seem to use awkprof[123].out without explicitly creating
them at any point (unless I am misreading the Makefile.in).
Jack