unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: 8764@debbugs.gnu.org, Christopher Browne <cbbrowne@afilias.info>,
	Stefan Monnier <monnier@iro.umontreal.ca>,
	David Engster <deng@randomsample.de>
Subject: bug#8764: 24.0.50; cedet/semantic/bovine/c-by.el:184:1:Error: Lisp nesting exceeds `max-lisp-eval-depth'
Date: Fri, 03 Dec 2021 22:20:54 +0100	[thread overview]
Message-ID: <87v905tmfd.fsf_-_@gnus.org> (raw)
In-Reply-To: <2ec9475a-fdd6-3325-b9f1-9cd7b1df6e5f@cs.ucla.edu> (Paul Eggert's message of "Fri, 5 Nov 2021 12:10:39 -0700")

Paul Eggert <eggert@cs.ucla.edu> writes:

> One hypothesis is that c-by.el depends on some other .el file being
> compiled into *.elc form (rather than being present in only source
> form), and that using 'make -j5' causes 'make' on my platform to
> (unluckily) arrange for c-by.el to be compiled before the other *.elc
> file (whatever it is) is available.

I found a reproducer:

larsi@xo:~/src/emacs/trunk$ rm lisp/emacs-lisp/cconv.elc
larsi@xo:~/src/emacs/trunk$ ./src/emacs -batch --eval '(byte-compile-file "./lisp/cedet/semantic/bovine/c-by.el")'

In toplevel form:
lisp/cedet/semantic/bovine/c-by.el:198:1: Error: Lisp nesting exceeds ‘max-lisp-eval-depth’
larsi@xo:~/src/emacs/trunk$ ./src/emacs -batch --eval '(byte-compile-file "./lisp/emacs-lisp/cconv.el")'
larsi@xo:~/src/emacs/trunk$ ./src/emacs -batch --eval '(byte-compile-file "./lisp/cedet/semantic/bovine/c-by.el")'
larsi@xo:~/src/emacs/trunk$ 

And indeed:

larsi@xo:~/src/emacs/trunk$ rm lisp/emacs-lisp/cconv.elc lisp/cedet/semantic/bovine/c-by.elc
rm: cannot remove 'lisp/cedet/semantic/bovine/c-by.elc': No such file or directory
larsi@xo:~/src/emacs/trunk$ make -j8
make -C lib all
make -C doc/lispref info

[...]

make[2]: Entering directory '/home/larsi/src/emacs/trunk/lisp'
  ELC      emacs-lisp/cconv.elc
  ELC      cedet/semantic/bovine/c-by.elc

In toplevel form:
cedet/semantic/bovine/c-by.el:198:1: Error: Lisp nesting exceeds ‘max-lisp-eval-depth’
make[2]: *** [Makefile:312: cedet/semantic/bovine/c-by.elc] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/home/larsi/src/emacs/trunk/lisp'
make[1]: *** [Makefile:342: compile-main] Error 2
make[1]: Leaving directory '/home/larsi/src/emacs/trunk/lisp'
make: *** [Makefile:439: lisp] Error 2

Now, cconv.elc is already in COMPILE_FIRST...  and adding it to
MAIN_FIRST in addition doesn't seem to help.  It doesn't seem to
actually wait until compiling MAIN_FIRST is done before doing the rest?
(If I'm reading the Makefile correctly.)

Yup.  I've now separated out the MAIN_FIRST into its own target, and
that fixes this problem.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





      reply	other threads:[~2021-12-03 21:20 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-30 16:56 bug#8764: 24.0.50; cedet/semantic/bovine/c-by.el:184:1:Error: Lisp nesting exceeds `max-lisp-eval-depth' Christopher Browne
2011-05-30 19:01 ` David Engster
2011-05-30 22:14   ` Stefan Monnier
2011-05-30 22:50     ` Stefan Monnier
2011-05-30 19:04 ` Stefan Monnier
2011-05-30 19:19   ` Christopher Browne
2011-05-30 22:15     ` Stefan Monnier
2014-02-03 23:48       ` Lars Ingebrigtsen
2021-11-05 19:10 ` bug#8764: " Paul Eggert
2021-12-03 21:20   ` Lars Ingebrigtsen [this message]

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=87v905tmfd.fsf_-_@gnus.org \
    --to=larsi@gnus.org \
    --cc=8764@debbugs.gnu.org \
    --cc=cbbrowne@afilias.info \
    --cc=deng@randomsample.de \
    --cc=eggert@cs.ucla.edu \
    --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 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).