From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#56746: 29.0.50; Probable bug with native compilation Date: Tue, 26 Jul 2022 16:48:53 +0000 Message-ID: References: <83czdsehbd.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8275"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 56746@debbugs.gnu.org, Kenneth Stuart To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 26 19:25:53 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 1oGOJd-000224-5H for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 26 Jul 2022 19:25:53 +0200 Original-Received: from localhost ([::1]:35254 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oGOJc-0004Bc-7N for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 26 Jul 2022 13:25:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44146) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGNjy-0007TA-Cn for bug-gnu-emacs@gnu.org; Tue, 26 Jul 2022 12:49:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36308) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oGNjy-0003MM-1H for bug-gnu-emacs@gnu.org; Tue, 26 Jul 2022 12:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oGNjx-0007wC-Ql for bug-gnu-emacs@gnu.org; Tue, 26 Jul 2022 12:49:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 Jul 2022 16:49:01 +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.165885414030504 (code B ref 56746); Tue, 26 Jul 2022 16:49:01 +0000 Original-Received: (at 56746) by debbugs.gnu.org; 26 Jul 2022 16:49:00 +0000 Original-Received: from localhost ([127.0.0.1]:54290 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGNjv-0007vw-Od for submit@debbugs.gnu.org; Tue, 26 Jul 2022 12:49:00 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]:57099) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGNjq-0007vh-Jk for 56746@debbugs.gnu.org; Tue, 26 Jul 2022 12:48:58 -0400 Original-Received: from ma.sdf.org (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 26QGmquA024453 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Tue, 26 Jul 2022 16:48:53 GMT In-Reply-To: <83czdsehbd.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 26 Jul 2022 05:30:46 +0300") 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:237979 Archived-At: Eli Zaretskii writes: >> 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? I'm currently on holiday so I've only time to check the mails and reply when necessary. I won't have time to look into this before next week *but*... if it's a macro issue it might be some missing require in the org code, we have seen this kind of issue is the most common. Is this org async compiled? If so Kenneth have we verifed the emitted warnings? Thanks! Andrea