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: Tue, 6 Apr 2021 22:33:35 +0100 Message-ID: References: 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="11978"; 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 Tue Apr 06 23:34:10 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 1lTtKs-0002zl-GT for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Apr 2021 23:34:10 +0200 Original-Received: from localhost ([::1]:53360 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lTtKr-0008Gr-Gs for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Apr 2021 17:34:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45556) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTtKk-0008Gj-Fi for bug-gnu-emacs@gnu.org; Tue, 06 Apr 2021 17:34:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58634) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lTtKk-0006RL-8E for bug-gnu-emacs@gnu.org; Tue, 06 Apr 2021 17:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lTtKk-0007Se-4t for bug-gnu-emacs@gnu.org; Tue, 06 Apr 2021 17:34: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: Tue, 06 Apr 2021 21:34: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.161774482928656 (code B ref 47558); Tue, 06 Apr 2021 21:34:02 +0000 Original-Received: (at 47558) by debbugs.gnu.org; 6 Apr 2021 21:33:49 +0000 Original-Received: from localhost ([127.0.0.1]:41947 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lTtKX-0007S8-0Y for submit@debbugs.gnu.org; Tue, 06 Apr 2021 17:33:49 -0400 Original-Received: from outbound.soverin.net ([116.202.65.218]:32833) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lTtKV-0007Rw-Jq for 47558@debbugs.gnu.org; Tue, 06 Apr 2021 17:33:48 -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 D54D260191; Tue, 6 Apr 2021 21:33:41 +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=1617744821; bh=zISS80TVK5p13esBXwgjShKj8+Ctnazmf7tMxklDyf8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iVty9QZsErfISm+91aNpoJspZTOyhVYgJCB52G91dQOHTdySLCPHQprloGkWKQ0WN FTaF/OQV5/yjx46zqSmML5CWCKB80UE6ndwIC1rtbkARYGapZnsEKUTS3ORURLJrYv DzT7sAEmb3eJNrr3hoUg2+fKZ+DXpt3hPWQj9d8uJRPsgEBmCEnbA7wtZ9fqAzAQCc HOCbcgGvBDBIjP+XXlwO+O4z43gAVecAd4sKiXy7S/+0HzmqD9hrIEUuB02T6Pp8zu aHbLDq9AppfNlk7V5xTAx61SvMqz1MbrrCASxdz4nSe9ZWc3j0hMcJsg31/CFjTGA5 5kx8BR/fCLMxg== Original-Received: by breton.holly.idiocy.org (Postfix, from userid 501) id A9D53202BA3779; Tue, 6 Apr 2021 22:33:35 +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:203657 Archived-At: 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: 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. -- Alan Third