From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#61171: 30.0.50; macos build can't find native lisp folder Date: Mon, 30 Jan 2023 15:36:00 +0200 Message-ID: <83357s5em7.fsf@gnu.org> References: <87edrcyz05.fsf@luois.me> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13752"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61171@debbugs.gnu.org To: Merrick Luo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 30 14:37:21 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pMULY-0003R1-PS for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 30 Jan 2023 14:37:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pMULI-0007Cy-0m; Mon, 30 Jan 2023 08:37:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMULG-00079q-6c for bug-gnu-emacs@gnu.org; Mon, 30 Jan 2023 08:37:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pMULF-0000do-OQ for bug-gnu-emacs@gnu.org; Mon, 30 Jan 2023 08:37:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pMULF-00018u-KR for bug-gnu-emacs@gnu.org; Mon, 30 Jan 2023 08:37:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Jan 2023 13:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61171 X-GNU-PR-Package: emacs Original-Received: via spool by 61171-submit@debbugs.gnu.org id=B61171.16750857754339 (code B ref 61171); Mon, 30 Jan 2023 13:37:01 +0000 Original-Received: (at 61171) by debbugs.gnu.org; 30 Jan 2023 13:36:15 +0000 Original-Received: from localhost ([127.0.0.1]:46710 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pMUKV-00017v-95 for submit@debbugs.gnu.org; Mon, 30 Jan 2023 08:36:15 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52056) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pMUKT-00017j-Pi for 61171@debbugs.gnu.org; Mon, 30 Jan 2023 08:36:14 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMUKO-0000VC-IA; Mon, 30 Jan 2023 08:36:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=HyiykRoJ3VBhhOgI9c6LsUJlVE2W51/P2Y5FwNtqPMA=; b=gktEnhPyinU2 yQ5P4LIn5tLc8c0VzP4yZV6X5UEltvCiirKWqlZgkI9yL7qB2DdPf7ZtG0iwGUeaF27rwM1nbEi2d LcOpsT5JVDPZ9sAVBd6ZYC2pCG2OWOCDKEiyJmM+NFk16bOMYkiViKv5a3iUeycTwkTKkjc9V7MmC hGo6c9/qmpehNBrpfxq74+jxn7ttfMf40fv3cx+OaPE5qbxZ9W1gFbDpjsib6o/K069R3phz/nAPV BGRE3Tg/qS/VY7DfU8FGThA4XnxtXt1i3CuCs0jAsHwgO4IO0grJtXxA6jo4a/58EgwFxgFVaAUEK U+7TTLimJHm//2g1x9lrjQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMUKN-0002pB-IS; Mon, 30 Jan 2023 08:36:07 -0500 In-Reply-To: <87edrcyz05.fsf@luois.me> (bug-gnu-emacs@gnu.org) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:254425 Archived-At: > 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" > > > 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.