GNU bug report logs - #3883
Interleaved builds in separate trees create different versions

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Rob Browning <rlb@HIDDEN>; Keywords: unreproducible; dated Sun, 19 Jul 2009 20:10:05 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) unreproducible. Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 3883 <at> debbugs.gnu.org:


Received: (at 3883) by debbugs.gnu.org; 14 Mar 2025 12:06:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 14 08:06:40 2025
Received: from localhost ([127.0.0.1]:60441 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tt3oF-0001wF-Cr
	for submit <at> debbugs.gnu.org; Fri, 14 Mar 2025 08:06:39 -0400
Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]:50254)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <maurooaranda@HIDDEN>)
 id 1tt3oC-0001vt-5C
 for 3883 <at> debbugs.gnu.org; Fri, 14 Mar 2025 08:06:37 -0400
Received: by mail-pl1-x62e.google.com with SMTP id
 d9443c01a7336-225b5448519so36746875ad.0
 for <3883 <at> debbugs.gnu.org>; Fri, 14 Mar 2025 05:06:36 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1741953989; x=1742558789; darn=debbugs.gnu.org;
 h=content-transfer-encoding:subject:from:cc:to:content-language
 :user-agent:mime-version:date:message-id:from:to:cc:subject:date
 :message-id:reply-to;
 bh=Hmaja4pvwHFNf1nRpTLB3/oV07fJFLTy0ynBrHkpiKo=;
 b=eggZ9O3rEKpGqoue6k7spF5maJyQELIwgEQFg80eItd2d8vHx644H5ESwRY9XJEqWz
 sv44FQWBFBPtmm1K7JRr54ZSArBUYfFRnYG7YM6tV8Vem/Pryp5LF0cLKotmSfN2cP5u
 PfcCFL/ScJE1X4oHVhS3V+AWgg7wVg97oMXKDHUEuJYGeWvBbAsfKXBdBJ0eWPXtdZ7I
 uYOAGjwc4HYZiuK0wAeuxyz2S6tVcBndU3XlNjYpvi1UO0/pI4vgTxBEDm4ryrgh0++5
 Tngb5tOKFb/xHYXpjFE3egN7W8M+Fv1N2g1lqLE5SyFOdBaYM3tXMRapFbKQ1xk6240P
 7u6A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1741953989; x=1742558789;
 h=content-transfer-encoding:subject:from:cc:to:content-language
 :user-agent:mime-version:date:message-id:x-gm-message-state:from:to
 :cc:subject:date:message-id:reply-to;
 bh=Hmaja4pvwHFNf1nRpTLB3/oV07fJFLTy0ynBrHkpiKo=;
 b=iXu8Qr4CSKE1RGIn1352WvOt9FxKCv6AuALCetmt2SMeDpWgboGFhGCQBhOTBaDn6O
 BDnhQazq2OIR8uE5g7RQV+k3HWjSSjNqn87tU4snq51El0bf/jKAAzpXyHTTYLymRnTI
 rHONbpY/m8KQ3DDzADxWJXidl8i4rUlghNb2LeeESt0sRvu3pTIbtmj+T1UiQ3aFGYjR
 IZUyruZC5h4snFclxhHV1/d+jd/jANSQRmS2I0dO1bwdGVDUfDY4bTsSnUeZhZvpAJ0a
 wUmNOmJnGQzDq03ateNjB4F4mEg8IYp+a4MkA72rY3F1oDDr6XZ0uH/ZdRlKJyUVaLVH
 +mRA==
X-Gm-Message-State: AOJu0YzmyyS78HIteOX3U0PByIWw2lgzynZYAV3ZQmlQSYYsjaBDSbtB
 Zgd2Ik16LV6ramSmjkcwigilrssW+ec/expYdcOYpIhm8M/G8cR+kP8x8W3A
X-Gm-Gg: ASbGnctmzEv5XX0KYkHL8v5zU7sW+jBnU0yXXdbWbul4/URmp2N9TBEWBQPXNdILuoh
 a1LTSYgTe3+CuPgq3DLk3879+4RMF7Ckn6Oc326750kea8nO2osV2toVEOmcAppW4QhmA4lvtDC
 SsZTraQSdALWq4tCUtvFywexIsWJPGTJXWEzGx2XJn13KzWd+fwR5DRWlzHYXV/YvM0BBgfAE1i
 KRg/ipg4MXsMM66ILLcWk3FraQ89avkR9KAIkku3EAiybPvw2takRxz1cea9clY+VxkZEvqFb6a
 G33OmT17NqrRqlx5bEiEmLyxbQfoxZi5tboGoJybtIvb3eE2PlY=
