all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Merrick Luo <merrick@luois.me>
Cc: 61171@debbugs.gnu.org
Subject: bug#61171: 30.0.50; macos build can't find native lisp folder
Date: Mon, 30 Jan 2023 15:36:00 +0200	[thread overview]
Message-ID: <83357s5em7.fsf@gnu.org> (raw)
In-Reply-To: <87edrcyz05.fsf@luois.me> (bug-gnu-emacs@gnu.org)

> Date: Mon, 30 Jan 2023 20:42:50 +0800
> From:  Merrick Luo via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
> 
> 
> As show in the "Configued using" section, I compiled emacs with
> ns-self-contained disabled and with aot native compilation, but the
> nextstep/Emacs.app is failing to start unless I do
> 
> ln -s /usr/local/lib/emacs/30.0.50/native-lisp nextstep/Emacs.app/Contents/
> 
> the error message is
> 
> Error using execdir /Users/merrickluo/projs/emacs/nextstep/Emacs.app/Contents/MacOS/:
> emacs: dlopen(/Users/merrickluo/projs/emacs/nextstep/Emacs.app/Contents/MacOS/../native-lisp/30.0.50-7473cdfd/preloaded/window-0d1b8b93-b6aaebba.eln, 0x0001): tried: '/Users/merrickluo/projs/emacs/nextstep/Emacs.app/Contents/MacOS/../native-lisp/30.0.50-7473cdfd/preloaded/window-0d1b8b93-b6aaebba.eln' (no such file)
> 
> is there anything I missed with configuration or the `ln` part is required
> to be done manually for it to work? please advise, thanks.

Why did you build with ns-self-contained disabled?  AFAICT from
reading the top-level Makefile.in, this causes Emacs to install files
according to Posix conventions, which breaks on macOS.  What you get
is the Emacs binary in a place unrelated to the directory where the
*.eln files are installed, and Emacs cannot find them.

You could perhaps set ELN_DESTDIR explicitly when you run "Make", as
in

   make ELN_DESTDIR=/Users/merrickluo/projs/emacs/nextstep/Emacs.app/Contents

Maybe.





  reply	other threads:[~2023-01-30 13:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-30 12:42 bug#61171: 30.0.50; macos build can't find native lisp folder Merrick Luo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-01-30 13:36 ` Eli Zaretskii [this message]
     [not found]   ` <87bkmfz90g.fsf@luois.me>
2023-01-31 13:37     ` Eli Zaretskii
2023-06-05 22:15       ` Andrea Corallo
2023-06-06 11:31         ` Eli Zaretskii

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=83357s5em7.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=61171@debbugs.gnu.org \
    --cc=merrick@luois.me \
    /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.