From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bhavin Gandhi Newsgroups: gmane.emacs.bugs Subject: bug#52376: 28.0.90; libdir is missing from native-comp-eln-load-path with GTK3 build Date: Thu, 9 Dec 2021 22:39:38 +0530 Message-ID: References: <83a6hbvw5d.fsf@gnu.org> <838rwvvtqs.fsf@gnu.org> <83zgpavoui.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28565"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 52376@debbugs.gnu.org To: Andrea Corallo , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 09 18:12: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 1mvMxm-0007BB-0j for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Dec 2021 18:12:10 +0100 Original-Received: from localhost ([::1]:56270 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mvMxk-0000zc-1n for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Dec 2021 12:12:08 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43786) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvMxe-0000yt-2G for bug-gnu-emacs@gnu.org; Thu, 09 Dec 2021 12:12:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33148) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mvMxd-0004QD-Q1 for bug-gnu-emacs@gnu.org; Thu, 09 Dec 2021 12:12:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mvMxd-0002nQ-Lg for bug-gnu-emacs@gnu.org; Thu, 09 Dec 2021 12:12:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Bhavin Gandhi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Dec 2021 17:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52376 X-GNU-PR-Package: emacs Original-Received: via spool by 52376-submit@debbugs.gnu.org id=B52376.163906988110702 (code B ref 52376); Thu, 09 Dec 2021 17:12:01 +0000 Original-Received: (at 52376) by debbugs.gnu.org; 9 Dec 2021 17:11:21 +0000 Original-Received: from localhost ([127.0.0.1]:44694 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvMwz-0002mX-2y for submit@debbugs.gnu.org; Thu, 09 Dec 2021 12:11:21 -0500 Original-Received: from mail-yb1-f178.google.com ([209.85.219.178]:46759) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mvMwx-0002mK-Ii for 52376@debbugs.gnu.org; Thu, 09 Dec 2021 12:11:20 -0500 Original-Received: by mail-yb1-f178.google.com with SMTP id g17so15141560ybe.13 for <52376@debbugs.gnu.org>; Thu, 09 Dec 2021 09:11:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=0AnsxTjhYfbJkxm+X1rBFLAZcnXAGclMTDza11R/Vms=; b=NwoKXl7bTyjaErImrNf7PJvHa9kT/l2BXcDxluzWiehmq7Ip76WhPJgFH7J1X9eWH0 Jolo3c64UlO+xxkUxX1mUXWhoI3bO3boYrIarAQ6jgRCDBP4h86sQYnu8ZUfQLzCXKpQ 9Kl0fnePzXTJKQqb7XApqA7qSVm+vMKOYjD/+q8r0sooevnbyKpQ8fG6tz62epwvcehX 3bYcRkV4Me2IfZ/PJDd4R9hSwZINXSaTIQEno0WnUMGUrv/gHBXLr0ORaoh/bTAB0i9m PLdQ5QcI14F8h1NPVeXVoOKn+U0nnLJO50HqGffyAV5rdK+tDWhbkUjQXXrgGiN8BT2E P2vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=0AnsxTjhYfbJkxm+X1rBFLAZcnXAGclMTDza11R/Vms=; b=2P9iCj1G6kHpaqWQUw5Lcm0Pk5airH1DsOej+RHjy4/ZQzrbKRlecANNEex7Xclg1h Tu34AFZz5wbHNW98nZf8wI/lsnm2K0Hd+wuDeuMBxnW2WEclnckHRnjuYdJOeFlzjsj5 mgyKKonWqBcOLzYF1yQmY93pDTj2Movb8SBnQ32m4bjV/t+BnvktfCf4ObwxRtUXgNKX 0WGJkIdXnQcVDdvQ6H4sGYDf+GIKRe00n29tVzJp0JX0nLo1ZLpiuFWkLwDrPK3lYSb3 tihj8nvuRW1t51Wq1qXtfwx5bf4p0J4uJRwcg9p/5z/JBOqvDxtMycZsU3jlDXMZVDxB GwUA== X-Gm-Message-State: AOAM5330S+MWuYWeF9shiN08yp4mlyiIeWkYQsxdpPKgUzHcU1ZtQr6n ++Txbgf5I/MN36ifJxWSZi0b8eIiIqJTu+37dpk= X-Google-Smtp-Source: ABdhPJyZraDD9B8qGaJTuRGtnPISIcwE7rOKYBzTgITkJe/nocoz5sqRA/XSrTHFVVSZ1fJxzYr1lELSZHqlrXVpRbc= X-Received: by 2002:a25:ce13:: with SMTP id x19mr7705484ybe.639.1639069873790; Thu, 09 Dec 2021 09:11:13 -0800 (PST) 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:222003 Archived-At: Hello Eli and Andrea On Thu, 9 Dec 2021 at 16:36, Andrea Corallo wrote: > eln files are most likely not sharable between these two builds, copying > them will have no effect as Emacs will decide not use them. > > eln files should be produced for each flavour of build independently. Yes, I'm keeping them for each build independently, the three directories below are for GTK3, Lucid, and no-X $ ls /usr/lib64/emacs/28.0.90/native-lisp/ 28.0.90-619a407c 28.0.90-a325c617 28.0.90-f21cc02e On Thu, 9 Dec 2021 at 02:01, Bhavin Gandhi wrote: > > I suggest to step in a debugger through the > > code in load_pdump, and see which of the *.pdmp files it finds in the > > problematic case; my guess is that it finds the one in the build > > directory, not in the installation directory. > > Okay. I will try to do that and see what it shows. > [=E2=80=A6] > Thank you for the help so far. I will experiment and post results here. So, I build the binaries again as suggested by etc/DEBUG, set breakpoint at load_pdump function. Here is the command log and output values I got. --8<---------------cut here---------------start------------->8--- bhavin@toolbox ~ $ gdb --args /usr/bin/emacs -Q Reading symbols from /usr/bin/emacs... Reading symbols from /usr/lib/debug/usr/bin/emacs-28.0.90-28.0.90-1.fc35.x86_64.debug... (gdb) directory /home/bhavin/src/emacs/emacs-pretest-rpm/emacs-28.0.90/build-gtk/src Source directories searched: /home/bhavin/src/emacs/emacs-pretest-rpm/emacs-28.0.90/build-gtk/src:$cdir:= $cwd (gdb) source /home/bhavin/src/emacs/emacs-pretest-rpm/emacs-28.0.90/build-g= tk/src/.gdbinit Warning: /home/bhavin/../lwlib: No such file or directory. SIGINT is used by the debugger. Are you sure you want to change it? (y or n) [answered Y; input not from terminal] DISPLAY =3D :0 TERM =3D xterm-256color Breakpoint 1 at 0x5d58c0: file ../../src/emacs.c, line 399. Breakpoint 2 at 0x592bad: file ../../src/xterm.c, line 10252. (gdb) break load_pdump Breakpoint 3 at 0x5d6679: file ../../src/emacs.c, line 829. (gdb) run Starting program: /usr/bin/emacs -Q Breakpoint 3, load_pdump (argc=3D2, argv=3D0x7fffffffe1b8) at ../../src/ema= cs.c:829 829 { I pressed n a couple of times here. 871 emacs_executable =3D load_pdump_find_executable (argv[0], &bufsize= ); (gdb) 872 exec_bufsize =3D bufsize; (gdb) p emacs_executable $1 =3D 0xdf0190 "/usr/bin/emacs-28.0.90" (gdb) 909 result =3D pdumper_load (dump_file, emacs_executable); (gdb) p dump_file $2 =3D 0xd99900 "/usr/bin/emacs-28.0.90.pdmp" (gdb) n 910 if (result =3D=3D PDUMPER_LOAD_SUCCESS) (gdb) p result $3 =3D 0 (gdb) c Continuing. --8<---------------cut here---------------start------------->8--- So, I think it is able to find the correct .pdmp file in this case, but when I continue and inspect native-comp-eln-load-path, the libdir is still not there. In case of Lucid, it finds the /usr/bin/emacs-28.0.90-lucid.pdmp, and when continuing the libdir is there is native-comp-eln-load-path.