From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#11649: 24.1.50; Some compilation woes Date: Sat, 09 Jun 2012 21:08:41 -0400 Message-ID: References: <83r4tou93e.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1339290656 12770 80.91.229.3 (10 Jun 2012 01:10:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 10 Jun 2012 01:10:56 +0000 (UTC) Cc: Juanma Barranquero , 11649@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 10 03:10:54 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SdWg5-0000F3-Ou for geb-bug-gnu-emacs@m.gmane.org; Sun, 10 Jun 2012 03:10:49 +0200 Original-Received: from localhost ([::1]:37750 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SdWg5-0006iw-HM for geb-bug-gnu-emacs@m.gmane.org; Sat, 09 Jun 2012 21:10:49 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55477) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SdWeu-0003re-Eg for bug-gnu-emacs@gnu.org; Sat, 09 Jun 2012 21:09:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SdWes-0001bI-HT for bug-gnu-emacs@gnu.org; Sat, 09 Jun 2012 21:09:35 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55015) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SdWes-0001bE-EQ for bug-gnu-emacs@gnu.org; Sat, 09 Jun 2012 21:09:34 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SdWhG-0004uw-31 for bug-gnu-emacs@gnu.org; Sat, 09 Jun 2012 21:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Jun 2012 01:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11649 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11649-submit@debbugs.gnu.org id=B11649.133929067318847 (code B ref 11649); Sun, 10 Jun 2012 01:12:02 +0000 Original-Received: (at 11649) by debbugs.gnu.org; 10 Jun 2012 01:11:13 +0000 Original-Received: from localhost ([127.0.0.1]:36328 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SdWgS-0004tv-S6 for submit@debbugs.gnu.org; Sat, 09 Jun 2012 21:11:13 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:19319) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SdWgR-0004tp-Jn for 11649@debbugs.gnu.org; Sat, 09 Jun 2012 21:11:11 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai0FAG6Zu09FxIfQ/2dsb2JhbABEsEiDSYEIghUBAQQBViMFCws0EhQYDSSIHAW6CZBEA6MzgViDBQ X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="190866954" Original-Received: from 69-196-135-208.dsl.teksavvy.com (HELO pastel.home) ([69.196.135.208]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 09 Jun 2012 21:08:42 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 727FB58F22; Sat, 9 Jun 2012 21:08:41 -0400 (EDT) In-Reply-To: <83r4tou93e.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 09 Jun 2012 12:29:25 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:60824 Archived-At: > By contrast, on MS-Windows, all of the Lisp files are compiled with > the bootstrapped Emacs executable, so they all are compiled with the > interpreted byte compiler. Ahh... that could explain this high stack use. That should also impose a fairly high impact on compilation speed. >> In toplevel form: >> textmodes/rst.el:120:1:Error: Invalid byte code in >> c:/emacs/trunk/lisp/emacs-lisp/cl-macs.elc >> Checking c:/emacs/trunk/lisp/url... >> Checking c:/emacs/trunk/lisp/vc... >> Compiling c:emacs/repo/lisp/vc/pcvs.el... >> Compiler-macro error: (error "Invalid byte code in >> c:/emacs/trunk/lisp/emacs-lisp/cl-macs.elc") >> Compiler-macro error: (error "Invalid byte code in >> c:/emacs/trunk/lisp/emacs-lisp/cl-macs.elc") >> etc > I confirm these. They also happen on GNU/Linux. My interpretation of > this is that some of the files compiled by bootstrap-emacs produce > invalid .elc files (e.g., cl-macs.elc, cl-lib.elc, and pvcs-util.elc), > because once they are compiled by the non-bootstrap Emacs executable, > the errors go away. Stefan, can you please look into this? Usually "Invalid byte code in " happens because is byte-compile-dynamic (as is the case for cl-macs) and you try to call a function from it after byte-compiling a new version of the file. More specifically, the scenario is: 1- load cl-macs.elc. 2- don't call function . 3- change cl-macs.elc. 4- call which is dynamically loaded from cl-macs.elc. 5- now the offset loaded at point 1 is not valid any more, so you get an error: you need to re-load cl-macs.elc. If the above cannot be explained by this scenario, we apparently have a serious new bug. Stefan