* parallel make bug
@ 2007-06-26 21:10 Dan Nicolaescu
2007-06-27 1:28 ` Stefan Monnier
2007-06-27 3:24 ` Eli Zaretskii
0 siblings, 2 replies; 12+ messages in thread
From: Dan Nicolaescu @ 2007-06-26 21:10 UTC (permalink / raw)
To: emacs-devel
Doing make -j8 bootstrap on a 2 processor machine:
Directories: /home/dann/emacs/Emacs-CVS/emacs/lisp/. /home/dann/emacs/Emacs-CVS/emacs/lisp/./eshell /home/dann/emacs/Emacs-CVS/emacs/lisp/./mail /home/dann/emacs/Emacs-CVS/emacs/lisp/./language /home/dann/emacs/Emacs-CVS/emacs/lisp/./emacs-lisp /home/dann/emacs/Emacs-CVS/emacs/lisp/./calc /home/dann/emacs/Emacs-CVS/emacs/lisp/./gnus /home/dann/emacs/Emacs-CVS/emacs/lisp/./textmodes /home/dann/emacs/Emacs-CVS/emacs/lisp/./net /home/dann/emacs/Emacs-CVS/emacs/lisp/./mh-e /home/dann/emacs/Emacs-CVS/emacs/lisp/./calendar /home/dann/emacs/Emacs-CVS/emacs/lisp/./progmodes /home/dann/emacs/Emacs-CVS/emacs/lisp/./erc /home/dann/emacs/Emacs-CVS/emacs/lisp/./international /home/dann/emacs/Emacs-CVS/emacs/lisp/./emulation /home/dann/emacs/Emacs-CVS/emacs/lisp/./url /home/dann/emacs/Emacs-CVS/emacs/lisp/./play
Compiling /home/dann/emacs/Emacs-CVS/emacs/lisp/emacs-lisp/byte-opt.el
IO error reading /home/dann/emacs/Emacs-CVS/emacs/lisp/subdirs.el: Input/output error
make[2]: *** [autoloads] Error 255
make[2]: *** Waiting for unfinished jobs....
Is there any reason $(lisp)/subdirs.el should start a recursive make
instead of just depending on update-subdirs like in the patch below?
*** Makefile.in 07 Apr 2007 08:37:10 -0700 1.85
--- Makefile.in 26 Jun 2007 13:59:36 -0700
***************
*** 112,119 ****
echo Directories: $$wins; \
$(EMACS) $(EMACSOPT) -l autoload --eval '(setq generated-autoload-file "$(lisp)/loaddefs.el")' -f batch-update-autoloads $$wins
! $(lisp)/subdirs.el:
! $(MAKE) $(MFLAGS) update-subdirs
update-subdirs: doit
wd=$(lisp); $(setwins); \
for file in $$wins; do \
--- 112,119 ----
echo Directories: $$wins; \
$(EMACS) $(EMACSOPT) -l autoload --eval '(setq generated-autoload-file "$(lisp)/loaddefs.el")' -f batch-update-autoloads $$wins
! $(lisp)/subdirs.el: update-subdirs
!
update-subdirs: doit
wd=$(lisp); $(setwins); \
for file in $$wins; do \
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: parallel make bug
2007-06-26 21:10 parallel make bug Dan Nicolaescu
@ 2007-06-27 1:28 ` Stefan Monnier
2007-06-27 1:59 ` Dan Nicolaescu
2007-06-27 3:24 ` Eli Zaretskii
1 sibling, 1 reply; 12+ messages in thread
From: Stefan Monnier @ 2007-06-27 1:28 UTC (permalink / raw)
To: Dan Nicolaescu; +Cc: emacs-devel
> Is there any reason $(lisp)/subdirs.el should start a recursive make
> instead of just depending on update-subdirs like in the patch below?
Because the current form allows it to just check that subdirs.el exists
whereas your patch would force it to always be rebuilt.
The problem being that we have no easy way to check that subdirs.el is
up-to-date, so we can either rebuild it all the time or only rebuild it when
specifically asked to.
Stefan
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: parallel make bug
2007-06-27 1:28 ` Stefan Monnier
@ 2007-06-27 1:59 ` Dan Nicolaescu
2007-06-27 2:31 ` Stefan Monnier
0 siblings, 1 reply; 12+ messages in thread
From: Dan Nicolaescu @ 2007-06-27 1:59 UTC (permalink / raw)
To: Stefan Monnier; +Cc: emacs-devel
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> > Is there any reason $(lisp)/subdirs.el should start a recursive make
> > instead of just depending on update-subdirs like in the patch below?
>
> Because the current form allows it to just check that subdirs.el exists
> whereas your patch would force it to always be rebuilt.
>
> The problem being that we have no easy way to check that subdirs.el is
> up-to-date, so we can either rebuild it all the time or only rebuild it when
> specifically asked to.
How about always rebuilding and use move-if-change ?
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: parallel make bug
2007-06-27 1:59 ` Dan Nicolaescu
@ 2007-06-27 2:31 ` Stefan Monnier
0 siblings, 0 replies; 12+ messages in thread
From: Stefan Monnier @ 2007-06-27 2:31 UTC (permalink / raw)
To: Dan Nicolaescu; +Cc: emacs-devel
>> > Is there any reason $(lisp)/subdirs.el should start a recursive make
>> > instead of just depending on update-subdirs like in the patch below?
>>
>> Because the current form allows it to just check that subdirs.el exists
>> whereas your patch would force it to always be rebuilt.
>>
>> The problem being that we have no easy way to check that subdirs.el is
>> up-to-date, so we can either rebuild it all the time or only rebuild it when
>> specifically asked to.
> How about always rebuilding and use move-if-change ?
Try it. Note that the same kind of problem occurs with autoloads, cus-load
and finder-inf.
Stefan
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: parallel make bug
2007-06-26 21:10 parallel make bug Dan Nicolaescu
2007-06-27 1:28 ` Stefan Monnier
@ 2007-06-27 3:24 ` Eli Zaretskii
2007-06-27 5:29 ` Dan Nicolaescu
1 sibling, 1 reply; 12+ messages in thread
From: Eli Zaretskii @ 2007-06-27 3:24 UTC (permalink / raw)
To: Dan Nicolaescu; +Cc: emacs-devel
> From: Dan Nicolaescu <dann@ics.uci.edu>
> Date: Tue, 26 Jun 2007 14:10:05 -0700
>
>
> Doing make -j8 bootstrap on a 2 processor machine:
>
> Directories: /home/dann/emacs/Emacs-CVS/emacs/lisp/. /home/dann/emacs/Emacs-CVS/emacs/lisp/./eshell /home/dann/emacs/Emacs-CVS/emacs/lisp/./mail /home/dann/emacs/Emacs-CVS/emacs/lisp/./language /home/dann/emacs/Emacs-CVS/emacs/lisp/./emacs-lisp /home/dann/emacs/Emacs-CVS/emacs/lisp/./calc /home/dann/emacs/Emacs-CVS/emacs/lisp/./gnus /home/dann/emacs/Emacs-CVS/emacs/lisp/./textmodes /home/dann/emacs/Emacs-CVS/emacs/lisp/./net /home/dann/emacs/Emacs-CVS/emacs/lisp/./mh-e /home/dann/emacs/Emacs-CVS/emacs/lisp/./calendar /home/dann/emacs/Emacs-CVS/emacs/lisp/./progmodes /home/dann/emacs/Emacs-CVS/emacs/lisp/./erc /home/dann/emacs/Emacs-CVS/emacs/lisp/./international /home/dann/emacs/Emacs-CVS/emacs/lisp/./emulation /home/dann/emacs/Emacs-CVS/emacs/lisp/./url /home/dann/emacs/Emacs-CVS/emacs/lisp/./play
> Compiling /home/dann/emacs/Emacs-CVS/emacs/lisp/emacs-lisp/byte-opt.el
> IO error reading /home/dann/emacs/Emacs-CVS/emacs/lisp/subdirs.el: Input/output error
> make[2]: *** [autoloads] Error 255
> make[2]: *** Waiting for unfinished jobs....
>
> Is there any reason $(lisp)/subdirs.el should start a recursive make
> instead of just depending on update-subdirs like in the patch below?
Is there a reason for the I/O error? I don't see why it should
happen; do you?
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: parallel make bug
2007-06-27 3:24 ` Eli Zaretskii
@ 2007-06-27 5:29 ` Dan Nicolaescu
2007-06-27 9:06 ` Andreas Schwab
2007-06-27 17:57 ` Eli Zaretskii
0 siblings, 2 replies; 12+ messages in thread
From: Dan Nicolaescu @ 2007-06-27 5:29 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: emacs-devel
Eli Zaretskii <eliz@gnu.org> writes:
> > From: Dan Nicolaescu <dann@ics.uci.edu>
> > Date: Tue, 26 Jun 2007 14:10:05 -0700
> >
> >
> > Doing make -j8 bootstrap on a 2 processor machine:
> >
> > Directories: /home/dann/emacs/Emacs-CVS/emacs/lisp/. /home/dann/emacs/Emacs-CVS/emacs/lisp/./eshell /home/dann/emacs/Emacs-CVS/emacs/lisp/./mail /home/dann/emacs/Emacs-CVS/emacs/lisp/./language /home/dann/emacs/Emacs-CVS/emacs/lisp/./emacs-lisp /home/dann/emacs/Emacs-CVS/emacs/lisp/./calc /home/dann/emacs/Emacs-CVS/emacs/lisp/./gnus /home/dann/emacs/Emacs-CVS/emacs/lisp/./textmodes /home/dann/emacs/Emacs-CVS/emacs/lisp/./net /home/dann/emacs/Emacs-CVS/emacs/lisp/./mh-e /home/dann/emacs/Emacs-CVS/emacs/lisp/./calendar /home/dann/emacs/Emacs-CVS/emacs/lisp/./progmodes /home/dann/emacs/Emacs-CVS/emacs/lisp/./erc /home/dann/emacs/Emacs-CVS/emacs/lisp/./international /home/dann/emacs/Emacs-CVS/emacs/lisp/./emulation /home/dann/emacs/Emacs-CVS/emacs/lisp/./url /home/dann/emacs/Emacs-CVS/emacs/lisp/./play
> > Compiling /home/dann/emacs/Emacs-CVS/emacs/lisp/emacs-lisp/byte-opt.el
> > IO error reading /home/dann/emacs/Emacs-CVS/emacs/lisp/subdirs.el: Input/output error
> > make[2]: *** [autoloads] Error 255
> > make[2]: *** Waiting for unfinished jobs....
> >
> > Is there any reason $(lisp)/subdirs.el should start a recursive make
> > instead of just depending on update-subdirs like in the patch below?
>
> Is there a reason for the I/O error? I don't see why it should
> happen; do you?
For bootstrap, update-subdirs and autoloads can execute in
parallel. autoloads will run another make to do update-subdirs.
If "autoloads" creates subdirs.el first while "update-subdirs" is not
running, it is possible that later "update-subdirs" deletes subdirs.el
while "autoloads" is using it. Am I off base here?
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: parallel make bug
2007-06-27 5:29 ` Dan Nicolaescu
@ 2007-06-27 9:06 ` Andreas Schwab
2007-06-27 16:15 ` Dan Nicolaescu
2007-06-27 17:57 ` Eli Zaretskii
1 sibling, 1 reply; 12+ messages in thread
From: Andreas Schwab @ 2007-06-27 9:06 UTC (permalink / raw)
To: Dan Nicolaescu; +Cc: Eli Zaretskii, emacs-devel
Dan Nicolaescu <dann@ics.uci.edu> writes:
> For bootstrap, update-subdirs and autoloads can execute in
> parallel. autoloads will run another make to do update-subdirs.
> If "autoloads" creates subdirs.el first while "update-subdirs" is not
> running, it is possible that later "update-subdirs" deletes subdirs.el
> while "autoloads" is using it. Am I off base here?
But why do you get an I/O error? That looks like a hardware problem.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: parallel make bug
2007-06-27 9:06 ` Andreas Schwab
@ 2007-06-27 16:15 ` Dan Nicolaescu
2007-06-27 17:03 ` Andreas Schwab
0 siblings, 1 reply; 12+ messages in thread
From: Dan Nicolaescu @ 2007-06-27 16:15 UTC (permalink / raw)
To: Andreas Schwab; +Cc: Eli Zaretskii, emacs-devel
Andreas Schwab <schwab@suse.de> writes:
> Dan Nicolaescu <dann@ics.uci.edu> writes:
>
> > For bootstrap, update-subdirs and autoloads can execute in
> > parallel. autoloads will run another make to do update-subdirs.
> > If "autoloads" creates subdirs.el first while "update-subdirs" is not
> > running, it is possible that later "update-subdirs" deletes subdirs.el
> > while "autoloads" is using it. Am I off base here?
>
> But why do you get an I/O error? That looks like a hardware problem.
Doubtful, the machine I used is quite solid. IMO its probably
something to do with NFS (the source and objs directories are on
NFS).
Anyway, the error does not occur all the time, sometimes the failure is:
Cannot open load file: autoload
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: parallel make bug
2007-06-27 16:15 ` Dan Nicolaescu
@ 2007-06-27 17:03 ` Andreas Schwab
2007-06-28 1:30 ` Dan Nicolaescu
0 siblings, 1 reply; 12+ messages in thread
From: Andreas Schwab @ 2007-06-27 17:03 UTC (permalink / raw)
To: Dan Nicolaescu; +Cc: Eli Zaretskii, emacs-devel
Dan Nicolaescu <dann@ics.uci.edu> writes:
> Anyway, the error does not occur all the time, sometimes the failure is:
>
> Cannot open load file: autoload
Does this help?
--- Makefile.in 24 Apr 2007 10:31:30 +0200 1.85
+++ Makefile.in 27 Jun 2007 19:01:20 +0200
@@ -239,7 +239,7 @@ MH_E_SRC = $(lisp)/mh-e/mh-acros.el $(li
$(lisp)/mh-e/mh-xface.el
mh-autoloads: $(lisp)/mh-e/mh-loaddefs.el
-$(lisp)/mh-e/mh-loaddefs.el: $(MH_E_SRC)
+$(lisp)/mh-e/mh-loaddefs.el: $(lisp)/subdirs.el $(MH_E_SRC)
echo ";;; mh-loaddefs.el --- automatically extracted autoloads" > $@
echo "" >> $@
echo ";; Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc." >> $@
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: parallel make bug
2007-06-27 5:29 ` Dan Nicolaescu
2007-06-27 9:06 ` Andreas Schwab
@ 2007-06-27 17:57 ` Eli Zaretskii
1 sibling, 0 replies; 12+ messages in thread
From: Eli Zaretskii @ 2007-06-27 17:57 UTC (permalink / raw)
To: Dan Nicolaescu; +Cc: emacs-devel
> Cc: emacs-devel@gnu.org
> From: Dan Nicolaescu <dann@ics.uci.edu>
> Date: Tue, 26 Jun 2007 22:29:52 -0700
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> > > From: Dan Nicolaescu <dann@ics.uci.edu>
> > > Date: Tue, 26 Jun 2007 14:10:05 -0700
> > >
> > >
> > > Doing make -j8 bootstrap on a 2 processor machine:
> > >
> > > Directories: /home/dann/emacs/Emacs-CVS/emacs/lisp/. /home/dann/emacs/Emacs-CVS/emacs/lisp/./eshell /home/dann/emacs/Emacs-CVS/emacs/lisp/./mail /home/dann/emacs/Emacs-CVS/emacs/lisp/./language /home/dann/emacs/Emacs-CVS/emacs/lisp/./emacs-lisp /home/dann/emacs/Emacs-CVS/emacs/lisp/./calc /home/dann/emacs/Emacs-CVS/emacs/lisp/./gnus /home/dann/emacs/Emacs-CVS/emacs/lisp/./textmodes /home/dann/emacs/Emacs-CVS/emacs/lisp/./net /home/dann/emacs/Emacs-CVS/emacs/lisp/./mh-e /home/dann/emacs/Emacs-CVS/emacs/lisp/./calendar /home/dann/emacs/Emacs-CVS/emacs/lisp/./progmodes /home/dann/emacs/Emacs-CVS/emacs/lisp/./erc /home/dann/emacs/Emacs-CVS/emacs/lisp/./international /home/dann/emacs/Emacs-CVS/emacs/lisp/./emulation /home/dann/emacs/Emacs-CVS/emacs/lisp/./url /home/dann/emacs/Emacs-CVS/emacs/lisp/./play
> > > Compiling /home/dann/emacs/Emacs-CVS/emacs/lisp/emacs-lisp/byte-opt.el
> > > IO error reading /home/dann/emacs/Emacs-CVS/emacs/lisp/subdirs.el: Input/output error
> > > make[2]: *** [autoloads] Error 255
> > > make[2]: *** Waiting for unfinished jobs....
> > >
> > > Is there any reason $(lisp)/subdirs.el should start a recursive make
> > > instead of just depending on update-subdirs like in the patch below?
> >
> > Is there a reason for the I/O error? I don't see why it should
> > happen; do you?
>
> For bootstrap, update-subdirs and autoloads can execute in
> parallel. autoloads will run another make to do update-subdirs.
> If "autoloads" creates subdirs.el first while "update-subdirs" is not
> running, it is possible that later "update-subdirs" deletes subdirs.el
> while "autoloads" is using it. Am I off base here?
If you think the conflict is between "autoloads" and "update-subdirs",
then the usual solution is to serialize them: make "update-subdirs"
touch some file, and make "autoloads" depend on that file.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: parallel make bug
2007-06-27 17:03 ` Andreas Schwab
@ 2007-06-28 1:30 ` Dan Nicolaescu
0 siblings, 0 replies; 12+ messages in thread
From: Dan Nicolaescu @ 2007-06-28 1:30 UTC (permalink / raw)
To: Andreas Schwab; +Cc: Eli Zaretskii, emacs-devel
Andreas Schwab <schwab@suse.de> writes:
> Dan Nicolaescu <dann@ics.uci.edu> writes:
>
> > Anyway, the error does not occur all the time, sometimes the failure is:
> >
> > Cannot open load file: autoload
>
> Does this help?
Yep, I couldn't make the build fail after applying this patch.
Please don't forget the emacs-22 branch when you check it in.
Thanks!
^ permalink raw reply [flat|nested] 12+ messages in thread
* parallel make bug
@ 2008-08-01 16:57 Chip Coldwell
0 siblings, 0 replies; 12+ messages in thread
From: Chip Coldwell @ 2008-08-01 16:57 UTC (permalink / raw)
To: emacs-devel
I believe I may also have uncovered a parallel make bug, building on
the Fedora 9 GNU/Linux distribution:
make[2]: Leaving directory `/builddir/build/BUILD/emacs-23.0.60/leim'
Compiling /builddir/build/BUILD/emacs-23.0.60/lisp/diff.el
Wrote /builddir/build/BUILD/emacs-23.0.60/lisp/dframe.elc
Compiling /builddir/build/BUILD/emacs-23.0.60/lisp/dired-aux.el
Wrote /builddir/build/BUILD/emacs-23.0.60/lisp/desktop.elc
Compiling /builddir/build/BUILD/emacs-23.0.60/lisp/dired-x.el
Wrote /builddir/build/BUILD/emacs-23.0.60/lisp/diff.elc
Compiling /builddir/build/BUILD/emacs-23.0.60/lisp/dired.el
In toplevel form:
dired-x.el:108:1:Error: Required feature `dired-aux' was not provided
make[2]: *** [/builddir/build/BUILD/emacs-23.0.60/lisp/dired-x.elc] Error 1
make[2]: *** Waiting for unfinished jobs....
Wrote /builddir/build/BUILD/emacs-23.0.60/lisp/dired-aux.elc
Wrote /builddir/build/BUILD/emacs-23.0.60/lisp/diff-mode.elc
Wrote /builddir/build/BUILD/emacs-23.0.60/lisp/dired.elc
Here it appears that dired-aux.el and dired-x.el are being built
simultaneously, despite the dependency on dired-aux by dired-x:
$ egrep -e ^\\\(require dired-x.el
(require 'dired)
(require 'dired-aux)
Indeed, it looks like both dired and dired-aux need to compile before
dired-x, IIUC.
Chip
--
Charles M. "Chip" Coldwell
Senior Software Engineer
Red Hat, Inc
978-392-2426
GPG ID: 852E052F
GPG FPR: 77E5 2B51 4907 F08A 7E92 DE80 AFA9 9A8F 852E 052F
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2008-08-01 16:57 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-26 21:10 parallel make bug Dan Nicolaescu
2007-06-27 1:28 ` Stefan Monnier
2007-06-27 1:59 ` Dan Nicolaescu
2007-06-27 2:31 ` Stefan Monnier
2007-06-27 3:24 ` Eli Zaretskii
2007-06-27 5:29 ` Dan Nicolaescu
2007-06-27 9:06 ` Andreas Schwab
2007-06-27 16:15 ` Dan Nicolaescu
2007-06-27 17:03 ` Andreas Schwab
2007-06-28 1:30 ` Dan Nicolaescu
2007-06-27 17:57 ` Eli Zaretskii
-- strict thread matches above, loose matches on Subject: below --
2008-08-01 16:57 Chip Coldwell
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.