X-Google-Smtp-Source: AGHT+IHCDHSdxaH6xg9uZ6FzLMygVxP7Wx2eB4YNBFL07KlZD+njgH61nDcnqruQdS7GmfJK/UuE/w==
X-Received: by 2002:a05:6a21:99a1:b0:1f5:535c:82dc with SMTP id
 adf61e73a8af0-1f5c1327c96mr3193939637.42.1741953989366; 
 Fri, 14 Mar 2025 05:06:29 -0700 (PDT)
Received: from [192.168.0.234] ([181.228.33.6])
 by smtp.gmail.com with ESMTPSA id
 41be03b00d2f7-af56ea7bd01sm2201704a12.61.2025.03.14.05.06.28
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Fri, 14 Mar 2025 05:06:28 -0700 (PDT)
Message-ID: <bb35796a-3984-4d05-9ccf-88f6c0fb5924@HIDDEN>
Date: Fri, 14 Mar 2025 09:06:26 -0300
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US
To: 3883 <at> debbugs.gnu.org
From: Mauro Aranda <maurooaranda@HIDDEN>
Subject: Re: bug#3883: Interleaved builds in separate trees create different
 versions
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 3883
Cc: Rob Browning <rlb@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Rob Browning <rlb@HIDDEN> writes:

 > If you try to build two trees from the same source directory at the
 > same time, alternating the respective SRCDIR/configure, make, and make
 > install operations, the first tree will end up with a ".2" version while
 > the second tree will end up with a ".1" version.  This doesn't happen if
 > you don't have separate "make" and "make install" steps.
 >
 > I don't know if this behavior is intentional, but in case it's not, I
 > thought I'd report it.
 >
 > You can trivially reproduce the situation with this script (using the
 > 23.0.96 archive), and note that the same thing still happens if you omit
 > the differing configure arguments:
 >
 > #!/bin/bash
 >
 > set -e
 > set -x
 >
 > tar xf emacs-23.0.96.tar.gz
 >
 > mkdir -p build/1
 > mkdir -p build/2
 >
 > (cd build/1 && ../../emacs-23.0.96/configure --with-x=yes)
 > (cd build/2 && ../../emacs-23.0.96/configure --with-x=no)
 >
 > (cd build/1 && make)
 > (cd build/2 && make)
 >
 > mkdir -p install/1
 > mkdir -p install/2
 >
 > inst_1="$(pwd)/install/1"
 > inst_2="$(pwd)/install/2"
 >
 > (cd build/1 && make DESTDIR="${inst_1}")
 > (cd build/2 && make DESTDIR="${inst_2}")
 >
 > find -name "emacs-23.*"
 > find -name "DOC*"

I'm not able to reproduce it.  This was 16 years ago, perhaps it got
fixed someway? I can't tell it from the Makefile, but perhaps someone
can.






Information forwarded to bug-gnu-emacs@HIDDEN:
bug#3883; Package emacs. Full text available.

Message received at 3883 <at> debbugs.gnu.org:


Received: (at 3883) by debbugs.gnu.org; 6 Apr 2011 22:02:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Apr 06 18:02:38 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1Q7aoA-0005La-7a
	for submit <at> debbugs.gnu.org; Wed, 06 Apr 2011 18:02:38 -0400
Received: from fencepost.gnu.org ([140.186.70.10])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <rgm@HIDDEN>) id 1Q7ao7-0005LM-VU
	for 3883 <at> debbugs.gnu.org; Wed, 06 Apr 2011 18:02:36 -0400
Received: from localhost ([127.0.0.1]:51509)
	by fencepost.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rgm@HIDDEN>)
	id 1Q7ao2-0005B9-S0; Wed, 06 Apr 2011 18:02:30 -0400
From: Glenn Morris <rgm@HIDDEN>
To: Rob Browning <rlb@HIDDEN>
Subject: Re: Bug#3883: Interleaved builds in separate trees create different
	versions
