From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andreas Fuchs Newsgroups: gmane.emacs.bugs Subject: bug#43137: 28.0.50; [feature/native-comp] .eln path fixup confused using relative paths Date: Tue, 1 Sep 2020 15:32:05 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000b379fd05ae4593d5" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13557"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 43137@debbugs.gnu.org, Vibhav Pant To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 01 21:33:13 2020 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 1kDC1o-0003Nv-JZ for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Sep 2020 21:33:12 +0200 Original-Received: from localhost ([::1]:43220 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kDC1n-0004FP-GC for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 01 Sep 2020 15:33:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59918) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kDC1e-0004FB-2c for bug-gnu-emacs@gnu.org; Tue, 01 Sep 2020 15:33:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45828) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kDC1d-0006f1-QA for bug-gnu-emacs@gnu.org; Tue, 01 Sep 2020 15:33:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kDC1d-00011C-O1 for bug-gnu-emacs@gnu.org; Tue, 01 Sep 2020 15:33:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Fuchs Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Sep 2020 19:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43137 X-GNU-PR-Package: emacs Original-Received: via spool by 43137-submit@debbugs.gnu.org id=B43137.15989887453865 (code B ref 43137); Tue, 01 Sep 2020 19:33:01 +0000 Original-Received: (at 43137) by debbugs.gnu.org; 1 Sep 2020 19:32:25 +0000 Original-Received: from localhost ([127.0.0.1]:57372 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDC13-00010H-K7 for submit@debbugs.gnu.org; Tue, 01 Sep 2020 15:32:25 -0400 Original-Received: from mail-ej1-f45.google.com ([209.85.218.45]:38651) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kDC11-000103-Ir for 43137@debbugs.gnu.org; Tue, 01 Sep 2020 15:32:25 -0400 Original-Received: by mail-ej1-f45.google.com with SMTP id i22so3324198eja.5 for <43137@debbugs.gnu.org>; Tue, 01 Sep 2020 12:32:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boinkor-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yHcWvbzBTmGxNEbEdznq1jg7y18n1G3IP4bacRxxfV4=; b=gbhcLkoF+aoW9QZ4YsmMr1LDSJS5hWGpR+8Udm56XyrxfGxDBzL5LLXXyht8G/XdMx o2i4FPO2tyu2NdP8TeYNFVn9X8GASdKmwKK90h+munmZV0Br3oFF1MwUj/SpzA/9x7wL avidPq8CfWYG4Y14QjXDVThchjmUUS5Y1/usHFxK0mOeqad6LDmWwGAlnFOnaVlsmyIp T5iWg0e1H2E8FccHueQPTM6bO2Ct+kOzsdcHmQxM/xMYb15shBvrS4Uq3t0Ux88ESb6W CGAesKHuEg8EaaqD6DNTBfSwBTLrn8gLqMY+VS6p9jWbTbF7pCupQZ6Uw73ZfnMw4wI2 rqNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yHcWvbzBTmGxNEbEdznq1jg7y18n1G3IP4bacRxxfV4=; b=aX8ufLHIpqMw3ScsmnrcB0PhQbaZEHnMVz8LxHifGdIGG7W4+mmUoKoF9WibPJOzhV s/pugOTclbhKrxrcXLaxrQsc1akXRGHQpxUAVePz7hu5wmTLNFWmMq1G27hX72MhNP6U seuvL5YPNG4BGu3exNTuV89dNOmWVJQ5HLiPfC7tVte2EzuyB2CJP3mPTndpGp41t82F 0O6a3gW45UCGub4jaGzYT0W5v5WSevbo1wLwR13vTgLa8lWJgcuZEhjxMcCrgEtQi2tx e/fccsAaF88r46R4rPnuTKH133DVCLz+iP9O63bpk6aaCad4w9tgsUmsg9gUWowATx9T tKpw== X-Gm-Message-State: AOAM532YwT6i35O5S7XOhZ0LNUH742fz/0uriR28u/7JwVnWzmPUFnN5 AdqaWRyFHKlVJQvmAmWVXm2MXc84LbfqoWFPwk4RMg== X-Google-Smtp-Source: ABdhPJzERkeJH4TiR9huOLOksYlt1oI7HZk24NrdYRFFssd5HcLnq9oUNB6j7rHqhX4OKVl5mLbfDBFOabMcepcTZ90= X-Received: by 2002:a17:906:19c7:: with SMTP id h7mr1354403ejd.517.1598988737533; Tue, 01 Sep 2020 12:32:17 -0700 (PDT) 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:186886 Archived-At: --000000000000b379fd05ae4593d5 Content-Type: text/plain; charset="UTF-8" I wrote: > This makes sense too. I'll investigate when `Vinvocation_directory` gets > set. Does sound like that doesn't happen early enough, maybe we can pull > it forward a bit. I dug into this, and the way main() progresses is that it first tries to load the pdump (via load_pdump in line 1076, https://github.com/emacs-mirror/emacs/blob/feature/native-comp/src/emacs.c#L1076 ), and only much later, sets invocation-directory and other cmdargs via set_invocation_vars called from init_cmdargs (called in main on line 1794, https://github.com/emacs-mirror/emacs/blob/feature/native-comp/src/emacs.c#L1794 ). I think this should be failing cross-platform; is it working for you? Thanks, -- Andreas Fuchs, (http://|im:asf@|mailto:asf@)boinkor.net, antifuchs --000000000000b379fd05ae4593d5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I <asf@boinkor.net> wrote:
> This makes sense too. I'll investigate when `Vinv= ocation_directory` gets
> set. Does sound like that doesn't happe= n early enough, maybe we can pull
> it forward a bit.

I dug in= to this, and the way main() progresses is that it first tries to
load th= e pdump (via load_pdump in line 1076,
https://github.c= om/emacs-mirror/emacs/blob/feature/native-comp/src/emacs.c#L1076),
a= nd only much later, sets invocation-directory and other cmdargs via
set_= invocation_vars called from init_cmdargs (called in main on line 1794,
<= a href=3D"https://github.com/emacs-mirror/emacs/blob/feature/native-comp/sr= c/emacs.c#L1794">https://github.com/emacs-mirror/emacs/blob/feature/native-= comp/src/emacs.c#L1794).

I think this should be failing cross-pl= atform; is it working for you?

Thanks,
--
Andreas Fuchs, (http= ://|im:asf@|mailto:asf@)boinkor.net, antifuchs
--000000000000b379fd05ae4593d5--