From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "T.V Raman" Newsgroups: gmane.emacs.devel Subject: Re: Emacs:Native-Comp Backtrace Date: Wed, 26 Aug 2020 12:32:11 -0700 Message-ID: <24390.47291.992237.677025@retriever.mtv.corp.google.com> References: <24389.44700.121870.344164@google.com> 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="11013"; mail-complaints-to="usenet@ciao.gmane.io" Cc: raman@google.com, emacs-devel@gnu.org To: akrl@sdf.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 26 21:33:11 2020 Return-path: Envelope-to: ged-emacs-devel@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 1kB1AU-0002lt-TP for ged-emacs-devel@m.gmane-mx.org; Wed, 26 Aug 2020 21:33:10 +0200 Original-Received: from localhost ([::1]:33978 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kB1AT-00081t-TT for ged-emacs-devel@m.gmane-mx.org; Wed, 26 Aug 2020 15:33:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42796) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kB19h-0007b4-5c for emacs-devel@gnu.org; Wed, 26 Aug 2020 15:32:21 -0400 Original-Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]:34831) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kB19c-0007It-CU for emacs-devel@gnu.org; Wed, 26 Aug 2020 15:32:20 -0400 Original-Received: by mail-pg1-x532.google.com with SMTP id g29so584227pgl.2 for ; Wed, 26 Aug 2020 12:32:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:mime-version:content-transfer-encoding:message-id:date:to:cc :subject:in-reply-to:references; bh=AnXYBY1FK6+TIUSuKjbqoYNUGa3UiInb6BSr1+NwXec=; b=SwAXnhAXldjjMHhyx8gmpdZ5AUiED5XZoS8DxmHrYwh66QnTJ7Gb+2UbUi1AxOMB0z /vu9TDpZyiROu/nMqc0/bydvdXaqV18i7NI2MpYpNJvEoTNXB0MMcsBfXpAp4C3R/yID HKxfBHypvA4O0QZx9tiOYUHrYUFRqRagAjqXvWh0NngifBLdqQBWO+J7Jxojta+EmO2+ /i8S9NzKTNGRacS5s+T553KoM9AkqhTdaK82ViIQTJbi5W714ujG9cYV+PSUrapeYi7C jsDuJlZ7R6MaCiqdeAihnBR4pWX07YliOx6X2Ium4DpF4E5nI7DObYyjwRgtJl4kHEM1 Om7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:content-transfer-encoding :message-id:date:to:cc:subject:in-reply-to:references; bh=AnXYBY1FK6+TIUSuKjbqoYNUGa3UiInb6BSr1+NwXec=; b=fZ6LMsVtJogrj6x6Vdk212cZoCg2HAv+lsn54WB0xR2AI9eUrYHiK7dUG5+ZCOi1p8 l/hWG+N8dcSzdJwyiB6W+v57+u5Q/FHJR/kAOSf/7uM0aqIbP+02xGmEMrgFPlU93VEv 4RqYXGOw9prdJI/F8tI5rSNG6JV8rlviVDMo6Vk9R1irjeDV/JHGy9/voDPmbcmPxW7F s2CO3HimzEy4sf5AxrRervW/n0egZpgFp+W8WI3ji614FeouE082AkiHUODOj84Gt8fO j9fVm+awcfYPpnKt/rOPqxKV0StnjvrnDWZxVx+2ah2TLP9EAo7pc58pe0I/MhKiBHSj Xuiw== X-Gm-Message-State: AOAM5336QefkHJl/2wMLIhtifr5ZkOHJOi8zPQrfXw8YM3aZhajHWzdQ xh/POQ+pFOMgB5ls5y+Wnkz7aTxBufGeHQ== X-Google-Smtp-Source: ABdhPJzE18sId7GxbHPDixdQU0h6U6YcvGDK2j+z/G6edgBu7YOGbV90o4jJgxRhELc5MvSgmsSoPg== X-Received: by 2002:a17:902:a582:: with SMTP id az2mr12762671plb.329.1598470334060; Wed, 26 Aug 2020 12:32:14 -0700 (PDT) Original-Received: from retriever.mtv.corp.google.com ([2620:0:1000:1510:7220:84ff:fe0f:a150]) by smtp.gmail.com with ESMTPSA id i11sm2820927pjg.50.2020.08.26.12.32.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Aug 2020 12:32:12 -0700 (PDT) X-Google-Original-From: "T.V Raman" Original-Received: by retriever.mtv.corp.google.com (Postfix, from userid 13930) id 0E94318003BC; Wed, 26 Aug 2020 12:32:12 -0700 (PDT) In-Reply-To: X-Mailer: VM 8.1.1 under 28.0.50 (x86_64-pc-linux-gnu) Received-SPF: pass client-ip=2607:f8b0:4864:20::532; envelope-from=raman@google.com; helo=mail-pg1-x532.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -197 X-Spam_score: -19.8 X-Spam_bar: ------------------- X-Spam_report: (-19.8 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, NICE_REPLY_A=-2.239, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:254255 Archived-At: thanks. Emacspeak (https://github.com/tvraman/emacspeak) should prove a good test-bed re advice. Note that with-eval-after-load turns its body into an anonymous lambda --- an din general, those may not be worth native-compiling Andrea Corallo writes: > "T.V Raman" writes: >=20 > > "T.V Raman" writes: > > > > Here is some more info based on a work-around: > > > > Conjecture: native-comp has issues with with-eval-after-load and > > friends: > > > > The following setup produced the afore-mentioned error: > > > > 1. In the emacs startup, load dired-x when dired is loaded: > > (with-eval-after-load "dired" (require 'dired-x)) > > 2. dired-mode-hook contains dired-omit-mode defined in dired-x > > 3. During startup, a dired buffer is opened -- either via psession= , > > desktop or some other means > > > > With the above, you get the error (symbol's function definition= is > > void: dired-omit-mode) > > > > Fix: If in the startup file, you remove the with-eval-after-loa= d and > > simply require dired-x, then it works. > > > > Additional info which lends credence to the conjecture: > > > > Emacspeak loads module-specific code using eval-after-load e.g.= when > > "ido" is loaded, it loads emacspeak-ido after ido is done loadi= ng. In > > native-comp emacs, I find that (featurep 'emacspeak-ido) is nil= after > > ido is loaded. > > > > I suspect use-package may also be affected in a similar way. >=20 > Hi Raman >=20 > thanks for having a look. >=20 > This issue sounds strange but before looking into it I'd like to rew= ork > the advicing primitive mechanism for the native code. >=20 > This is a source of incompatibility that may cause a number of the s= mall > strange behaviours we still see today. As a matter of fact today an= y > primitive that gets advised if is not listed in > `comp-never-optimize-functions' will misbehave with respect to the > vanilla implementation. >=20 > This should be the last non small area that need intervention and I'= ll > be on this very soon. >=20 > Andrea >=20 > --=20 > akrl@sdf.org --=20 =E2=99=89Id: kg:/m/0285kf1 =F0=9F=A6=AE=E2=99=89 -- ♉Id: kg:/m/0285kf1 🦮♉