From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#24974: CANNOT_DUMP build assumes Emacs is already installed Date: Sun, 20 Nov 2016 13:38:27 -0800 Organization: UCLA Computer Science Department Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1479677962 11631 195.159.176.226 (20 Nov 2016 21:39:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 20 Nov 2016 21:39:22 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 To: 24974@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 20 22:39:18 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c8ZpW-00024K-3U for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Nov 2016 22:39:18 +0100 Original-Received: from localhost ([::1]:46311 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c8ZpX-0005pf-WC for geb-bug-gnu-emacs@m.gmane.org; Sun, 20 Nov 2016 16:39:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59719) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c8ZpJ-0005o4-Jn for bug-gnu-emacs@gnu.org; Sun, 20 Nov 2016 16:39:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c8ZpG-00039i-Eo for bug-gnu-emacs@gnu.org; Sun, 20 Nov 2016 16:39:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49303) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c8ZpG-00039e-BT for bug-gnu-emacs@gnu.org; Sun, 20 Nov 2016 16:39:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1c8ZpG-0007Q4-6a for bug-gnu-emacs@gnu.org; Sun, 20 Nov 2016 16:39:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Nov 2016 21:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24974 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Emacs bug reports and feature requests Original-Received: via spool by submit@debbugs.gnu.org id=B.147967792928489 (code B ref -1); Sun, 20 Nov 2016 21:39:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 Nov 2016 21:38:49 +0000 Original-Received: from localhost ([127.0.0.1]:36468 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c8Zp3-0007PQ-6D for submit@debbugs.gnu.org; Sun, 20 Nov 2016 16:38:49 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:40437) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c8Zp0-0007P0-Th for submit@debbugs.gnu.org; Sun, 20 Nov 2016 16:38:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c8Zou-00036m-Tl for submit@debbugs.gnu.org; Sun, 20 Nov 2016 16:38:41 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:48388) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c8Zou-00036i-QB for submit@debbugs.gnu.org; Sun, 20 Nov 2016 16:38:40 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59636) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c8Zot-0005mm-Pf for bug-gnu-emacs@gnu.org; Sun, 20 Nov 2016 16:38:40 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c8Zoq-000364-MD for bug-gnu-emacs@gnu.org; Sun, 20 Nov 2016 16:38:39 -0500 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:44822) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c8Zoq-00035r-GL for bug-gnu-emacs@gnu.org; Sun, 20 Nov 2016 16:38:36 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 2BE6716009B for ; Sun, 20 Nov 2016 13:38:34 -0800 (PST) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id Z-B4891RLLk9 for ; Sun, 20 Nov 2016 13:38:33 -0800 (PST) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 6341D16009C for ; Sun, 20 Nov 2016 13:38:33 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 3iCMo4JE_6Rb for ; Sun, 20 Nov 2016 13:38:33 -0800 (PST) Original-Received: from [192.168.1.9] (unknown [47.153.178.162]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 43E0F16009B for ; Sun, 20 Nov 2016 13:38:33 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:125927 Archived-At: The CANNOT_DUMP build procedure is confused: it assumes that the current = version=20 of Emacs is already installed, and Emacs builds can fail (or be subtly wr= ong)=20 when this assumption is not true. To reproduce the problem, pick a direct= ory=20 that doesn't exist ("/tmp/prefix" in the example below) and configure and= build=20 this way: ./configure --prefix=3D/tmp/prefix CANNOT_DUMP=3Dyes make bootstrap On my platform (Ubuntu 16.04 x86-64) the build fails as follows: ln -f temacs bootstrap-emacs make -C ../lisp compile-first EMACS=3D"../src/bootstrap-emacs" make[3]: Entering directory '/home/eggert/src/gnu/emacs/static-checking/l= isp' ELC emacs-lisp/macroexp.elc Warning: Lisp directory '/tmp/prefix/share/emacs/26.0.50/lisp': No such f= ile or=20 directory Cannot open load file: No such file or directory, loadup.el Makefile:282: recipe for target 'emacs-lisp/macroexp.elc' failed The full command that fails (abbreviated "ELC emacs-lisp/macrorexp.elc ab= ove) is: EMACSLOADPATH=3D '../src/bootstrap-emacs' -batch --no-site-file --no-site= -lisp -l=20 autoload \ --eval "(setq generate-autoload-cookie \";;;###cal-autoload\")" \ --eval "(setq generated-autoload-file (expand-file-name (unmsys--file= -name=20 \"calendar/cal-loaddefs.el\")))" \ -f batch-update-autoloads ./calendar Running strace on this command reveals that it attempts to open only: /tmp/prefix/share/emacs/26.0.50/lisp/loadup.el.elc /tmp/prefix/share/emacs/26.0.50/lisp/loadup.el.el /tmp/prefix/share/emacs/26.0.50/lisp/loadup.el and it never attempts to open loadup.el in the current directory, which i= s=20 what's needed here. By the way, why does Emacs try to open ".../loadup.el.elc"? Isn't that a = waste=20 of time?