GNU bug report logs - #4196
Parallel bytecomp may sometimes fail

Previous Next

Package: emacs;

Reported by: Glenn Morris <rgm <at> gnu.org>

Date: Thu, 20 Aug 2009 20:34:32 UTC

Severity: normal

Merged with 6858

Found in version 23.2

Fixed in version 24.1

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Glenn Morris <rgm <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#6858: closed (23.2; race condition in parallel building might
 lead to byte-compilation failure)
Date: Sat, 11 Sep 2010 18:52:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 11 Sep 2010 14:53:50 -0400
with message-id <17mxro862p.fsf <at> fencepost.gnu.org>
and subject line Re: bug#4196: Parallel bytecomp may sometimes fail
has caused the GNU bug report #4196,
regarding 23.2; race condition in parallel building might lead to byte-compilation failure
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
4196: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=4196
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Sven Joachim <svenjoac <at> gmx.de>
To: bug-gnu-emacs <at> gnu.org
Subject: 23.2;
	race condition in parallel building might lead to byte-compilation
	failure
Date: Sat, 14 Aug 2010 22:58:46 +0200
In bootstrapping, consider the situation where bar.el does
(require 'foo).  It usually does not matter whether bar.el or foo.el are
compiled first, but if they are built in parallel there is a window
where foo.elc is half written, and then byte-compiling bar.el will fail
(or worse, be misbuilt).

If that sounds unlikely because write-region is usually fast: it just
happened for the emacs23 Debian package on amd64 (with "make -j 4"), see
https://buildd.debian.org/fetch.cgi?pkg=emacs23&arch=amd64&ver=23.2%2B1-3&stamp=1281813034&file=log.
The relevant excerpt follows:

,----
| In gnus-summary-limit-to-bodies:
| gnus-sum.el:8359:57:Warning: `save-excursion' defeated by `set-buffer'
| Wrote /build/buildd-emacs23_23.2+1-3-amd64-ofeZOD/emacs23-23.2+1/debian/build-nox/lisp/gnus/gnus-win.elc
| Compiling /build/buildd-emacs23_23.2+1-3-amd64-ofeZOD/emacs23-23.2+1/debian/build-nox/lisp/gnus/gnus.el
| 
| In toplevel form:
| gnus/gnus-vm.el:36:1:Error: Required feature `gnus-sum' was not provided
| make[3]: *** [/build/buildd-emacs23_23.2+1-3-amd64-ofeZOD/emacs23-23.2+1/debian/build-nox/lisp/gnus/gnus-vm.elc] Error 1
| make[3]: *** Waiting for unfinished jobs....
| Wrote /build/buildd-emacs23_23.2+1-3-amd64-ofeZOD/emacs23-23.2+1/debian/build-nox/lisp/gnus/gnus-sum.elc
`----



[Message part 3 (message/rfc822, inline)]
From: Glenn Morris <rgm <at> gnu.org>
To: 4196-done <at> debbugs.gnu.org
Subject: Re: bug#4196: Parallel bytecomp may sometimes fail
Date: Sat, 11 Sep 2010 14:53:50 -0400
Version: 24.1

Hopefully fixed by this change:

2010-09-11  Glenn Morris  <rgm at gnu.org>

  * emacs-lisp/bytecomp.el (byte-compile-file): Create .elc files
  atomically, to avoid parallel build errors.


This bug report was last modified 14 years and 307 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.