unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Juanma Barranquero <lekktu@gmail.com>, 11649@debbugs.gnu.org
Subject: bug#11649: 24.1.50; Some compilation woes
Date: Sat, 09 Jun 2012 21:08:41 -0400	[thread overview]
Message-ID: <jwvvcj0c77x.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <83r4tou93e.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 09 Jun 2012 12:29:25 +0300")

> 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 <foo>" happens because <foo> 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 <bla>.
3- change cl-macs.elc.
4- call <bla> 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





  parent reply	other threads:[~2012-06-10  1:08 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-08 13:19 bug#11649: Some compilation woes Juanma Barranquero
2012-06-09  9:29 ` bug#11649: 24.1.50; " Eli Zaretskii
2012-06-09 10:05   ` Juanma Barranquero
2012-06-09 11:41     ` Eli Zaretskii
2012-06-09 19:28       ` Juanma Barranquero
2012-06-10  2:52         ` Eli Zaretskii
2012-06-09 10:14   ` martin rudalics
2012-06-09 11:38     ` Eli Zaretskii
2012-06-09 13:02       ` martin rudalics
2012-06-10  1:08   ` Stefan Monnier [this message]
2012-06-10  2:59     ` Eli Zaretskii
2012-06-10 14:40       ` Stefan Monnier
2012-06-10 16:05         ` Eli Zaretskii
2012-06-13 14:12           ` Stefan Monnier
2012-06-13 15:35             ` Eli Zaretskii
2012-06-13 16:39               ` Stefan Monnier
2012-06-14  3:06                 ` Eli Zaretskii
2012-06-14  3:32                   ` Stefan Monnier
2012-06-14 17:10                     ` Eli Zaretskii
2012-06-14 17:56                       ` Glenn Morris
2012-06-14 18:27                         ` Juanma Barranquero
2012-06-14 19:28                         ` Eli Zaretskii
2012-06-15 17:45                         ` Juanma Barranquero
2012-06-15 18:27                           ` Eli Zaretskii
2012-06-15 19:22                             ` Juanma Barranquero
2012-06-14 17:51                 ` Glenn Morris
2012-06-12 21:35   ` Juanma Barranquero
2012-06-12 22:27     ` Glenn Morris
2012-06-12 22:39       ` Glenn Morris
2012-06-13 11:09         ` Juanma Barranquero
2012-06-13 12:56           ` Stefan Monnier
2012-06-15  3:19           ` Stefan Monnier
2012-06-13 12:48         ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvvcj0c77x.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=11649@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=lekktu@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).