GNU bug report logs -
#66851
30.0.50; Building emacs with native compilation fails
Previous Next
Reported by: Nikos Patikas <nik.patik <at> gmail.com>
Date: Tue, 31 Oct 2023 18:38:02 UTC
Severity: normal
Found in version 30.0.50
Done: Andrea Corallo <acorallo <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 66851 in the body.
You can then email your comments to 66851 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#66851
; Package
emacs
.
(Tue, 31 Oct 2023 18:38:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Nikos Patikas <nik.patik <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 31 Oct 2023 18:38:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi,
I am having trouble to build emacs with the native-compilation flag.
I am using the following build options on the current master:
commit 5f371ca07be891cc41e8e80b8a1bc9ffcc909363 (HEAD -> master, origin/master, origin/HEAD)
Author: Stefan Monnier <monnier <at> iro.umontreal.ca>
Date: Tue Oct 31 12:24:51 2023 -0400
* lisp/emacs-lisp/comp.el: Remove redundant requires
I build with the following options:
./configure --with-json \
--with-imagemagick\
--with-pgtk\
--with-tree-sitter\
--with-native-compilation
During make, I get a huge lisp code truncation followed by this error
message:
Symbol’s function definition is void: cl-find-class
make[3]: *** [Makefile:323: emacs-lisp/loaddefs-gen.elc] Error 255
Symbol’s function definition is void: cl-find-class
make[3]: *** [Makefile:323: emacs-lisp/radix-tree.elc] Error 255
make[3]: Leaving directory '/home/main/git/emacs/lisp'
make[2]: *** [Makefile:1015: bootstrap-emacs.pdmp] Error 2
make[2]: Leaving directory '/home/main/git/emacs/src'
make[1]: *** [Makefile:554: src] Error 2
make[1]: Leaving directory '/home/main/git/emacs'
make[1]: Entering directory '/home/main/git/emacs'
***
*** "make all" failed with exit status 2.
If remove the native comp flag then it builds fine.
Wondering if this affects only my system.
Best,
Nikos
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#66851
; Package
emacs
.
(Tue, 31 Oct 2023 19:01:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 66851 <at> debbugs.gnu.org (full text, mbox):
> From: Nikos Patikas <nik.patik <at> gmail.com>
> Date: Tue, 31 Oct 2023 14:36:22 -0400
>
>
> Hi,
>
> I am having trouble to build emacs with the native-compilation flag.
>
> I am using the following build options on the current master:
>
> commit 5f371ca07be891cc41e8e80b8a1bc9ffcc909363 (HEAD -> master, origin/master, origin/HEAD)
> Author: Stefan Monnier <monnier <at> iro.umontreal.ca>
> Date: Tue Oct 31 12:24:51 2023 -0400
>
> * lisp/emacs-lisp/comp.el: Remove redundant requires
>
>
> I build with the following options:
>
> ./configure --with-json \
> --with-imagemagick\
> --with-pgtk\
> --with-tree-sitter\
> --with-native-compilation
>
>
> During make, I get a huge lisp code truncation followed by this error
> message:
>
> Symbol’s function definition is void: cl-find-class
> make[3]: *** [Makefile:323: emacs-lisp/loaddefs-gen.elc] Error 255
> Symbol’s function definition is void: cl-find-class
> make[3]: *** [Makefile:323: emacs-lisp/radix-tree.elc] Error 255
> make[3]: Leaving directory '/home/main/git/emacs/lisp'
> make[2]: *** [Makefile:1015: bootstrap-emacs.pdmp] Error 2
> make[2]: Leaving directory '/home/main/git/emacs/src'
> make[1]: *** [Makefile:554: src] Error 2
> make[1]: Leaving directory '/home/main/git/emacs'
> make[1]: Entering directory '/home/main/git/emacs'
> ***
> *** "make all" failed with exit status 2.
>
> If remove the native comp flag then it builds fine.
>
>
> Wondering if this affects only my system.
Thanks, but please capture and post here the complete build log, from
its start till the last error message. We need to see all of that to
understand what could cause the problem.
Adding Stefan who made that commit.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#66851
; Package
emacs
.
(Tue, 31 Oct 2023 19:22:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 66851 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
> Thanks, but please capture and post here the complete build log, from
> its start till the last error message. We need to see all of that to
> understand what could cause the problem.
>
> Adding Stefan who made that commit.
Looks pretty straightforward to me since cl-find-class is on cl-extra.el
https://github.com/emacs-mirror/emacs/blob/master/lisp/emacs-lisp/cl-extra.el#L738
which was removed by that commit:
$ git diff HEAD~1
diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el
index bdc59703de9..7fd9543d2ba 100644
--- a/lisp/emacs-lisp/comp.el
+++ b/lisp/emacs-lisp/comp.el
@@ -29,10 +29,7 @@
;;; Code:
(require 'bytecomp)
-(require 'cl-extra)
(require 'cl-lib)
-(require 'cl-macs)
-(require 'cl-seq)
(require 'gv)
(require 'rx)
(require 'subr-x)
Anyway, attached is the build log:
$ make -j 12 > build.txt 2>&1
[build.txt (text/plain, attachment)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#66851
; Package
emacs
.
(Tue, 31 Oct 2023 21:40:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 66851 <at> debbugs.gnu.org (full text, mbox):
>> During make, I get a huge lisp code truncation followed by this error
>> message:
>>
>> Symbol’s function definition is void: cl-find-class
> Thanks, but please capture and post here the complete build log, from
> its start till the last error message. We need to see all of that to
> understand what could cause the problem.
Won't be necessary, I see the problem.
I'll commit a fix ASAP,
Stefan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#66851
; Package
emacs
.
(Wed, 01 Nov 2023 08:36:02 GMT)
Full text and
rfc822 format available.
Message #17 received at submit <at> debbugs.gnu.org (full text, mbox):
Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <bug-gnu-emacs <at> gnu.org> writes:
>>> During make, I get a huge lisp code truncation followed by this error
>>> message:
>>>
>>> Symbol’s function definition is void: cl-find-class
>> Thanks, but please capture and post here the complete build log, from
>> its start till the last error message. We need to see all of that to
>> understand what could cause the problem.
>
> Won't be necessary, I see the problem.
> I'll commit a fix ASAP,
>
>
> Stefan
I confirm bootstrap works here with b93f931e9e9 so closing.
Everything in the native compiler is very senstitive, please remember to
try a bootstrap always when touching it.
Thanks
Andrea
Reply sent
to
Andrea Corallo <acorallo <at> gnu.org>
:
You have taken responsibility.
(Wed, 01 Nov 2023 08:36:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
Nikos Patikas <nik.patik <at> gmail.com>
:
bug acknowledged by developer.
(Wed, 01 Nov 2023 08:36:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 29 Nov 2023 12:24:09 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 263 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.