all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Bhavin Gandhi <bhavin7392@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: Packaging Emacs with native compilation enabled
Date: Sun, 05 Dec 2021 16:00:31 +0200	[thread overview]
Message-ID: <83v9032lts.fsf@gnu.org> (raw)
In-Reply-To: <CAOn=hbfPOrqkWg06Fkp8-_XBDerM_k+C3VViNhh4CBuuFBqLfQ@mail.gmail.com> (message from Bhavin Gandhi on Sun, 5 Dec 2021 19:02:08 +0530)

> From: Bhavin Gandhi <bhavin7392@gmail.com>
> Date: Sun, 5 Dec 2021 19:02:08 +0530
> 
> I'm packaging the 28.0.90 pretest as RPM with native compilation
> enabled. The `make install' installs some .eln files to lib64 directory
> i.e. /usr/lib64/emacs/28.0.90/native-lisp/28.0.90-<hash>/.
> 
> 1. Should these files be there in the final package, which is
>    distributed to users?

If you are making a binary distribution (not one where users will have
to build Emacs from sources), these files should be included, yes.

> Based on what I have understood from Andrea's EmacsConf 2021 talk[1] and
> the "(elisp) Native Compilation" page: the .eln files are CPU specific
> and should not be shared across.

That's true, but you are already producing Emacs binaries, which are
necessarily specific to the CPU, right?  The *.eln files are just
shared libraries built for the same architecture as the Emacs binary,
so they have the same restrictions as the binary.

> With that in mind, I deleted the *.eln files from the package. But when
> I start emacs-nox (the one without X), it gives this error:
> 
> $ emacs-nox -Q
> Error using execdir /usr/bin/:
> emacs: /usr/bin/../native-lisp/28.0.90-f21cc02e/preloaded/frame-b40fc590-e67d4a02.eln:
> cannot open shared object file: No such file or directory
> 
> If I add the 28.0.90-f21cc02e directory to the lib64 directory
> mentioned above, it starts correctly. I can see the path in
> `native-comp-eln-load-path' variable.

That's expected.  Emacs dumped with *.eln files will not start if the
preloaded *.eln files are removed.



  reply	other threads:[~2021-12-05 14:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-05 13:32 Packaging Emacs with native compilation enabled Bhavin Gandhi
2021-12-05 14:00 ` Eli Zaretskii [this message]
2021-12-05 18:20   ` Bhavin Gandhi

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83v9032lts.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=bhavin7392@gmail.com \
    --cc=emacs-devel@gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.