References: <87r5wc30h2.fsf@HIDDEN>
X-Spook: Cohiba infowar PGP embassy SP4 STARLAN terrorism INS
X-Ran: M(+,Z8Me_QCYvvnt{0;LJZghM%E-.9B:,Ee=U)8e-VIneT7G9h^0|R*y$h4&`#J;6b+)+=
X-Hue: yellow
X-Attribution: GM
Date: Wed, 06 Apr 2011 18:02:30 -0400
In-Reply-To: <87r5wc30h2.fsf@HIDDEN> (Rob Browning's message
	of "Sun, 19 Jul 2009 13:02:33 -0700")
Message-ID: <t4y63n9gy1.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -4.8 (----)
X-Debbugs-Envelope-To: 3883
Cc: 3883 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.8 (----)

(A very delayed reply)

Rob Browning wrote:

> If you try to build two trees from the same source directory at the
> same time, alternating the respective SRCDIR/configure, make, and make
> install operations, the first tree will end up with a ".2" version while
> the second tree will end up with a ".1" version.

I think this happens because the second make recompiles the .el files,
and the output .elc files are written into the lisp/ directory in the
source-tree, not the build directory. Then the first build thinks it
need to redump Emacs, because the .elc files have newer timestamps.

Neither make should need to compile the .el files at all, but this is
tricky, see http://debbugs.gnu.org/cgi/bugreport.cgi?bug=2151 .

Arguably, the compiled .elc files should be written into the build
tree's lisp/ directory, not the source lisp/ directory.
But, they are supposed to be platform independent, so maybe the current
set-up is designed to let them be shared between all builds.
But, they get recompiled anyway, so that doesn't actually work...




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#3883; Package emacs. Full text available.
Severity set to `minor' from `normal' Request was from Glenn Morris <rgm@HIDDEN> to control@HIDDEN. Full text available.

Message received at submit@HIDDEN:


Received: (at submit) by emacsbugs.donarmstrong.com; 19 Jul 2009 20:02:44 +0000
From rlb@HIDDEN Sun Jul 19 13:02:43 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=-4.0 required=4.0 tests=AWL autolearn=ham
	version=3.2.5-bugs.debian.org_2005_01_02
Received: from lists.gnu.org (lists.gnu.org [199.232.76.165])
	by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n6JK2d24027714
	for <submit@HIDDEN>; Sun, 19 Jul 2009 13:02:41 -0700
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1MScal-0002db-CY
	for bug-gnu-emacs@HIDDEN; Sun, 19 Jul 2009 16:02:39 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)
	id 1MScaj-0002bC-Pu
	for bug-gnu-emacs@HIDDEN; Sun, 19 Jul 2009 16:02:39 -0400
Received: from [199.232.76.173] (port=37274 helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43)
	id 1MScaj-0002ay-Mz
	for bug-gnu-emacs@HIDDEN; Sun, 19 Jul 2009 16:02:37 -0400
Received: from li12-156.members.linode.com ([70.85.129.156]:49243 helo=defaultvalue.org)
	by monty-python.gnu.org with esmtp (Exim 4.60)
	(envelope-from <rlb@HIDDEN>)
	id 1MScaj-0006Up-0Y
	for bug-gnu-emacs@HIDDEN; Sun, 19 Jul 2009 16:02:37 -0400
Received: from omen.defaultvalue.org (localhost [127.0.0.1])
	by defaultvalue.org (Postfix) with ESMTP id 6E4C390DA7
	for <bug-gnu-emacs@HIDDEN>; Sun, 19 Jul 2009 13:02:34 -0700 (PDT)
Received: from raven.defaultvalue.org (raven.defaultvalue.org [192.168.1.7])
	by omen.defaultvalue.org (Postfix) with ESMTP id 27C6C50300
	for <bug-gnu-emacs@HIDDEN>; Sun, 19 Jul 2009 13:02:34 -0700 (PDT)
Received: by raven.defaultvalue.org (Postfix, from userid 1000)
	id EDE8F7BA941; Sun, 19 Jul 2009 13:02:33 -0700 (PDT)
To: bug-gnu-emacs@HIDDEN
Subject: Interleaved builds in separate trees create different versions
From: Rob Browning <rlb@HIDDEN>
Date: Sun, 19 Jul 2009 13:02:33 -0700
Message-ID: <87r5wc30h2.fsf@HIDDEN>
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2)


If you try to build two trees from the same source directory at the
same time, alternating the respective SRCDIR/configure, make, and make
install operations, the first tree will end up with a ".2" version while
the second tree will end up with a ".1" version.  This doesn't happen if
you don't have separate "make" and "make install" steps.

I don't know if this behavior is intentional, but in case it's not, I
thought I'd report it.

You can trivially reproduce the situation with this script (using the
23.0.96 archive), and note that the same thing still happens if you omit
the differing configure arguments:

#!/bin/bash

set -e
set -x

tar xf emacs-23.0.96.tar.gz

mkdir -p build/1
mkdir -p build/2

(cd build/1 && ../../emacs-23.0.96/configure --with-x=yes)
(cd build/2 && ../../emacs-23.0.96/configure --with-x=no)

(cd build/1 && make)
(cd build/2 && make)

mkdir -p install/1
mkdir -p install/2

inst_1="$(pwd)/install/1"
inst_2="$(pwd)/install/2"

(cd build/1 && make DESTDIR="${inst_1}")
(cd build/2 && make DESTDIR="${inst_2}")

find -name "emacs-23.*"
find -name "DOC*"

-- 
Rob Browning
rlb @defaultvalue.org and @debian.org; previously @cs.utexas.edu
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4




Acknowledgement sent to Rob Browning <rlb@HIDDEN>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Report forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#3883; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 14 Mar 2025 16:30:02 UTC

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