unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Building emacs with native compilation fails
@ 2023-10-31 18:18 Nikos Patikas
  2023-10-31 21:10 ` Alan Mackenzie
  2023-11-01  3:25 ` Eli Zaretskii
  0 siblings, 2 replies; 3+ messages in thread
From: Nikos Patikas @ 2023-10-31 18:18 UTC (permalink / raw)
  To: emacs-devel


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

Best,
Nikos






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

* Re: Building emacs with native compilation fails
  2023-10-31 18:18 Building emacs with native compilation fails Nikos Patikas
@ 2023-10-31 21:10 ` Alan Mackenzie
  2023-11-01  3:25 ` Eli Zaretskii
  1 sibling, 0 replies; 3+ messages in thread
From: Alan Mackenzie @ 2023-10-31 21:10 UTC (permalink / raw)
  To: Nikos Patikas; +Cc: emacs-devel

Hello, Nikos.

On Tue, Oct 31, 2023 at 14:18:39 -0400, Nikos Patikas wrote:

> Hi,

> I am having trouble to build emacs with the native-compilation flag.

Me too.

> I am using the following build options on the current master:

> commit 5f371ca07be891cc41e8e80b8a1bc9ffcc909363 (HEAD -> master, origin/master, origin/HEAD)
> Author: Stefan Monnier <monnier@iro.umontreal.ca>
> Date:   Tue Oct 31 12:24:51 2023 -0400

>     * lisp/emacs-lisp/comp.el: Remove redundant requires

[ .... ]

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

In that patch, one of the removed requires wasn't redundant.  The
following temporary fix got me building again with native compilation:


diff --git a/lisp/emacs-lisp/comp-cstr.el b/lisp/emacs-lisp/comp-cstr.el
index 82d48e59a23..6751e7ab0a7 100644
--- a/lisp/emacs-lisp/comp-cstr.el
+++ b/lisp/emacs-lisp/comp-cstr.el
@@ -35,6 +35,9 @@

 ;;; Code:

+;;;; TEMP STOUGH, 2023-10-31
+(require 'cl-extra)
+;;;; END OF TEMP STOUGH
 (require 'cl-lib)
 (require 'cl-macs)


No doubt it will get fixed properly, soon.

> Best,
> Nikos

-- 
Alan Mackenzie (Nuremberg, Germany).



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

* Re: Building emacs with native compilation fails
  2023-10-31 18:18 Building emacs with native compilation fails Nikos Patikas
  2023-10-31 21:10 ` Alan Mackenzie
@ 2023-11-01  3:25 ` Eli Zaretskii
  1 sibling, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2023-11-01  3:25 UTC (permalink / raw)
  To: Nikos Patikas; +Cc: emacs-devel

> From: Nikos Patikas <nik.patik@gmail.com>
> Date: Tue, 31 Oct 2023 14:18:39 -0400
> 
> 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@iro.umontreal.ca>
> Date:   Tue Oct 31 12:24:51 2023 -0400
> 
>     * lisp/emacs-lisp/comp.el: Remove redundant requires

You've submitted a bug with the same information, so let's please
discuss this issue there, to keep the whole discussion recorded by the
bug tracker.

Please post all the responses to 66851@debbugs.gnu.org, and please
don't cross-post to emacs-devel.

Thanks.



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

end of thread, other threads:[~2023-11-01  3:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-31 18:18 Building emacs with native compilation fails Nikos Patikas
2023-10-31 21:10 ` Alan Mackenzie
2023-11-01  3:25 ` Eli Zaretskii

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