From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bryan O'Brien Newsgroups: gmane.emacs.bugs Subject: bug#47558: 28.0.50; dlopen 'image not found' gccemacs native-lisp macos Date: Tue, 6 Apr 2021 21:08:46 -0500 Message-ID: References: Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.80.0.2.43\)) Content-Type: multipart/signed; boundary="Apple-Mail=_7DB46FC8-567D-44FE-B035-FCBB64A188B2"; protocol="application/pgp-signature"; micalg=pgp-sha512 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24862"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 47558@debbugs.gnu.org, Andrea Corallo To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 07 04:18:14 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 1lTxlm-0006O8-Ov for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Apr 2021 04:18:14 +0200 Original-Received: from localhost ([::1]:45454 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lTxll-0001YC-RE for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Apr 2021 22:18:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52376) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTxla-0001Y1-T1 for bug-gnu-emacs@gnu.org; Tue, 06 Apr 2021 22:18:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59353) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lTxla-0003bl-HS for bug-gnu-emacs@gnu.org; Tue, 06 Apr 2021 22:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lTxla-00009e-DU for bug-gnu-emacs@gnu.org; Tue, 06 Apr 2021 22:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Bryan O'Brien Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Apr 2021 02:18: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.1617761855553 (code B ref 47558); Wed, 07 Apr 2021 02:18:02 +0000 Original-Received: (at 47558) by debbugs.gnu.org; 7 Apr 2021 02:17:35 +0000 Original-Received: from localhost ([127.0.0.1]:42666 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lTxl9-00008r-10 for submit@debbugs.gnu.org; Tue, 06 Apr 2021 22:17:35 -0400 Original-Received: from mail-io1-f46.google.com ([209.85.166.46]:43887) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lTxcl-0008N5-Cm for 47558@debbugs.gnu.org; Tue, 06 Apr 2021 22:08:55 -0400 Original-Received: by mail-io1-f46.google.com with SMTP id z136so9012430iof.10 for <47558@debbugs.gnu.org>; Tue, 06 Apr 2021 19:08:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=qv/iDY+0a1+sRx015GCKng7sExbfkLLrPE6RumScZQs=; b=tFbgDxKSnsPUH4JDJftxCLe200EMU478xxGzlK28XQhIrlgk6F5Fd8jfl8jwXkKclE YwkLjvDt4SZ+7Q6Pm1k6j5racU0uveTddLuxl2NeFhwIRwICfPVN8zoj0B/dPJ9jgjlu nKC1vPfhuuaXAxWdZcdPw5R4S1sp/SWgfwnrZNH/dffI7epkC686cUNAS++ZHdQvoyPd RZleKowf16pUyBUWETM0kjz/is0wdOFi2BllLdQQZ+Hv+5r9beWx7OaF99r3a1NwqpLj Ung8X4/akMMxLL1Lq/uuZXIbob8ky0tpWQhVLVwkh/LcLuh5T1kScAAQgarVgyg97pv7 5uvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=qv/iDY+0a1+sRx015GCKng7sExbfkLLrPE6RumScZQs=; b=tqBxRc7U7PVzM+7AyQssiRSwzAES3tZKgqfQTSZ9Aox+fenSwkbQKgoqSgkWIw9Qpk QzhMrF3z8t4Iw6lF4de43Q1AgshOtGrksDQ465DsFGlVl5R8SoYM0hIIKBpbmKkH4c4Y Vm/ZRBJYEdiYtVYYFK2Jts4StkWH8BwKN/uAkcFIEsJ1wlJUF8WWNU6xbYWTuGWiv15b 9vQ1LOUqAUeKFdH91vdAmezN05NDonloX7N/xaYCNlA6CqazSEugt3mfo3Uqh6Ia1QhN g5y3o9ICwjJqlgBhy9jfVvdX6OrPad1OL5lUWkCTgvQHdFMjiRpc6Vkv65bfqU5Z3GxY xOcg== X-Gm-Message-State: AOAM533JWgiJlvQeKdHtMAm0I/fJ9mUlYhhnODZQ25UZscxaMvwFMxmx Rke5RYVnOCS4QTL1Yter6w== X-Google-Smtp-Source: ABdhPJxovW9pHni2OcbL1kgPNsjmVzJL1XbQ6jywqBTAgKBlv4ExoNMtQX+7Doh0hwZiG1MxBIjLLw== X-Received: by 2002:a6b:da0f:: with SMTP id x15mr641278iob.181.1617761329593; Tue, 06 Apr 2021 19:08:49 -0700 (PDT) Original-Received: from smtpclient.apple (1623701-static.rochmnaa.metronetinc.net. [199.48.95.30]) by smtp.gmail.com with ESMTPSA id d1sm13643990ils.49.2021.04.06.19.08.48 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Apr 2021 19:08:48 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3654.80.0.2.43) X-Mailman-Approved-At: Tue, 06 Apr 2021 22:17:33 -0400 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:203663 Archived-At: --Apple-Mail=_7DB46FC8-567D-44FE-B035-FCBB64A188B2 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 I=E2=80=99m not familiar with the protocols here, so I apologize if this = is just noise. Modifying my Makefile.in (as Alan provided) bypasses the dlopen error = originally reported. Thank you all. > On Apr 6, 2021, at 16:33, Alan Third wrote: >=20 > On Tue, Apr 06, 2021 at 09:22:57PM +0000, Andrea Corallo wrote: >> Alan Third writes: >>=20 >>> On Tue, Apr 06, 2021 at 07:26:16PM +0000, Andrea Corallo wrote: >>>>=20 >>>> Okay the log looks good AFAICT. >>>>=20 >>>> We are suggesting the eln to go in: >>>> /Users/alan/src/emacs/native/nextstep/Emacs.app/Contents/MacOS/bin/ >>>>=20 >>>> and the eln in: >>>> /Users/alan/src/emacs/native/nextstep/Emacs.app/Contents/Resources/ >>>=20 >>> 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. >>>=20 >>> = "../../Resources/native-lisp/28.0.50-0f05d3d3/preloaded/misc-lang-7cb33d20= -db3eb4ae.eln" >>>=20 >>>> 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. >>>=20 >>> I've attached the new bootstrap log in case I'm wrong and you can = see >>> something else. >>=20 >> I think your analysis is correct. >>=20 >> ATM we form BIN_DESTDIR as '$(DESTDIR)${bindir}/' (Makefile.in:419), >> maybe we should use 'ns_appbindir' to form it? >=20 > Yup, that seems to have solved it. I'm doing this: >=20 > modified Makefile.in > @@ -420,8 +420,13 @@ lib lib-src lisp nt: > dirstate =3D .git/logs/HEAD > VCSWITNESS =3D $(if $(wildcard = $(srcdir)/$(dirstate)),$$(srcdir)/../$(dirstate)) > src: Makefile > +ifeq (${ns_self_contained},no) > $(MAKE) -C $@ VCSWITNESS=3D'$(VCSWITNESS)' = BIN_DESTDIR=3D'$(DESTDIR)${bindir}/' \ > ELN_DESTDIR=3D'$(ELN_DESTDIR)' all > +else > + $(MAKE) -C $@ VCSWITNESS=3D'$(VCSWITNESS)' = BIN_DESTDIR=3D'${ns_appbindir}/' \ > + ELN_DESTDIR=3D'$(ELN_DESTDIR)' all > +endif >=20 > blessmail: Makefile src > $(MAKE) -C lib-src maybe-blessmail >=20 >=20 > which works, but I don't know much about makefiles so there may be a > neater way to do it. >=20 > -- > Alan Third --Apple-Mail=_7DB46FC8-567D-44FE-B035-FCBB64A188B2 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEELkodRmJpyBQb0X8PsviyDlPaAAoFAmBtFC4ACgkQsviyDlPa AAr0KRAAhYP0dguN3Zio5gCJg7nXw8nB54Dg6+dIDPpMbjVoKS4T0B8JxtVPjVfE af7xy1U7BQhOtoyPQs7j+M1spEjlSQqbFr5HPzH4Mwc1UhyvQjThI40Xtf1Dotl/ RufaqRv+8KQZx3BkbGaWclTN7ZcIsro3LjTC8Jiu64+o+UktQ6DNvMDq0b47mhlF c1HujiKgQwHkmLnhI+dxBUoNO4fNvNTEyZ6yu6pBT+TvOUjTYNFDmulNRN/aHtcz /qzpNtHxkyi9nmcf8G6qRkWrUeGNyq0OvddSFHJq4KeAgYNAtbVbA15zzSHbv2WU vq2wKgrpmRQu1mgeQ8WOGz+HVtB1X/3S61bOJivj36hdZZoL/EyYoqN7vqGyABm/ ckGBoCqGqmU8f5kyusjP5qRPdfPM/PJ+HNnJE1mPf11T2yH7MIBxR5XEjpI62K4m tWoNZECcN315sfLdHSXDf1ANa/41yjYwf5YgCKF5fVEnruMgedc7J8x7emIOWXHo mK9imGj5sy+lmStJ6+kY53tyRc85zg/77TWyTg89O21N2Z4PtB0Fxjz5E2iXs3JB yRU/N8dPrVpG1sMyWD/Kd0g6CLl8NPAe9VV6kEXljuubaV5SNNGITf6/Sefu/Ehm TSm1dghGEbcvOW1GE7NFF3Bqz9RGzdgkrN8CuErNxjlxYcsNTEo= =hGKL -----END PGP SIGNATURE----- --Apple-Mail=_7DB46FC8-567D-44FE-B035-FCBB64A188B2--