unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#54816: 29.0.50; Silent "Compiler-macro error for cl-member" when building from scratch
@ 2022-04-09 14:10 Kévin Le Gouguec
  2022-04-10  9:20 ` Kévin Le Gouguec
  0 siblings, 1 reply; 3+ messages in thread
From: Kévin Le Gouguec @ 2022-04-09 14:10 UTC (permalink / raw)
  To: 54816

When building from scratch ("./autogen.sh && ./configure && make" from a
fresh clone), I spot the following error, which does not interrupt
compilation:

> make[2]: Entering directory '/home/peniblec/src/emacs/lisp'
>   ELC      international/titdic-cnv.elc
> make -C ../leim all EMACS="../src/bootstrap-emacs"
> make[3]: Entering directory '/home/peniblec/src/emacs/leim'
>   GEN      ../lisp/leim/quail/CCDOSPY.el
>   […]
>   GEN      ../lisp/leim/leim-list.el
> /usr/bin/mkdir -p ../lisp/leim/ja-dic
>   GEN      ../lisp/leim/ja-dic/ja-dic.el
>   INFO     Processing OKURI-ARI entries
>   INFO     Processing POSTFIX entries
>   INFO     Processing PREFIX entries
>   INFO     Collecting OKURI-NASI entries
>   INFO     Collecting OKURI-NASI entries... 
>   […]
>   INFO     Collecting OKURI-NASI entries...done
>   INFO     Processing OKURI-NASI entries
>   INFO     Processing OKURI-NASI entries... 
>   […]
>   INFO     Processing OKURI-NASI entries...done
> Compiler-macro error for cl-member: Handler: cl--compiler-macro-member
> (excessive-variable-binding)
> Eager macro-expansion failure: (excessive-variable-binding)
> make[3]: Leaving directory '/home/peniblec/src/emacs/leim'

(For the avoidance of doubt: this is a -j1 run; the […] lines are
regular "GEN/INFO" messages)

As far as I can tell the resulting Emacs is mostly functional; I'm using
it to write this report and have not observed any problem so far.

I have not bisected the problem yet (I noticed it yesterday); I tried to
find a faster recipe than "git clean -fdx && ./autogen.sh && ./configure
&& make", e.g. variations of "touch foo && make bar" from leim/Makefile
and lisp/Makefile, but the error does not show up unless I rebuild
everything from scratch.

"make V=1" says that this is the command that runs when the error comes
(run from the leim subdirectory):

'../src/bootstrap-emacs' -batch --no-site-file --no-site-lisp -batch -l ja-dic-cnv \
  -f batch-skkdic-convert -dir "./../lisp/leim/ja-dic" "SKK-DIC/SKK-JISYO.L"

Unfortunately running this after Emacs is built does not trigger the
error for me.  The "simplest" recipe I have is:

git clean -dfx
./autogen.sh
./configure
make -j16 -C src bootstrap-emacs
cd leim
mkdir ../lisp/leim/ja-dic
'../src/bootstrap-emacs' -batch --no-site-file --no-site-lisp -batch -l ja-dic-cnv -f batch-skkdic-convert -dir "./../lisp/leim/ja-dic" "SKK-DIC/SKK-JISYO.L"

Hope someone can make sense of that, and this is not some setup-specific
thing; FWIW I'm seeing this on openSUSE Tumbleweed and Debian bullseye.


In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0)
 of 2022-04-08 built on amdahl30
Repository revision: e9849939549010529e180ffb2509922f1bcc4843
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101003
System Description: openSUSE Tumbleweed





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#54816: 29.0.50; Silent "Compiler-macro error for cl-member" when building from scratch
  2022-04-09 14:10 bug#54816: 29.0.50; Silent "Compiler-macro error for cl-member" when building from scratch Kévin Le Gouguec
@ 2022-04-10  9:20 ` Kévin Le Gouguec
  2022-04-10 12:43   ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Kévin Le Gouguec @ 2022-04-10  9:20 UTC (permalink / raw)
  To: 54816; +Cc: Alan Mackenzie

[-- Attachment #1: Type: text/plain, Size: 769 bytes --]

tags 54816 patch
thanks

Kévin Le Gouguec <kevin.legouguec@gmail.com> writes:

>> Compiler-macro error for cl-member: Handler: cl--compiler-macro-member
>> (excessive-variable-binding)
>> Eager macro-expansion failure: (excessive-variable-binding)

That bit about excessive-variable-binding rang a bell; I dimly
remembered seeing a couple of commits increasing max-specpdl-size "not
too long ago".  git-log turned these up:

* 2022-01-31 "Enlarge max-specpdl-size for generation of files in
  .../admin/grammars" (be2566eeab)
* 2022-01-30 "Enlarge max-specpdl-size for generation of leim-list.el in
  bootstrap" (46611aa468)

So here's a "monkey see; monkey do" patch that causes this error to go
away; no idea if it's The Right Thing™ though?


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: max-specpdl-size.patch --]
[-- Type: text/x-patch, Size: 464 bytes --]

diff --git a/leim/Makefile.in b/leim/Makefile.in
index 6cf0abb40c..4e70e8b7e9 100644
--- a/leim/Makefile.in
+++ b/leim/Makefile.in
@@ -131,6 +131,7 @@ ${leimdir}/ja-dic/ja-dic.el:
 
 ${leimdir}/ja-dic/ja-dic.el: $(srcdir)/SKK-DIC/SKK-JISYO.L
 	$(AM_V_GEN)$(RUN_EMACS) -batch -l ja-dic-cnv \
+	  --eval "(setq max-specpdl-size 5000)" \
 	  -f batch-skkdic-convert -dir "$(leimdir)/ja-dic" "$<"
 
 ${srcdir}/../lisp/language/pinyin.el: ${srcdir}/MISC-DIC/pinyin.map

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* bug#54816: 29.0.50; Silent "Compiler-macro error for cl-member" when building from scratch
  2022-04-10  9:20 ` Kévin Le Gouguec
@ 2022-04-10 12:43   ` Lars Ingebrigtsen
  0 siblings, 0 replies; 3+ messages in thread
From: Lars Ingebrigtsen @ 2022-04-10 12:43 UTC (permalink / raw)
  To: Kévin Le Gouguec; +Cc: Alan Mackenzie, 54816

Kévin Le Gouguec <kevin.legouguec@gmail.com> writes:

> So here's a "monkey see; monkey do" patch that causes this error to go
> away; no idea if it's The Right Thing™ though?

Looks like the right thing to me; pushed to Emacs 29 now.

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





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-04-10 12:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-09 14:10 bug#54816: 29.0.50; Silent "Compiler-macro error for cl-member" when building from scratch Kévin Le Gouguec
2022-04-10  9:20 ` Kévin Le Gouguec
2022-04-10 12:43   ` Lars Ingebrigtsen

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).