From unknown Sun Jun 22 00:33:58 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42906: [feature/native-comp] out-of-tree build process broken Resent-From: Ovidiu Toader Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Aug 2020 15:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42906 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 42906@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159767955111463 (code B ref -1); Mon, 17 Aug 2020 15:53:02 +0000 Received: (at submit) by debbugs.gnu.org; 17 Aug 2020 15:52:31 +0000 Received: from localhost ([127.0.0.1]:32984 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7hR0-0002ym-2n for submit@debbugs.gnu.org; Mon, 17 Aug 2020 11:52:31 -0400 Received: from lists.gnu.org ([209.51.188.17]:45650) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7gsD-0008IF-Ae for submit@debbugs.gnu.org; Mon, 17 Aug 2020 11:16:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51080) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k7gsC-0007Ww-R5 for bug-gnu-emacs@gnu.org; Mon, 17 Aug 2020 11:16:33 -0400 Received: from esvaout.mail-relay.ubc.ca ([142.103.203.5]:65207 helo=nesvaprod05.mail-relay.ubc.ca) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k7gsA-0003f7-Hc for bug-gnu-emacs@gnu.org; Mon, 17 Aug 2020 11:16:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ubc.ca; i=@ubc.ca; q=dns/txt; s=s1; t=1597677390; x=1629213390; h=to:from:subject:message-id:date: content-transfer-encoding; bh=KkkX9WVy6aQPMJpylpxsfm34BpxFtr6mg7usieY8oLs=; b=ZqwesFqMF7EW1OGi6KK31w1lCT+1KEQxToP5JSM9gUg+MEiXpBHrT6lI W35Uvf53ARzK9+kTeAS1BZIV+5kb+FKU7qfw2HEOjz4m3jKZnGBfTeMl1 pcr2K04W8KxxQvjL6qgtFKi0bnZ8/Trjveqjz/vfmKzq3dVp8En721srW peOKvFtaH0lQoKKL+fzzzMf9knMLD/aTbTPfLgxJtkTE655XkaKM8kCwO 8oLsDTdx9QhfBYucEovC92FdyQZcCHLKG+2aZnQfp9qcNLn9ueyDxXMbz 6Km0Sd3PZ4n09HMWDdOLnqex/2hzxi+p4XGKIhdYxh5YFYPUdk5uTIXi8 w==; X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False IronPort-PHdr: 9a23:D29DvB8HDnVDMf9uRHKM819IXTAuvvDOBiVQ1KB42+8cTK2v8tzYMVDF4r011RmVBNudsqofwLqN+4nbGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1Ov71GonPhMiryuy+4ZLebxhJiTanfL9+MBu7oQrSu8QYnIBvNrs/xhzVr3VSZu9Y33loJVWdnxb94se/4ptu+DlOtvwi6sBNT7z0c7w3QrJEAjsmNXs15NDwuhnYUQSP/HocXX4InRdOHgPI8Qv1Xpb1siv9q+p9xCyXNtD4QLwoRTiv6bpgRRn1gykFKjE56nnahNJwgqxGoxyvqQBwzYHPbYGJLfpzZL/Rcc8GSWdDWMtaSixPApm7b4sKF+cPJPhYr4jgqFsPsBu1GBeiBOT1xTBVmHD2x7Ax3uMmEQHY3QwtBMoOsHTOo9XuLqsSTPu6w7XSwTrfdfxbwDHw45XHfR49u/+DR65wcdbPxkk1EQPIlluep4zlMj6J2OoArnWX4u5jWO+rhGMrtgN8riWty8ovhYTEiYMYx1DZ+ChkxIs4JcO1RU9lbdK6E5ZduT2XOYVwT8g/QG9ooD43xqAJtJKlZiQG1YgryhDFZ/CZfYWF4AjvWPiPLTtlgn9uZaixiAyo8Ue6z+3xTsy00FFXoSVbitTMrXUN1wDL6siAV/t94l+t2TaR2ADX7eFJOUU0mrHAK5I72r4wloAcsV/ZEi/rg0r5kLWaeVk+9eSw6uTnZKvppoOEOoNphQzyLL4iltGjDek2KAQCQWaW9Oam2LH940H1Xa1GjvgsnanYtJDaK94bpqm8AwJN1YYj9Re/Aiy+0NQYh3YHN0hJeA+cgIf1IV3BPOr3Ae+lg1uwiDdr2+zGPrr5D5rWM3jDn67tfbl7605B0QY809Vf6IhIBbEaO//zVUnxtMHCAh8+KQy0zLWvNNIo3J4RHG2JH+qUNarZqneH4P9pJPODN6EPvzOoDOYk6//zxUM+kFMQZ+H92oUWQGi4F+8gPk+SJ3Hl1IRSWVwWtxYzGbS5wGaJViReMi6/ X-IPAS-Result: A2EDBQCQnjpf/93tZ45fH2qFOIUWj2YGhEkBhwaRfQsBAQEBAQEBAQEbHAQBAYccJjgTAgMBAQEDAgUBAQEFAQEBAQEBBQMBAQEChgxFgjcihBtvHAImAoQYglgllAKbeoEyhVKDUYFAgQ4qjTh5gQeBOA+IIoJKgmAEmgaBa5o+gmyaFAUHAx6gIbQKgXszGggwgyVPGQ2NdgEzGI5EJGcCBgEJAQEDCSGRBwEB Received: from mbs.phas.ubc.ca ([142.103.237.221]) by nesvaprod05.mail-relay.ubc.ca with SMTP; 17 Aug 2020 08:16:27 -0700 From: Ovidiu Toader Message-ID: <8f6a8257-6ecb-6c14-c41e-142ad9dfb441@phas.ubc.ca> Date: Mon, 17 Aug 2020 08:16:26 -0700 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Received-SPF: none client-ip=142.103.203.5; envelope-from=ovi@phas.ubc.ca; helo=nesvaprod05.mail-relay.ubc.ca X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/17 11:16:27 X-ACL-Warn: Detected OS = FreeBSD 9.x or newer X-Spam_score_int: -32 X-Spam_score: -3.3 X-Spam_bar: --- X-Spam_report: (-3.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FORGED_SPF_HELO=1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-Mailman-Approved-At: Mon, 17 Aug 2020 11:52:28 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) When feature/native-comp branch is built out-of-tree, emacs cannot find t= he .eln files during start. The patch below fixes this issue. The problem is caused by the fact that = during an out-of-tree build, default-directory points inside the build tr= ee while the .eln files are found in the source tree and because of that = the subsequent replace-regexp-in-string fails to adjust the file path of = the compilation unit. modified=C2=A0=C2=A0 lisp/loadup.el @@ -454,7 +454,7 @@ =C2=A0=C2=A0 ;; when installed or if the source directory got moved.=C2=A0= This is set to be =C2=A0=C2=A0 ;; a pair in the form: (rel-path-from-install-bin . rel-path= -from-local-bin). =C2=A0=C2=A0 (let ((h (make-hash-table :test #'eq)) -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (lisp-src-dir (expand-file-na= me (concat default-directory "../lisp"))) +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (lisp-src-dir (expand-file-na= me "lisp" source-directory)) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (bin-dest-dir (cadr (mem= ber "--bin-dest" command-line-args))) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (lisp-dest-dir (cadr (me= mber "--lisp-dest" command-line-args)))) =C2=A0=C2=A0=C2=A0=C2=A0 (mapatoms (lambda (s) From unknown Sun Jun 22 00:33:58 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42906: [feature/native-comp] out-of-tree build process broken Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Aug 2020 18:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42906 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Ovidiu Toader Cc: 42906@debbugs.gnu.org Received: via spool by 42906-submit@debbugs.gnu.org id=B42906.159769019821026 (code B ref 42906); Mon, 17 Aug 2020 18:50:02 +0000 Received: (at 42906) by debbugs.gnu.org; 17 Aug 2020 18:49:58 +0000 Received: from localhost ([127.0.0.1]:33179 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7kCk-0005T4-JI for submit@debbugs.gnu.org; Mon, 17 Aug 2020 14:49:58 -0400 Received: from mx.sdf.org ([205.166.94.24]:64855) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7kCg-0005Su-J6 for 42906@debbugs.gnu.org; Mon, 17 Aug 2020 14:49:56 -0400 Received: from mab (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTP id 07HInrHd025584; Mon, 17 Aug 2020 18:49:53 GMT From: Andrea Corallo References: <8f6a8257-6ecb-6c14-c41e-142ad9dfb441@phas.ubc.ca> Date: Mon, 17 Aug 2020 18:49:53 +0000 In-Reply-To: <8f6a8257-6ecb-6c14-c41e-142ad9dfb441@phas.ubc.ca> (Ovidiu Toader's message of "Mon, 17 Aug 2020 08:16:26 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Ovidiu Toader writes: > When feature/native-comp branch is built out-of-tree, emacs cannot find the .eln files during start. > > The patch below fixes this issue. The problem is caused by the fact > that during an out-of-tree build, default-directory points inside the > build tree while the .eln files are found in the source tree and > because of that the subsequent replace-regexp-in-string fails to > adjust the file path of the compilation unit. Hi Ovidiu, thanks for the feedback and the patch! I just pushed this evening a branch that reworks also the eln file placement on the file-system and partially this mechanism. https://lists.gnu.org/archive/html/emacs-devel/2020-08/msg00535.html It should cure also this problem. It would be great if you cold try it out and give a feedback if it works for you. Thanks! Andrea -- akrl@sdf.org From unknown Sun Jun 22 00:33:58 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Ovidiu Toader Subject: bug#42906: closed (Re: bug#42906: [feature/native-comp] out-of-tree build process broken) Message-ID: References: <8f6a8257-6ecb-6c14-c41e-142ad9dfb441@phas.ubc.ca> X-Gnu-PR-Message: they-closed 42906 X-Gnu-PR-Package: emacs Reply-To: 42906@debbugs.gnu.org Date: Tue, 18 Aug 2020 07:25:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1597735503-27845-1" This is a multi-part message in MIME format... ------------=_1597735503-27845-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #42906: [feature/native-comp] out-of-tree build process broken which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 42906@debbugs.gnu.org. --=20 42906: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D42906 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1597735503-27845-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 42906-done) by debbugs.gnu.org; 18 Aug 2020 07:24:18 +0000 Received: from localhost ([127.0.0.1]:33798 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7vyk-0007Dg-7w for submit@debbugs.gnu.org; Tue, 18 Aug 2020 03:24:18 -0400 Received: from mx.sdf.org ([205.166.94.24]:62988) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7vyf-0007DT-WE for 42906-done@debbugs.gnu.org; Tue, 18 Aug 2020 03:24:16 -0400 Received: from mab (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTP id 07I7OCaF029879; Tue, 18 Aug 2020 07:24:12 GMT From: Andrea Corallo To: 42906-done@debbugs.gnu.org Subject: Re: bug#42906: [feature/native-comp] out-of-tree build process broken References: <8f6a8257-6ecb-6c14-c41e-142ad9dfb441@phas.ubc.ca> <18edfde8-2c39-189b-ab19-a72043bd6d4f@phas.ubc.ca> Date: Tue, 18 Aug 2020 07:24:12 +0000 In-Reply-To: <18edfde8-2c39-189b-ab19-a72043bd6d4f@phas.ubc.ca> (Ovidiu Toader's message of "Mon, 17 Aug 2020 21:22:18 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 42906-done Cc: Ovidiu Toader X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Ovidiu Toader writes: > On 2020-08-17 11:49 a.m., Andrea Corallo wrote: >> It would be great if you cold try it out and give a feedback if it works >> for you. > > I confirm that the new version works well with an out-of-tree build. Great, closing it. Thanks! Andrea -- akrl@sdf.org ------------=_1597735503-27845-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 17 Aug 2020 15:52:31 +0000 Received: from localhost ([127.0.0.1]:32984 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7hR0-0002ym-2n for submit@debbugs.gnu.org; Mon, 17 Aug 2020 11:52:31 -0400 Received: from lists.gnu.org ([209.51.188.17]:45650) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7gsD-0008IF-Ae for submit@debbugs.gnu.org; Mon, 17 Aug 2020 11:16:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51080) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k7gsC-0007Ww-R5 for bug-gnu-emacs@gnu.org; Mon, 17 Aug 2020 11:16:33 -0400 Received: from esvaout.mail-relay.ubc.ca ([142.103.203.5]:65207 helo=nesvaprod05.mail-relay.ubc.ca) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k7gsA-0003f7-Hc for bug-gnu-emacs@gnu.org; Mon, 17 Aug 2020 11:16:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ubc.ca; i=@ubc.ca; q=dns/txt; s=s1; t=1597677390; x=1629213390; h=to:from:subject:message-id:date: content-transfer-encoding; bh=KkkX9WVy6aQPMJpylpxsfm34BpxFtr6mg7usieY8oLs=; b=ZqwesFqMF7EW1OGi6KK31w1lCT+1KEQxToP5JSM9gUg+MEiXpBHrT6lI W35Uvf53ARzK9+kTeAS1BZIV+5kb+FKU7qfw2HEOjz4m3jKZnGBfTeMl1 pcr2K04W8KxxQvjL6qgtFKi0bnZ8/Trjveqjz/vfmKzq3dVp8En721srW peOKvFtaH0lQoKKL+fzzzMf9knMLD/aTbTPfLgxJtkTE655XkaKM8kCwO 8oLsDTdx9QhfBYucEovC92FdyQZcCHLKG+2aZnQfp9qcNLn9ueyDxXMbz 6Km0Sd3PZ4n09HMWDdOLnqex/2hzxi+p4XGKIhdYxh5YFYPUdk5uTIXi8 w==; X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False IronPort-PHdr: =?us-ascii?q?9a23=3AD29DvB8HDnVDMf9uRHKM819IXTAuvvDOBiVQ1K?= =?us-ascii?q?B42+8cTK2v8tzYMVDF4r011RmVBNudsqofwLqN+4nbGkU4qa6bt34DdJEeHz?= =?us-ascii?q?Qksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPER?= =?us-ascii?q?vjKwV1Ov71GonPhMiryuy+4ZLebxhJiTanfL9+MBu7oQrSu8QYnIBvNrs/xh?= =?us-ascii?q?zVr3VSZu9Y33loJVWdnxb94se/4ptu+DlOtvwi6sBNT7z0c7w3QrJEAjsmNX?= =?us-ascii?q?s15NDwuhnYUQSP/HocXX4InRdOHgPI8Qv1Xpb1siv9q+p9xCyXNtD4QLwoRT?= =?us-ascii?q?iv6bpgRRn1gykFKjE56nnahNJwgqxGoxyvqQBwzYHPbYGJLfpzZL/Rcc8GSW?= =?us-ascii?q?dDWMtaSixPApm7b4sKF+cPJPhYr4jgqFsPsBu1GBeiBOT1xTBVmHD2x7Ax3u?= =?us-ascii?q?MmEQHY3QwtBMoOsHTOo9XuLqsSTPu6w7XSwTrfdfxbwDHw45XHfR49u/+DR6?= =?us-ascii?q?5wcdbPxkk1EQPIlluep4zlMj6J2OoArnWX4u5jWO+rhGMrtgN8riWty8ovhY?= =?us-ascii?q?TEiYMYx1DZ+ChkxIs4JcO1RU9lbdK6E5ZduT2XOYVwT8g/QG9ooD43xqAJtJ?= =?us-ascii?q?KlZiQG1YgryhDFZ/CZfYWF4AjvWPiPLTtlgn9uZaixiAyo8Ue6z+3xTsy00F?= =?us-ascii?q?FXoSVbitTMrXUN1wDL6siAV/t94l+t2TaR2ADX7eFJOUU0mrHAK5I72r4wlo?= =?us-ascii?q?AcsV/ZEi/rg0r5kLWaeVk+9eSw6uTnZKvppoOEOoNphQzyLL4iltGjDek2KA?= =?us-ascii?q?QCQWaW9Oam2LH940H1Xa1GjvgsnanYtJDaK94bpqm8AwJN1YYj9Re/Aiy+0N?= =?us-ascii?q?QYh3YHN0hJeA+cgIf1IV3BPOr3Ae+lg1uwiDdr2+zGPrr5D5rWM3jDn67tfb?= =?us-ascii?q?l7605B0QY809Vf6IhIBbEaO//zVUnxtMHCAh8+KQy0zLWvNNIo3J4RHG2JH+?= =?us-ascii?q?qUNarZqneH4P9pJPODN6EPvzOoDOYk6//zxUM+kFMQZ+H92oUWQGi4F+8gPk?= =?us-ascii?q?+SJ3Hl1IRSWVwWtxYzGbS5wGaJViReMi6/?= X-IPAS-Result: =?us-ascii?q?A2EDBQCQnjpf/93tZ45fH2qFOIUWj2YGhEkBhwaRfQsBA?= =?us-ascii?q?QEBAQEBAQEbHAQBAYccJjgTAgMBAQEDAgUBAQEFAQEBAQEBBQMBAQEChgxFg?= =?us-ascii?q?jcihBtvHAImAoQYglgllAKbeoEyhVKDUYFAgQ4qjTh5gQeBOA+IIoJKgmAEm?= =?us-ascii?q?gaBa5o+gmyaFAUHAx6gIbQKgXszGggwgyVPGQ2NdgEzGI5EJGcCBgEJAQEDC?= =?us-ascii?q?SGRBwEB?= Received: from mbs.phas.ubc.ca ([142.103.237.221]) by nesvaprod05.mail-relay.ubc.ca with SMTP; 17 Aug 2020 08:16:27 -0700 To: bug-gnu-emacs@gnu.org From: Ovidiu Toader Subject: [feature/native-comp] out-of-tree build process broken Message-ID: <8f6a8257-6ecb-6c14-c41e-142ad9dfb441@phas.ubc.ca> Date: Mon, 17 Aug 2020 08:16:26 -0700 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable Received-SPF: none client-ip=142.103.203.5; envelope-from=ovi@phas.ubc.ca; helo=nesvaprod05.mail-relay.ubc.ca X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/17 11:16:27 X-ACL-Warn: Detected OS = FreeBSD 9.x or newer X-Spam_score_int: -32 X-Spam_score: -3.3 X-Spam_bar: --- X-Spam_report: (-3.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FORGED_SPF_HELO=1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 17 Aug 2020 11:52:28 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) When feature/native-comp branch is built out-of-tree, emacs cannot find t= he .eln files during start. The patch below fixes this issue. The problem is caused by the fact that = during an out-of-tree build, default-directory points inside the build tr= ee while the .eln files are found in the source tree and because of that = the subsequent replace-regexp-in-string fails to adjust the file path of = the compilation unit. modified=C2=A0=C2=A0 lisp/loadup.el @@ -454,7 +454,7 @@ =C2=A0=C2=A0 ;; when installed or if the source directory got moved.=C2=A0= This is set to be =C2=A0=C2=A0 ;; a pair in the form: (rel-path-from-install-bin . rel-path= -from-local-bin). =C2=A0=C2=A0 (let ((h (make-hash-table :test #'eq)) -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (lisp-src-dir (expand-file-na= me (concat default-directory "../lisp"))) +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (lisp-src-dir (expand-file-na= me "lisp" source-directory)) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (bin-dest-dir (cadr (mem= ber "--bin-dest" command-line-args))) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (lisp-dest-dir (cadr (me= mber "--lisp-dest" command-line-args)))) =C2=A0=C2=A0=C2=A0=C2=A0 (mapatoms (lambda (s) ------------=_1597735503-27845-1-- From unknown Sun Jun 22 00:33:58 2025 X-Loop: help-debbugs@gnu.org Subject: bug#42906: [feature/native-comp] out-of-tree build process broken Resent-From: Ovidiu Toader Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 Aug 2020 07:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42906 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Andrea Corallo Cc: 42906@debbugs.gnu.org Received: via spool by 42906-submit@debbugs.gnu.org id=B42906.159773552127925 (code B ref 42906); Tue, 18 Aug 2020 07:26:02 +0000 Received: (at 42906) by debbugs.gnu.org; 18 Aug 2020 07:25:21 +0000 Received: from localhost ([127.0.0.1]:33810 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7vzk-0007GK-0c for submit@debbugs.gnu.org; Tue, 18 Aug 2020 03:25:21 -0400 Received: from esvaout2.mail-relay.ubc.ca ([142.103.203.9]:56507) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k7t8j-0002in-Ai for 42906@debbugs.gnu.org; Tue, 18 Aug 2020 00:22:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ubc.ca; i=@ubc.ca; q=dns/txt; s=s1; t=1597724546; x=1629260546; h=subject:to:cc:references:from:message-id:date: in-reply-to:content-transfer-encoding; bh=bCn7tNY+eQfCWWRGeZQB3/RD7mtG7KpRnh7yUQiKXXE=; b=lHDYnH8fYkih3ugU0dF/KJ6y7JVFeNqHUeniby5iXeFf1Y7mFeMafrDk Kq4BrbWaZW/9Y3Kbgd4/42tGXNig08yAo2Q9aMzaO19NdTm4/uK/Z5FGN iQp4OVdmQYxbSfN0hZEf/N0QhojqEUXd6jMk+cE3ZUugsqcDD0BDudbYm xOJgXp7zkwC5y2qOGOdwMTjZwGEFrCugDnC8Lc9l04FpFRf4DNnrbq8nr Xuo6CQsXxX9HRlGz/oo+GrT0iwJKqrwPNHLQgDmQXBLQNK/bSQaQUUqXV 4MMwFeZ+7Lagc24F8YGJr5uOtS9ZN7jOLjTHfy6HgAzHTX4xN0D0CL05k w==; X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False IronPort-PHdr: 9a23:Do3VGRJihJoO2IrOVtmcpTZWNBhigK39O0sv0rFitYgeKfvxwZ3uMQTl6Ol3ixeRBMOHsqwC0rKL+P+wEUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQpFiCe8bL9oMRm6sQXcusYUjIZhN6081gbHrnxUdupM2GhmP0iTnxHy5sex+J5s7SFdsO8/+sBDTKv3Yb02QaRXAzo6PW814tbrtQTYQguU+nQcSGQWnQFWDAXD8Rr3Q43+sir+tup6xSmaIcj7Rq06VDi+86tmTgLjhSEaPDA77W7XkNR9gr9FrhKvpxJxwIDab4OJO/RxZa7dYdEXSHBdUspNSyBMAIWxZJYPAeobOuZYqpHwqUIQrRu/GAasBf7vwSJWiH/xx6I1zvouERvb1wEnGNIOrnXUoc7tNKcSS++117PEzSjYYPxKwzvy9JLHfwknrPqRUr1+bdDfxlMzFwPZkFqQs4rlMiuI2+gTr2WW7OptWOKxh2MlpQx8rDqiy9koh4TGhowYxEzJ+Dh2zYooOdG1TE12bMK6HZZOty+XNol7T8ItTWx1visx174IuYajcSQXx5kr2QTTZ+Gbf4WG+B7vSuicLDViiH57Zr6zmhC/+lW6xOLmTMm7ylNKozJAktnLq38CyQTe6tOCSvth5keh3iuP1xzL5uFEP080ka3bJoYkwrErjZofq1zDHi/sl0XtlqOWa14r9fSy5+v7eLrqvp6cN4lqhQHiKqkih8OyDfoiPgQTQ2SW9/6w2KPt8ED7WrlGkOM6nrTBvJDfP8sbp6q5AwFP0oYk7hayFzCm0MoZnXQcNFJFeAiIj5PzN1HTO//3Ee2zjEi2nztz3fDJIqXhAonRLnjEiLrscqhx5kpAxAcy1t1Q+oxbBaoaL/LuVU/xr8bUDhA/Mwyp2ernD8991owGU2KVHqCZKL/SsUOP5u83OeaMZ5UVuDLmJvg++vHug2U1mVgHfammjtMrbyWRGPh8LkzRSn32i9MFFi9etwkkSMTxhFPEViRcMSWcRaU5sxYlCY6nEM//QYmhjabJiCClH7VOZmldTE2GGjHjftPXCL83dCuOL5o5wXQ/Xr+7Rtp52A== X-IPAS-Result: A2HmAgA/Vztf/93tZ45fHAEBAQEBAQcBARIBAQQEAQFAgUqDboUWj2QBAQaBOYoXkX0LAQEBAQEBAQEBNwQBAYRMAoJOJjgTAgMBAQEDAgUBAQEFAQEBAQEBBQMBAQEChgxFgjcig3IBBSNWEAsOCgICJgICVwaDOYJYJbB0gTKFUoNegUCBDiqNOHmBB4E4D4JaPodUgmAEmx9Smj6CbJoUBQcDHoJuAZ0ytAuBezMaCDCDJU8ZDZ0GJGcCBgoBAQMJIZEzAQE Received: from mbs.phas.ubc.ca ([142.103.237.221]) by esvaout2.mail-relay.ubc.ca with SMTP; 17 Aug 2020 21:22:19 -0700 References: <8f6a8257-6ecb-6c14-c41e-142ad9dfb441@phas.ubc.ca> From: Ovidiu Toader Message-ID: <18edfde8-2c39-189b-ab19-a72043bd6d4f@phas.ubc.ca> Date: Mon, 17 Aug 2020 21:22:18 -0700 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-Spam-Score: 0.0 (/) X-Mailman-Approved-At: Tue, 18 Aug 2020 03:25:18 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 2020-08-17 11:49 a.m., Andrea Corallo wrote: > It would be great if you cold try it out and give a feedback if it works > for you. I confirm that the new version works well with an out-of-tree build. Thank you for all the great work! Ovidiu