From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Kenneth Stuart Newsgroups: gmane.emacs.bugs Subject: bug#56746: 29.0.50; Probable bug with native compilation Date: Tue, 26 Jul 2022 20:39:47 +0100 Message-ID: References: <83czdsehbd.fsf@gnu.org> 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="35370"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.8.7; emacs 28.1 Cc: 56746@debbugs.gnu.org, Eli Zaretskii To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 26 23:12:16 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 1oGRqg-0008wB-Fc for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 26 Jul 2022 23:12:14 +0200 Original-Received: from localhost ([::1]:47754 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oGRqe-0004kV-Vv for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 26 Jul 2022 17:12:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40874) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGRqU-0004kH-FH for bug-gnu-emacs@gnu.org; Tue, 26 Jul 2022 17:12:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36526) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oGRqU-0002vz-65 for bug-gnu-emacs@gnu.org; Tue, 26 Jul 2022 17:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oGRqU-0007pq-0h for bug-gnu-emacs@gnu.org; Tue, 26 Jul 2022 17:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kenneth Stuart Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 Jul 2022 21:12: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.165886986230016 (code B ref 56746); Tue, 26 Jul 2022 21:12:01 +0000 Original-Received: (at 56746) by debbugs.gnu.org; 26 Jul 2022 21:11:02 +0000 Original-Received: from localhost ([127.0.0.1]:54508 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGRpV-0007nm-1P for submit@debbugs.gnu.org; Tue, 26 Jul 2022 17:11:02 -0400 Original-Received: from mail-am6eur05olkn2050.outbound.protection.outlook.com ([40.92.91.50]:12385 helo=EUR05-AM6-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oGQRQ-00050A-14 for 56746@debbugs.gnu.org; Tue, 26 Jul 2022 15:42:05 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RHrk3kj8IBMk0sKV2/5g56PeeENGDjVSsJ/Ei52ReWl6kcAARwz+xnm73Y2aJpeuhqtkUfpQRmLGnrXZ6eDxMSU//Ms2GQsCjMEgsVJyRGFFEGZONpfWLvu0uFzgvSLH79PiSv3oFRfHIyOfRAlwjs/NbGDM5sZLFKJ4aAGLjLHTo3Z7fl5M5GiaUKeKDbFCC1XMdGqN1ro5aX7gyQOjUOdTS4k4oadU/BgdggCzwD/ummrFq7/qGjxj4dNZ1T+T+w23KVn1hujhTPMJn+DEsyynPHuAhtdnnviFcUzb8i7ZZPzFhCgHwpXrECPVaKK7pU70Cp+Irtr0CvoaAxJF2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=iZqI/rvW3APlEkmn1F+pTA2Fmw5z1m7XCKBckRsRo8A=; b=WDyTgtgcBXHLDp0VFsuhM7Tj5ZTm37o1mMlVRFKNma7UjPlmappUZWG6i6yxIGqw5L0/Do8nzJkK/vvyW0esnGdLc6Ew4Swvcycb6gxRz/j6XVEK9qewUgH1V0v+yaa3zZI09Q1ywQqfDn+GoHME73Psvu3P6Q4RYAtJ3nWg2h8FWQpclcBQHKF98NURI+Vv2nSbB5QGbQ7pMOsAeYR2GENoOImmKGBnzDSAx6UdRqHhn81lW2fHuc8yoFAzbZDdMvhAGOnhUz7LL/1fga02+L2PW3Ucia1TSzrWDile4VtcdR+Dpl0NUBp7Y+Qeo2dJFjLUN5r09XgWpjkFtVYg4g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Original-Received: from PAXP251MB0470.EURP251.PROD.OUTLOOK.COM (2603:10a6:102:283::11) by AS8P251MB0935.EURP251.PROD.OUTLOOK.COM (2603:10a6:20b:570::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5458.23; Tue, 26 Jul 2022 19:41:57 +0000 Original-Received: from PAXP251MB0470.EURP251.PROD.OUTLOOK.COM ([fe80::f881:eab3:bd1d:bcf5]) by PAXP251MB0470.EURP251.PROD.OUTLOOK.COM ([fe80::f881:eab3:bd1d:bcf5%9]) with mapi id 15.20.5458.024; Tue, 26 Jul 2022 19:41:57 +0000 In-reply-to: X-TMN: [i+NSDrd1Kz3mgIbZ/xg5tAyqhKyByeLn] X-ClientProxiedBy: LO2P265CA0490.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:13a::15) To PAXP251MB0470.EURP251.PROD.OUTLOOK.COM (2603:10a6:102:283::11) X-Microsoft-Original-Message-ID: <87o7xbzmnw.fsf@hotmail.co.uk> X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fa352166-7bc5-438c-bd63-08da6f3ee639 X-MS-TrafficTypeDiagnostic: AS8P251MB0935:EE_ X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aiG8JuKmke4kAnEiFjrywzslnXMYDoU7WS+0CLajnpC8xs3MmxFfOighLHjUnLYb/xHg7ZIHLJ+0fHg/Dcq6BXJzVmC3IvpwchCboqY3K/PHJkcWtpNDub+RvrERXHKiZqnLxJ31ZCz/2/O/DDzGYwypWagjab4c0RyoxBpk0sgA8osz3z+UfdAzJCl5vUolQpJ2XG6M3NDwQbxO1xKce4bPN7Ms1/L8J6HR7S8xAN0KaUn2z82j9hg9Pm64yb6vyjSfm21t2BTZPjoQT9nhgBVs/jbviBZZjvlVqocIEiPremHQ6mLMM51imeBA08Xk1AantkUpo278325nDYF7OxMz6n7C359OAghDQDN+q5pD0Rx5qY6qDbQUSAXtlt7h+VqvPVTmhh8uB5I/7pynJ+LFOiS+mgJ2ZESDZwEQSuksqn/YI5j+ZUr6Qce7xqZT17sZvR+lS8C5F23DQFW8ljElD/+y4KSMquva9UuEPN28IyxZI8ulvHcllUgnCnWHSciSj2bL3Icvn3QDpPLc3zMLlClfObhDn/k7g8MAQkSwZxIDyQOsFBvf2jNJAPlSHQUuY4xs8mJ+gdeVvwl7zN6LAW3AYoRjRiqw+oj2sqLu+Ubt5bdtrcxNo3f0OGTcku64Ex1/ie1c0cfKo8eN9oA1NOV/UXGPmYT3GHq4ciAl+PulU3yMo698Z59U/27O X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: WfBHS7LXBbuxuPPFGs8qClS0AQmTocaUq9Sbr5LX5DVNz/js7t7Pk3CfRQ9y6CWjaFuv778TQRuwbmHCKGz/LZpvMefDAnl1lTlydwuc1wF1XXTwkUCyc1toyp1IS2ZPZd4/+BZA9lzjhD0GE+yJK0bTFQ9LtaVoNYsiL2KB3aRXY7262JxRhcbp/d5hvcINoiqjpGh54MEW3RqR/XV6jy1G4t+dogMVWczXePNAZc73g80hS6o56KJA12i9EJ3r2CkOuRBG3/h/hWMG3SG4j07tDCK2gxFt12Q0a0/1qhJSdLYaBUTLviq7jQzEkXNfcjSGrjrKnpp81IPUXNCGdyztz/d3xrvBNjmtYEEMi1mPsTqWAQ0n5urLu/GW6dIile6MO1oV8JTO6vFn3nMF3Xn0DRU1x+7UBfNI1AXzdTlANGOSvSvnVZU+7dLEkaj7jyWS/zRmeCVVrxrSZL75deAXXrJ3aqwILOaU5LG57SZ+ZhkpZgYcfpR11PNXhjgwWTO6eTN33SWSGCTnpawkVa2SF+h5ICZewvqrjGUwsdN2U9AAAlGYK06VNVxOnZQiEKv2FsZdC4zvz+qPDHFyKIJ9CNmk/ZQST9dYd4Iv9BJR9wIRs+H2ooGXrQRrHsx6zydQisShbA/zMApVTQH3LHf8PEfv+NlKTGWHgAWdv5bLAm9n+2orfs7Ouke/dW/oS6mSa0Tu3L86Jgi9W4p9igqs2HrZCEvVQlj+qSnjfUb3lRzYXap0wIfBrJ uJLkXhMD73Ixk4awaFeatzelez0yheQ32wpVLAkjLvsbTIzVVS+Li+wCLO634sNaahNmEAyYW6QO3yK/VQkhMTwLlqy1OG0L0V X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-00b75.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: fa352166-7bc5-438c-bd63-08da6f3ee639 X-MS-Exchange-CrossTenant-AuthSource: PAXP251MB0470.EURP251.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jul 2022 19:41:57.0201 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8P251MB0935 X-Mailman-Approved-At: Tue, 26 Jul 2022 17:11:00 -0400 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:237990 Archived-At: Andrea Corallo writes: > Eli Zaretskii writes: > >>> From: Kenneth Stuart >>> Date: Sun, 24 Jul 2022 15:16:42 +0100 >>>=20 >>> 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. >>>=20 >>> org-mode commit: 127e7fee4959ceb33dba2e442b72189f3c25eaa1 >>>=20 >>> Steps to reproduce: >>>=20 >>> 1. Create an org-mode buffer and insert a clocktable dynamic block with= a >>> `tstart` option. >>>=20 >>> #+BEGIN: clocktable :scope file :maxlevel 2 :tstart "2020-01-01" >>> #+END: >>>=20 >>> 2. Evaluate the clocktable (C-c C-c on the #+BEGIN line) >>>=20 >>> Result: `Invalid function: org-encode-time` >>> Expected: No error, clocktable updated successfully >>>=20 >>> Notes: >>>=20 >>> 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 >>>=20 >>> In early April Org introduced a new macro `org-encode-time` which is >>> used in the `let` special form of function `org-matcher-time` >>>=20 >>> 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 >>>=20 >>> 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". >>>=20 >>> If then going to the source for `org-matcher-time` and evaluating the >>> defun, the clocktable can then be evaluated without error. >>>=20 >>> 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 During async compile there are a couple of warnings emitted: In end of data: org-macs.el:1463:29: Warning: the function =E2=80=98org-encode-time=E2=80= =99 is not known to be defined. org-macs.el:1361:10: Warning: the function =E2=80=98org-time-string-to-seco= nds=E2=80=99 is not known to be defined. However org-encode-time is earlier defined in org-macs.el (within 'if' stat= ement). Also interesting, if I touch org-macs.el and synchronously compile, I see n= o issue: Updating dynamic block =E2=80=98clocktable=E2=80=99 at line 1... org-matcher-time: Invalid function: org-encode-time Save buffer org-macs.el first? (y or n) y Saving file /home/kstuart/emacs-next/straight/repos/org/lisp/org-macs.el... Wrote /home/kstuart/emacs-next/straight/repos/org/lisp/org-macs.el Loading /home/kstuart/emacs-next/eln-cache/29.0.50-7f035195/org-macs-a38ffe= 3b-5e6a4cdf.eln (native compiled elisp)...done Updating dynamic block =E2=80=98clocktable=E2=80=99 at line 1...done =F0=9F=AB=A4