From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#56746: 29.0.50; Probable bug with native compilation Date: Tue, 26 Jul 2022 05:30:46 +0300 Message-ID: <83czdsehbd.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28934"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 56746@debbugs.gnu.org To: Kenneth Stuart , Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 26 04:31:22 2022 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 1oGALy-0007Mz-6c for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 26 Jul 2022 04:31:22 +0200 Original-Received: from localhost ([::1]:57556 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oGALw-00040Q-P4 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 Jul 2022 22:31:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32870) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGALf-00040F-85 for bug-gnu-emacs@gnu.org; Mon, 25 Jul 2022 22:31:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33896) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oGALe-0007yd-K3 for bug-gnu-emacs@gnu.org; Mon, 25 Jul 2022 22:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oGALe-0006cW-GT for bug-gnu-emacs@gnu.org; Mon, 25 Jul 2022 22:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 Jul 2022 02:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56746 X-GNU-PR-Package: emacs Original-Received: via spool by 56746-submit@debbugs.gnu.org id=B56746.165880265225429 (code B ref 56746); Tue, 26 Jul 2022 02:31:02 +0000 Original-Received: (at 56746) by debbugs.gnu.org; 26 Jul 2022 02:30:52 +0000 Original-Received: from localhost ([127.0.0.1]:51878 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGALT-0006c4-Ps for submit@debbugs.gnu.org; Mon, 25 Jul 2022 22:30:52 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:48162) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGALR-0006bq-QH for 56746@debbugs.gnu.org; Mon, 25 Jul 2022 22:30:51 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58962) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGALL-0007uH-Ha; Mon, 25 Jul 2022 22:30:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=2O+cRIBYRaYCat+hJGBFHpUg3zHs//6AUFd+SYvHztw=; b=Iq7FKSJkZvLC vc88CnzY5qzXSN24M/J5filvTuNcXzK0O3tUGiKYpeLGf9Ykk7a6m6OScoK2Zar3L9FEsUzlbDt32 F3FPf0vltnfHRwjjnLSfky7n5lzGacqqyK0i0D7NykK+mfx2vglE3M7W0FVHfc2TS9J+Pgb2Dxy72 QfZHlXZkF4gm2drtNh+uYKVii+VT31umsHCQmRzC0iuMnsBXca6c30kSAcwloqVXhdC3Tkzs0Fn9v VsA9J31TKSk57JKITwbf7Td/U6epzSrp++WB3AXAslRxuX4RMDl5inp1C8eFYMbbLcMUObgrpOKAS UZJv8SIhKsSxQG9dD9+fSQ==; Original-Received: from [87.69.77.57] (port=4774 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGALL-0006Na-1P; Mon, 25 Jul 2022 22:30:43 -0400 In-Reply-To: (message from Kenneth Stuart on Sun, 24 Jul 2022 15:16:42 +0100) 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:237916 Archived-At: > From: Kenneth Stuart > Date: Sun, 24 Jul 2022 15:16:42 +0100 > > Note that I'm not using 'emacs -Q' as a later version of Org is > required, however the issue strongly appears to be with emacs native > compilation as it does not occur from a build without native > compilation. > > org-mode commit: 127e7fee4959ceb33dba2e442b72189f3c25eaa1 > > Steps to reproduce: > > 1. Create an org-mode buffer and insert a clocktable dynamic block with a > `tstart` option. > > #+BEGIN: clocktable :scope file :maxlevel 2 :tstart "2020-01-01" > #+END: > > 2. Evaluate the clocktable (C-c C-c on the #+BEGIN line) > > Result: `Invalid function: org-encode-time` > Expected: No error, clocktable updated successfully > > Notes: > > References: > https://mail.gnu.org/archive/html/emacs-orgmode/2022-07/msg00738.html > https://mail.gnu.org/archive/html/emacs-orgmode/2022-07/msg00696.html > > In early April Org introduced a new macro `org-encode-time` which is > used in the `let` special form of function `org-matcher-time` > > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/tree/lisp/org-macs.el#n1395 > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/tree/lisp/org-macs.el#n1463 > > Function `org-matcher-time` is used by the clocktable dynamic block > options, for example adding a `tstart` option and evaluation the > clocktable emits the error "Invalid function: org-encode-time". > > If then going to the source for `org-matcher-time` and evaluating the > defun, the clocktable can then be evaluated without error. > > As previously stated this issue does not occur when not using native > compilation. Andrea, could you please look into this bug report? It sounds like 'defmacro' in a conditional code is mis-compiled somehow?