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: Sun, 04 Apr 2021 07:10:50 +0000 Message-ID: References: <83ft09fdc4.fsf@gnu.org> <8335w8fs4b.fsf@gnu.org> <83y2dzev4b.fsf@gnu.org> <83mtufe9ke.fsf@gnu.org> 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="5085"; 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, Alan Third , 47558@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 04 09:11:12 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 1lSwue-0001EO-Ox for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 04 Apr 2021 09:11:12 +0200 Original-Received: from localhost ([::1]:46980 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lSwud-0002NM-Pt for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 04 Apr 2021 03:11:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36378) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lSwuV-0002NB-Ka for bug-gnu-emacs@gnu.org; Sun, 04 Apr 2021 03:11:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51465) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lSwuT-0001Ot-S3 for bug-gnu-emacs@gnu.org; Sun, 04 Apr 2021 03:11:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lSwuT-0005NH-Nj for bug-gnu-emacs@gnu.org; Sun, 04 Apr 2021 03:11:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Apr 2021 07:11:01 +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.161752025620648 (code B ref 47558); Sun, 04 Apr 2021 07:11:01 +0000 Original-Received: (at 47558) by debbugs.gnu.org; 4 Apr 2021 07:10:56 +0000 Original-Received: from localhost ([127.0.0.1]:34778 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lSwuO-0005My-1t for submit@debbugs.gnu.org; Sun, 04 Apr 2021 03:10:56 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]:58249) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lSwuM-0005Mp-CZ for 47558@debbugs.gnu.org; Sun, 04 Apr 2021 03:10:54 -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 1347AoBP013379 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Sun, 4 Apr 2021 07:10:51 GMT In-Reply-To: <83mtufe9ke.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 03 Apr 2021 17:17:53 +0300") 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:203516 Archived-At: 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. Regards Andrea