From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#47558: 28.0.50; dlopen 'image not found' gccemacs native-lisp macos Date: Wed, 07 Apr 2021 07:53:50 +0000 Message-ID: References: Reply-To: Andrea Corallo Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12479"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: bryan.m.obrien@gmail.com, Eli Zaretskii , 47558@debbugs.gnu.org To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 07 09:54:11 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 1lU30t-00038X-M5 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Apr 2021 09:54:11 +0200 Original-Received: from localhost ([::1]:59080 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lU30s-0003Ss-O7 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Apr 2021 03:54:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44854) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lU30k-0003Sj-Nl for bug-gnu-emacs@gnu.org; Wed, 07 Apr 2021 03:54:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59668) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lU30k-0007t6-GZ for bug-gnu-emacs@gnu.org; Wed, 07 Apr 2021 03:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lU30k-00007h-Fo for bug-gnu-emacs@gnu.org; Wed, 07 Apr 2021 03:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Apr 2021 07:54: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.1617782033456 (code B ref 47558); Wed, 07 Apr 2021 07:54:02 +0000 Original-Received: (at 47558) by debbugs.gnu.org; 7 Apr 2021 07:53:53 +0000 Original-Received: from localhost ([127.0.0.1]:42981 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lU30b-00007I-Ab for submit@debbugs.gnu.org; Wed, 07 Apr 2021 03:53:53 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]:56185) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lU30a-000079-2m for 47558@debbugs.gnu.org; Wed, 07 Apr 2021 03:53:52 -0400 Original-Received: from mab (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 1377roXH025707 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Wed, 7 Apr 2021 07:53:50 GMT In-Reply-To: (Alan Third's message of "Tue, 6 Apr 2021 22:33:35 +0100") 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:203667 Archived-At: Alan Third writes: > On Tue, Apr 06, 2021 at 09:22:57PM +0000, Andrea Corallo wrote: >> Alan Third writes: >> >> > On Tue, Apr 06, 2021 at 07:26:16PM +0000, Andrea Corallo wrote: >> >> >> >> Okay the log looks good AFAICT. >> >> >> >> We are suggesting the eln to go in: >> >> /Users/alan/src/emacs/native/nextstep/Emacs.app/Contents/MacOS/bin/ >> >> >> >> and the eln in: >> >> /Users/alan/src/emacs/native/nextstep/Emacs.app/Contents/Resources/ >> > >> > OK, I think I see what's going on. The binary is installed in >> > Emacs.app/Contents/MacOS, but the bindir is >> > Emacs.app/Contents/MacOS/bin, so we're going one level too far up when >> > generating the eln path. >> > >> > "../../Resources/native-lisp/28.0.50-0f05d3d3/preloaded/misc-lang-7cb33d20-db3eb4ae.eln" >> > >> >> If this does not help I suggest we apply the attached and re-bootstrap >> >> to see if the 'rel-filename-from-install-bin' we are constructing is >> >> correct. >> > >> > I've attached the new bootstrap log in case I'm wrong and you can see >> > something else. >> >> I think your analysis is correct. >> >> ATM we form BIN_DESTDIR as '$(DESTDIR)${bindir}/' (Makefile.in:419), >> maybe we should use 'ns_appbindir' to form it? > > Yup, that seems to have solved it. I'm doing this: Cool! > modified Makefile.in > @@ -420,8 +420,13 @@ lib lib-src lisp nt: > dirstate = .git/logs/HEAD > VCSWITNESS = $(if $(wildcard $(srcdir)/$(dirstate)),$$(srcdir)/../$(dirstate)) > src: Makefile > +ifeq (${ns_self_contained},no) > $(MAKE) -C $@ VCSWITNESS='$(VCSWITNESS)' BIN_DESTDIR='$(DESTDIR)${bindir}/' \ > ELN_DESTDIR='$(ELN_DESTDIR)' all > +else > + $(MAKE) -C $@ VCSWITNESS='$(VCSWITNESS)' BIN_DESTDIR='${ns_appbindir}/' \ > + ELN_DESTDIR='$(ELN_DESTDIR)' all > +endif > > blessmail: Makefile src > $(MAKE) -C lib-src maybe-blessmail > > > which works, but I don't know much about makefiles so there may be a > neater way to do it. I think we could prepare BIN_DESTDIR near ELN_DESTDIR so we don't have to duplicate the sub-make invocation in this target. I pushed ce15b23846 that does that. Please feel free to install a patch with all the other necessary changes to have it working on MacOS. Thanks! Andrea