From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#47558: 28.0.50; dlopen 'image not found' gccemacs native-lisp macos Date: Mon, 5 Apr 2021 22:14:02 +0100 Message-ID: References: <83ft09fdc4.fsf@gnu.org> <8335w8fs4b.fsf@gnu.org> <83y2dzev4b.fsf@gnu.org> <83mtufe9ke.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9066"; mail-complaints-to="usenet@ciao.gmane.io" Cc: bryan.m.obrien@gmail.com, 47558@debbugs.gnu.org To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 05 23:15:44 2021 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 1lTWZT-00026l-Tp for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Apr 2021 23:15:44 +0200 Original-Received: from localhost ([::1]:60616 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lTWZS-0005SL-Vz for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Apr 2021 17:15:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50450) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTWYo-0005S8-IN for bug-gnu-emacs@gnu.org; Mon, 05 Apr 2021 17:15:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55451) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lTWYo-00048g-Ay for bug-gnu-emacs@gnu.org; Mon, 05 Apr 2021 17:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lTWYo-0007mX-4t for bug-gnu-emacs@gnu.org; Mon, 05 Apr 2021 17:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Apr 2021 21:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47558 X-GNU-PR-Package: emacs Original-Received: via spool by 47558-submit@debbugs.gnu.org id=B47558.161765725929831 (code B ref 47558); Mon, 05 Apr 2021 21:15:02 +0000 Original-Received: (at 47558) by debbugs.gnu.org; 5 Apr 2021 21:14:19 +0000 Original-Received: from localhost ([127.0.0.1]:38764 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lTWY5-0007l3-5S for submit@debbugs.gnu.org; Mon, 05 Apr 2021 17:14:19 -0400 Original-Received: from outbound.soverin.net ([116.202.65.218]:38807) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lTWY2-0007ki-E4 for 47558@debbugs.gnu.org; Mon, 05 Apr 2021 17:14:16 -0400 Original-Received: from smtp.soverin.net (unknown [10.10.3.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id B33836022D; Mon, 5 Apr 2021 21:14:08 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.142]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1617657247; bh=5ZwimqefpjrDfjR2p8WoZDPllQHG0O2AvPQLhVNPtr4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ve3M7TJfw+Ta9C9XLebuWzngwfhIp+1D2Kb+uPXakViqARr+ymtoiBOC19h2nH3Fw PQaam7jSXQ3cU9E87no7eKonhn7ilMuLOmBBxxuQKOR8wEsDqGy2VcCImzxYgIQb6T LrFpBXmW0F3CgMiQYKMpv4GUtckEl11v5XZbuVVROUQ7oefs4/9qiv5yYussG1jPfE gmc5dnqUn5yTs3rysdvHp824ZeGP4en2x1WUyHWWmTcmi++zmOLqfg688DY2TQJgbW WLfqKRBLpO6t+xu0q4MQPt0cQgc0XAqenBQmGXqOTQ0XY8hz3+GFXnFH1CHDj5Q22Q xmR2CJ2Qw/LdQ== Original-Received: by breton.holly.idiocy.org (Postfix, from userid 501) id 868A9202B90599; Mon, 5 Apr 2021 22:14:02 +0100 (BST) Mail-Followup-To: Alan Third , Andrea Corallo , Eli Zaretskii , bryan.m.obrien@gmail.com, 47558@debbugs.gnu.org Content-Disposition: inline In-Reply-To: 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" Xref: news.gmane.io gmane.emacs.bugs:203617 Archived-At: On Mon, Apr 05, 2021 at 08:21:25PM +0000, Andrea Corallo wrote: > Alan Third writes: > > > On Sun, Apr 04, 2021 at 07:10:50AM +0000, Andrea Corallo wrote: > >> Eli Zaretskii writes: > >> > >> >> Date: Sat, 3 Apr 2021 15:01:20 +0100 > >> >> From: Alan Third > >> >> Cc: bryan.m.obrien@gmail.com, 47558@debbugs.gnu.org > >> >> > >> >> It's not entirely clear to me where the load path is set, is it > >> >> > >> >> fixup_eln_load_path (Lisp_Object directory) > >> >> > >> >> in comp.c? > >> > > >> > I hope Andrea (CC'ed) will be able to answer that. > >> > >> Okay, as window is loaded and dumped during the build > >> `comp-eln-load-path' here doesn't come into play. > >> > >> While resurrecting from dump we locate preloaded eln files by filename > >> (relative to the emacs executable position). Indeed the complication is > >> that we have to support both uninstalled but also installed builds. > >> > >> To do that before dumping we inform Emacs of where will have to search > >> the eln files if installed. We do that using ELN_DESTDIR defined > >> Makefile.in:326. > >> > >> If the directory structure on MacOS is different I guess we have to add > >> the correct information there. > > > > No matter what I set ELN_DESTDIR to, emacs still looks in > > > > /Users/alan/src/emacs/native/nextstep/Emacs.app/Contents/MacOS/../native-lisp/28.0.50-24e3df15 > > > > so something isn't being updated, I guess? > > That's possible, could you specify the full procedure you've used to > reach this point? ./autogen.sh ./configure --with-ns --with-native-compilation make make install Note: make install fails, I've had to apply this patch @@ -749,7 +753,8 @@ install-etc: ### Install native compiled Lisp files. install-eln: ifeq ($(HAVE_NATIVE_COMP),yes) - find native-lisp -type f -exec ${INSTALL_DATA} -D "{}" "$(ELN_DESTDIR){}" \; + find native-lisp -type d -exec $(MKDIR_P) "$(ELN_DESTDIR){}" \; ; \ + find native-lisp -type f -exec ${INSTALL_DATA} "{}" "$(ELN_DESTDIR){}" \; endif but if you were to try this with GNUstep I suspect that wouldn't be needed. And I've tried modifying ELN_DESTDIR with this @@ -323,7 +323,11 @@ CONFIG_STATUS_FILES_IN = COPYDIR = ${srcdir}/etc ${srcdir}/lisp COPYDESTS = "$(DESTDIR)${etcdir}" "$(DESTDIR)${lispdir}" -ELN_DESTDIR = $(DESTDIR)${libdir}/emacs/${version}/ +ifeq (${ns_self_contained},no) + ELN_DESTDIR = $(DESTDIR)${libdir}/emacs/${version}/ +else + ELN_DESTDIR = ${ns_appresdir}/ +endif all: ${SUBDIR} info which results in the .eln files being installed where I want, but running the installed Emacs (nextstep/Emacs.app/MacOS/Emacs) still gives the error emacs: dlopen(/Users/alan/src/emacs/native/nextstep/Emacs.app/Contents/MacOS/../native-lisp/28.0.50-24e3df15/window-0d1b8b93-513ac8ca.eln, 1): image not found -- Alan Third