all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Race condition on make?
@ 2022-11-14  8:53 Juanma Barranquero
  2022-11-15  3:36 ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Juanma Barranquero @ 2022-11-14  8:53 UTC (permalink / raw)
  To: Emacs developers

[-- Attachment #1: Type: text/plain, Size: 332 bytes --]

$ make
  ELC+ELN  ../lisp/simple.elc
  ELC+ELN  ../lisp/minibuffer.elc
Reloading Rstealloading se tsailmpele .eslimp
le.el
LoadinLg d:o/ading
d:/Devel/emacs/repo/truDnekvel/emacs/repo/trunk/lisp/l/isp/simple.el
(source)...simp
le.el (source)...
Reloading stale minibuffer.el

Is this the result of a race condition with a -jN make?

[-- Attachment #2: Type: text/html, Size: 457 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Race condition on make?
  2022-11-14  8:53 Race condition on make? Juanma Barranquero
@ 2022-11-15  3:36 ` Eli Zaretskii
  2022-11-15  4:23   ` Juanma Barranquero
  0 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2022-11-15  3:36 UTC (permalink / raw)
  To: Juanma Barranquero; +Cc: emacs-devel

> From: Juanma Barranquero <lekktu@gmail.com>
> Date: Mon, 14 Nov 2022 09:53:15 +0100
> 
> $ make
>   ELC+ELN  ../lisp/simple.elc
>   ELC+ELN  ../lisp/minibuffer.elc
> Reloading Rstealloading se tsailmpele .eslimp
> le.el
> LoadinLg d:o/ading d:/Devel/emacs/repo/truDnekvel/emacs/repo/trunk/lisp/l/isp/simple.el (source)...simp
> le.el (source)...
> Reloading stale minibuffer.el
> 
> Is this the result of a race condition with a -jN make?

Where do you see a race condition?



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Race condition on make?
  2022-11-15  3:36 ` Eli Zaretskii
@ 2022-11-15  4:23   ` Juanma Barranquero
  2022-11-15  7:06     ` Gerd Möllmann
  2022-11-15 13:49     ` Eli Zaretskii
  0 siblings, 2 replies; 8+ messages in thread
From: Juanma Barranquero @ 2022-11-15  4:23 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 98 bytes --]

I see the output of several parallel instances of make (run with a single
"make -j4") intermixed.

[-- Attachment #2: Type: text/html, Size: 199 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Race condition on make?
  2022-11-15  4:23   ` Juanma Barranquero
@ 2022-11-15  7:06     ` Gerd Möllmann
  2022-11-15 18:58       ` Juanma Barranquero
  2022-11-15 13:49     ` Eli Zaretskii
  1 sibling, 1 reply; 8+ messages in thread
From: Gerd Möllmann @ 2022-11-15  7:06 UTC (permalink / raw)
  To: lekktu; +Cc: eliz, emacs-devel

I think you are seeing bug#58653 (not a bug in Emacs, I guess).

I'm now using MAKEFLAGS="-j8 --output-sync=line", with gmake 4.4.  Older 
versions, for instance 3.81 which comes with Xcode, don't seem to 
support --output-sync.  If not syncing is a feature, I'm kind of in 
doubt, but hey...



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Race condition on make?
  2022-11-15  4:23   ` Juanma Barranquero
  2022-11-15  7:06     ` Gerd Möllmann
@ 2022-11-15 13:49     ` Eli Zaretskii
  2022-11-15 19:00       ` Juanma Barranquero
  1 sibling, 1 reply; 8+ messages in thread
From: Eli Zaretskii @ 2022-11-15 13:49 UTC (permalink / raw)
  To: Juanma Barranquero; +Cc: emacs-devel

> From: Juanma Barranquero <lekktu@gmail.com>
> Date: Tue, 15 Nov 2022 05:23:56 +0100
> Cc: emacs-devel@gnu.org
> 
> I see the output of several parallel instances of make (run with a single "make -j4") intermixed.

That's because 4 programs are writing at the same time to the same
device.  The OS in most cases succeeds in separating the outputs, but
that is not guaranteed.



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Race condition on make?
  2022-11-15  7:06     ` Gerd Möllmann
@ 2022-11-15 18:58       ` Juanma Barranquero
  0 siblings, 0 replies; 8+ messages in thread
From: Juanma Barranquero @ 2022-11-15 18:58 UTC (permalink / raw)
  To: Gerd Möllmann; +Cc: eliz, emacs-devel

[-- Attachment #1: Type: text/plain, Size: 60 bytes --]

It's GNU make 4.3, so I'll try --output-sync=line.

Thanks.

[-- Attachment #2: Type: text/html, Size: 165 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Race condition on make?
  2022-11-15 13:49     ` Eli Zaretskii
@ 2022-11-15 19:00       ` Juanma Barranquero
  2022-11-15 20:11         ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Juanma Barranquero @ 2022-11-15 19:00 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 338 bytes --]

On Tue, Nov 15, 2022 at 2:49 PM Eli Zaretskii <eliz@gnu.org> wrote:

> That's because 4 programs are writing at the same time to the same
> device.  The OS in most cases succeeds in separating the outputs, but
> that is not guaranteed.

Ok, though I had never seen such a thing before in many, many emacs
compilations and bootstrappings.

[-- Attachment #2: Type: text/html, Size: 521 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Race condition on make?
  2022-11-15 19:00       ` Juanma Barranquero
@ 2022-11-15 20:11         ` Eli Zaretskii
  0 siblings, 0 replies; 8+ messages in thread
From: Eli Zaretskii @ 2022-11-15 20:11 UTC (permalink / raw)
  To: Juanma Barranquero; +Cc: emacs-devel

> From: Juanma Barranquero <lekktu@gmail.com>
> Date: Tue, 15 Nov 2022 20:00:27 +0100
> Cc: emacs-devel@gnu.org
> 
> On Tue, Nov 15, 2022 at 2:49 PM Eli Zaretskii <eliz@gnu.org> wrote:
> 
> > That's because 4 programs are writing at the same time to the same
> > device.  The OS in most cases succeeds in separating the outputs, but
> > that is not guaranteed.
> 
> Ok, though I had never seen such a thing before in many, many emacs compilations and bootstrappings.

It's very rare on MS-Windows, at least IME.



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-11-15 20:11 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-14  8:53 Race condition on make? Juanma Barranquero
2022-11-15  3:36 ` Eli Zaretskii
2022-11-15  4:23   ` Juanma Barranquero
2022-11-15  7:06     ` Gerd Möllmann
2022-11-15 18:58       ` Juanma Barranquero
2022-11-15 13:49     ` Eli Zaretskii
2022-11-15 19:00       ` Juanma Barranquero
2022-11-15 20:11         ` Eli Zaretskii

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.