all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Juanma Barranquero <lekktu@gmail.com>,
	Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 11649@debbugs.gnu.org
Subject: bug#11649: 24.1.50; Some compilation woes
Date: Sat, 09 Jun 2012 12:29:25 +0300	[thread overview]
Message-ID: <83r4tou93e.fsf@gnu.org> (raw)
In-Reply-To: <CAAeL0SSn17pAAsyaFiXm4TSkjDtUfW-eyWaREQ7-=E3--qDqtA@mail.gmail.com>

> From: Juanma Barranquero <lekktu@gmail.com>
> Date: Fri, 8 Jun 2012 15:19:27 +0200
> 
> 1) Bootstrapping now generates a few "lisp nesting exceeds
> max-lisp-eval-depth" errors:
> 
> In toplevel form:
> progmodes/make-mode.el:324:1:Error: Lisp nesting exceeds `max-lisp-eval-depth'
> 
> In toplevel form:
> textmodes/rst.el:271:1:Error: Lisp nesting exceeds `max-lisp-eval-depth'
> 
> In toplevel form:
> cedet/semantic/bovine/c-by.el:183:1:Error: Lisp nesting exceeds
> `max-lisp-eval-depth'

I fixed this in revision 108536, by enlarging the stack depth of the
byte compiler when it is run interpreted.  The new size is 2200; the
largest value I needed to use to compile the above files was 2000.

AFAICS, this problem doesn't show on Posix hosts because there the
byte compiler is run interpreted only for a small set of Lisp files
that are preloaded into Emacs.  After these are compiled, the
bootstrap process produces a new Emacs executable with those files
preloaded, then compiles the rest of Lisp files with this new
executable, where the byte compiler no longer runs interpreted.

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.

Volunteers are welcome to change the Windows bootstrap procedure to
include this optimization.  In the meantime, a larger stack will have
to be the solution.

> 2) Byte-compilation generates lots of new "function X might not be
> defined at runtime". AFAICS, they are generated for functions used
> before they are defined (with defun).

I don't see this with the latest trunk.  If you do, can you show a
complete recipe with the messages it produces?

> 3) Byte-compilation seems quite fragile. After a successful bootstrap,
> touch'ing every *.el in lisp/** and doing
> 
>   cd lisp
>   make recompile
> 
> produces quite a few errors:
> 
>   Generating autoloads for ibuf-macs.el...
>   Autoload cookie error in ibuf-macs.el:129 (wrong-type-argument integerp nil)
>   Autoload cookie error in ibuf-macs.el:160 (wrong-type-argument integerp nil)
>   Autoload cookie error in ibuf-macs.el:264 (wrong-type-argument integerp nil)
>   Autoload cookie error in ibuf-macs.el:299 (wrong-type-argument integerp nil)
>   Generating autoloads for ibuf-macs.el...done

Do you still see this one?

>   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?





  reply	other threads:[~2012-06-09  9:29 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 ` Eli Zaretskii [this message]
2012-06-09 10:05   ` bug#11649: 24.1.50; " 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
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

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

  git send-email \
    --in-reply-to=83r4tou93e.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=11649@debbugs.gnu.org \
    --cc=lekktu@gmail.com \
    --cc=monnier@iro.umontreal.ca \
    /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 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.