Subject: Re: feature/native-comp; cc-defs.el: c-lang-const Symbol's function definition is void: cc-bytecomp-is-compiling

From: Andrea Corallo <[email-masked]>
Date: Sun, 02 Aug 2020 15:55:51 +0000

Tom Gillespie <[email-masked]> writes:

> When trying to byte compile on 28.0.50 on the feature/native-comp branch at
> 7a161dc688f0eeee64e307a55efbc7d11bab3627 I encountered the following
> error message:
> Symbol's function definition is void: cc-bytecomp-is-compiling.
>
> This is not an issue on master at 9f01ce6327af886f26399924a9aadf16cdd4fd9f.
>
> To repro run the following.
>
> #+begin_src bash
> emacs -q -batch --no-site-file --eval '(progn (with-temp-buffer
> (insert "(c-lang-const c-matchers-1 c)") (write-file "oh-no.el"))
> (require '"'"'cc-defs) (byte-compile-file "oh-no.el"))'
> #+end_src
>
>
> Or in emacs launched with =emacs -q --no-site-file= run =M-x ielm= and then
>
> #+begin_src ielm
> (with-temp-buffer (insert "(c-lang-const c-matchers-1 c)") (write-file
> "oh-no.el"))
> (require 'cc-defs)
> (byte-compile-file "oh-no.el")
> #+end_src
>
> Testing against master on in the emacs git repo via the following
> produces no error.
> ./autogen.sh
> ./configure
> make -j 8
> src/emacs -q -batch --no-site-file --load lisp/progmodes/cc-defs.el
> --load lisp/progmodes/cc-fonts.el --eval '(progn (with-temp-buffer
> (insert "(c-lang-const c-matchers-1 c)") (write-file "oh-no.el"))
> (require '"'"'cc-defs) (byte-compile-file "oh-no.el"))'
>
> The output of
> git diff 9f01ce6327af886f26399924a9aadf16cdd4fd9f
> 7a161dc688f0eeee64e307a55efbc7d11bab3627 -- lisp/progmodes
> suggests that something similarly strange may be going on in this case.

Hi Tom,

"80d7f710f2 * Fix defsubst missing inline Bug#42664" does the job for
me.

Would you check is effective for you too?

Thanks for the report.

  Andrea

-- 
[email-masked]