From unknown Sun Jun 15 08:56:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#68851: 30.0.50; Native comp: Optimization failure for org-element-property-raw: Handler: org-element-property-raw--inliner Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: monnier@iro.umontreal.ca, bug-gnu-emacs@gnu.org Resent-Date: Wed, 31 Jan 2024 13:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 68851 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 68851@debbugs.gnu.org Cc: Stefan Monnier X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Xcc: Stefan Monnier Received: via spool by submit@debbugs.gnu.org id=B.17067088608327 (code B ref -1); Wed, 31 Jan 2024 13:48:02 +0000 Received: (at submit) by debbugs.gnu.org; 31 Jan 2024 13:47:40 +0000 Received: from localhost ([127.0.0.1]:37728 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVAwF-0002AD-HR for submit@debbugs.gnu.org; Wed, 31 Jan 2024 08:47:40 -0500 Received: from lists.gnu.org ([2001:470:142::17]:36374) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVAwC-00029x-UU for submit@debbugs.gnu.org; Wed, 31 Jan 2024 08:47:37 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rVAvw-0003LF-Cy for bug-gnu-emacs@gnu.org; Wed, 31 Jan 2024 08:47:20 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rVAvt-0004kG-8w for bug-gnu-emacs@gnu.org; Wed, 31 Jan 2024 08:47:19 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 0C6E0240101 for ; Wed, 31 Jan 2024 14:47:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1706708833; bh=FkTvoPwmF9RepL/YbKGyui1IZcInepLQVWzwtt0EJ8M=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=bWFsUMwDEAOephECKNYPQ2Aqln1oX4MfDJomEYIpgHKNR34nxWCBtfyt8XbjApT47 2Y1PpA1uWyd2srD2MfBO5UKg2OVjqt6+E8PA6ouufTd7U85z8S6XS7W26vYVn5NTQe bT+IhyuYGMwqVW+P1v8OB7ort503znNElgOF4lJxGwPpeuuzBozDrFW+l8q/xQpW0I xQy4NIiZTh6IZOqeyatqpAhEvD429kAT8FOhsW0yB7qeBJznhcgZmfTMkve5sptNxH 1ZfqEzug6OnsKV8b0dgRUCXD0iBhLbnh5nILguItTH5n/wAbiY4C9MPh3jLZNWKEgt UL39VSChGqpBA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TQ3Hh0trKz6txd for ; Wed, 31 Jan 2024 14:47:11 +0100 (CET) From: Ihor Radchenko Date: Wed, 31 Jan 2024 13:50:42 +0000 Message-ID: <87zfwl8vd9.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hello, I just stumbled upon strange native compiler warning after defining the following inliner: (define-inline org-element--property-idx (property) "Return standard property index or nil." (declare (pure t)) (inline-letevals (property) (plist-get org-element--standard-properties-idxs (inline-const-val property)))) =E2=9B=94 Warning (comp): Warning: Optimization failure for org-element-pro= perty-raw: Handler: org-element-property-raw--inliner This is on the latest Org mode main branch. This looks like a bug unless I misunderstand something about inlined functi= ons. =E2=9B=94 Warning (comp): Warning: Optimization failure for org-element-pro= perty-raw: Handler: org-element-property-raw--inliner =E2=9B=94 Warning (comp): Warning: Optimization failure for org-element-put= -property: Handler: org-element-put-property--inliner =E2=9B=94 Warning (comp): Warning: Optimization failure for org-element-pro= perty-raw: Handler: org-element-property-raw--inliner =E2=9B=94 Warning (comp): Warning: Optimization failure for org-element-put= -property: Handler: org-element-put-property--inliner =E2=9B=94 Warning (comp): Warning: Optimization failure for org-element-put= -property: Handler: org-element-put-property--inliner =E2=9B=94 Warning (comp): Warning: Optimization failure for org-element-pro= perty: Handler: org-element-property--inliner =E2=9B=94 Warning (comp): Warning: Optimization failure for org-element-put= -property: Handler: org-element-put-property--inliner =E2=9B=94 Warning (comp): Warning: Optimization failure for org-element-put= -property: Handler: org-element-put-property--inliner =E2=9B=94 Warning (comp): Warning: Optimization failure for org-element-pro= perty: Handler: org-element-property--inliner =E2=9B=94 Warning (comp): Warning: Optimization failure for org-element-put= -property: Handler: org-element-put-property--inliner =E2=9B=94 Warning (comp): Warning: Optimization failure for org-element-put= -property: Handler: org-element-put-property--inliner =E2=9B=94 Warning (comp): Warning: Optimization failure for org-element-put= -property: Handler: org-element-put-property--inliner =E2=9B=94 Warning (comp): Warning: Optimization failure for org-element-put= -property: Handler: org-element-put-property--inliner =E2=9B=94 Warning (comp): Warning: Optimization failure for org-element-put= -property: Handler: org-element-put-property--inliner =E2=9B=94 Warning (comp): Warning: Optimization failure for org-element-put= -property: Handler: org-element-put-property--inliner In GNU Emacs 30.0.50 (build 4, x86_64-pc-linux-gnu, GTK+ Version 3.24.39, cairo version 1.18.0) of 2024-01-30 built on localhost Repository revision: 9de29fb5b0396cb3929bd5668604fda076ca5ec4 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101011 System Description: Gentoo Linux Configured using: 'configure JAVAC=3D/etc/java-config-2/current-system-vm/bin/javac' --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at From unknown Sun Jun 15 08:56:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#68851: 30.0.50; Native comp: Optimization failure for org-element-property-raw: Handler: org-element-property-raw--inliner Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 31 Jan 2024 14:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68851 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Ihor Radchenko , Andrea Corallo Cc: 68851@debbugs.gnu.org, monnier@iro.umontreal.ca Received: via spool by 68851-submit@debbugs.gnu.org id=B68851.170671083211866 (code B ref 68851); Wed, 31 Jan 2024 14:21:02 +0000 Received: (at 68851) by debbugs.gnu.org; 31 Jan 2024 14:20:32 +0000 Received: from localhost ([127.0.0.1]:37757 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVBS3-00035I-Fz for submit@debbugs.gnu.org; Wed, 31 Jan 2024 09:20:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:37760) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVBS1-000355-95 for 68851@debbugs.gnu.org; Wed, 31 Jan 2024 09:20:30 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rVBRl-0003RQ-KX; Wed, 31 Jan 2024 09:20:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=xqRj4Hs4mJP8T5qfh1LLxwd0QvKn2Uqzj3LGMjZnrNg=; b=GB/d//YyQ97/n4MyeML9 gtvxm/9nfGUHeBspTByFnVlYGNFLkZ0+UE4jEw6BOCYccwt4e6ZW/jaBE+Hb2b8+zxlIme4SOWhQJ 190qDVU3o8SvU4jblsagOjARVF+p97/dg7cTdMHbtFwOXJNTNPuLgPCNqSE6smj6NggpaaDNuHJFk m81wY20rj7FH/WajYIo5xRoEfOzp1Il3D0yzqtD83IloL5KZ+7Z7+TQ4+DBHeHmEBRCgDaaMzMv67 IA8CYZHrmEo1LuWWBu/mDIreFxX3LE9hZdhnhDUJN589zTfcZLUT2qcB48IFOLvIZwY6xl+riMtxW Wos4rcwCh8zCCg==; Date: Wed, 31 Jan 2024 16:20:09 +0200 Message-Id: <86zfwl1t5y.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87zfwl8vd9.fsf@localhost> (message from Ihor Radchenko on Wed, 31 Jan 2024 13:50:42 +0000) References: <87zfwl8vd9.fsf@localhost> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Cc: Stefan Monnier > From: Ihor Radchenko > Date: Wed, 31 Jan 2024 13:50:42 +0000 > > I just stumbled upon strange native compiler warning after defining the > following inliner: > > (define-inline org-element--property-idx (property) > "Return standard property index or nil." > (declare (pure t)) > (inline-letevals (property) > (plist-get > org-element--standard-properties-idxs > (inline-const-val property)))) > > ⛔ Warning (comp): Warning: Optimization failure for org-element-property-raw: Handler: org-element-property-raw--inliner > > This is on the latest Org mode main branch. > > This looks like a bug unless I misunderstand something about inlined functions. Andrea, can you please help understand this warning? > > ⛔ Warning (comp): Warning: Optimization failure for org-element-property-raw: Handler: org-element-property-raw--inliner > ⛔ Warning (comp): Warning: Optimization failure for org-element-put-property: Handler: org-element-put-property--inliner > ⛔ Warning (comp): Warning: Optimization failure for org-element-property-raw: Handler: org-element-property-raw--inliner > ⛔ Warning (comp): Warning: Optimization failure for org-element-put-property: Handler: org-element-put-property--inliner > ⛔ Warning (comp): Warning: Optimization failure for org-element-put-property: Handler: org-element-put-property--inliner > ⛔ Warning (comp): Warning: Optimization failure for org-element-property: Handler: org-element-property--inliner > ⛔ Warning (comp): Warning: Optimization failure for org-element-put-property: Handler: org-element-put-property--inliner > ⛔ Warning (comp): Warning: Optimization failure for org-element-put-property: Handler: org-element-put-property--inliner > ⛔ Warning (comp): Warning: Optimization failure for org-element-property: Handler: org-element-property--inliner > ⛔ Warning (comp): Warning: Optimization failure for org-element-put-property: Handler: org-element-put-property--inliner > ⛔ Warning (comp): Warning: Optimization failure for org-element-put-property: Handler: org-element-put-property--inliner > ⛔ Warning (comp): Warning: Optimization failure for org-element-put-property: Handler: org-element-put-property--inliner > ⛔ Warning (comp): Warning: Optimization failure for org-element-put-property: Handler: org-element-put-property--inliner > ⛔ Warning (comp): Warning: Optimization failure for org-element-put-property: Handler: org-element-put-property--inliner > ⛔ Warning (comp): Warning: Optimization failure for org-element-put-property: Handler: org-element-put-property--inliner > > > In GNU Emacs 30.0.50 (build 4, x86_64-pc-linux-gnu, GTK+ Version > 3.24.39, cairo version 1.18.0) of 2024-01-30 built on localhost > Repository revision: 9de29fb5b0396cb3929bd5668604fda076ca5ec4 > Repository branch: master > Windowing system distributor 'The X.Org Foundation', version 11.0.12101011 > System Description: Gentoo Linux > > Configured using: > 'configure JAVAC=/etc/java-config-2/current-system-vm/bin/javac' > > -- > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at . > Support Org development at , > or support my work at > > > > From unknown Sun Jun 15 08:56:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#68851: 30.0.50; Native comp: Optimization failure for org-element-property-raw: Handler: org-element-property-raw--inliner Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 31 Jan 2024 19:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68851 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Ihor Radchenko Cc: 68851@debbugs.gnu.org Received: via spool by 68851-submit@debbugs.gnu.org id=B68851.17067284892811 (code B ref 68851); Wed, 31 Jan 2024 19:15:02 +0000 Received: (at 68851) by debbugs.gnu.org; 31 Jan 2024 19:14:49 +0000 Received: from localhost ([127.0.0.1]:39046 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVG2r-0000jH-1Y for submit@debbugs.gnu.org; Wed, 31 Jan 2024 14:14:49 -0500 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:43277) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVG2o-0000j2-J9 for 68851@debbugs.gnu.org; Wed, 31 Jan 2024 14:14:47 -0500 Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id A965B441C3A; Wed, 31 Jan 2024 14:14:30 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1706728469; bh=Zbw6qUotf540x7GfSvMacdxgKccGEBqVaAQUzhBiQ5M=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=oPvWFsnecz5sjWhY57ATIbNmeewShUkQG7111QSlwiL+ebte7eY7oy3dsmsryyI4g Dl7r1wad72OPjhzBHD1hgV4ik6gF1cS3gvwOYwRX6PUDmQo4Ce5exSGBdri5mgE7d+ Iy4sjAKyiftNN/oeH+dpFebOJmUpLHnMsi9O/NGvDcrGlApkibeNmo33BP/rDZNi4n kyITQBH+xFEQWsujj1vZg8SJtApoKt86NEcyNAtAgyZW4FnDXmG7ZDVa1lQjl8aYRl 5NBSpUkdcuwbdV41tAMgnivN411TD8h+vwLDOBg+BKVIHN05gbbULQ5w+BnN7IYItD b38YdTstzxI+g== Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 5B6D3441989; Wed, 31 Jan 2024 14:14:29 -0500 (EST) Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 4DD081203B3; Wed, 31 Jan 2024 14:14:29 -0500 (EST) From: Stefan Monnier In-Reply-To: <87zfwl8vd9.fsf@localhost> (Ihor Radchenko's message of "Wed, 31 Jan 2024 13:50:42 +0000") Message-ID: References: <87zfwl8vd9.fsf@localhost> Date: Wed, 31 Jan 2024 14:13:12 -0500 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL 0.132 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain T_SCC_BODY_TEXT_LINE -0.01 - X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > =E2=9B=94 Warning (comp): Warning: Optimization failure for org-element-p= roperty-raw: Handler: org-element-property-raw--inliner This looks like the warning emitted by `macroexp--compiler-macro` when a compiler macro (here, generated by `define-inline`) signals an error. This said, the warning should include (on the next line) the actual error encountered. Not sure why you don't seem to have that. In any case the origin might be a bug in your code or in `inline.el`. Is `org-element--standard-properties-idxs` defined at the time of macro-expansion? If not, that would explain the error because the macro expansion will try to execute: (plist-get org-element--standard-properties-idxs (inline-const-val property)) and that will start by getting the value of `org-element--standard-properties-idxs`. Stefan From unknown Sun Jun 15 08:56:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#68851: 30.0.50; Native comp: Optimization failure for org-element-property-raw: Handler: org-element-property-raw--inliner Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 31 Jan 2024 19:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68851 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: 68851@debbugs.gnu.org Received: via spool by 68851-submit@debbugs.gnu.org id=B68851.17067302895816 (code B ref 68851); Wed, 31 Jan 2024 19:45:01 +0000 Received: (at 68851) by debbugs.gnu.org; 31 Jan 2024 19:44:49 +0000 Received: from localhost ([127.0.0.1]:39086 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVGVt-0001Vk-DH for submit@debbugs.gnu.org; Wed, 31 Jan 2024 14:44:49 -0500 Received: from mout02.posteo.de ([185.67.36.66]:36339) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVGVp-0001VU-NF for 68851@debbugs.gnu.org; Wed, 31 Jan 2024 14:44:47 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id D011A240104 for <68851@debbugs.gnu.org>; Wed, 31 Jan 2024 20:44:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1706730269; bh=7Pqb35XdPxVjowT/L6sCg2AznbPfMxVao+/aIe8Cb0c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=hxX7APLrOllcSj92cscfld+W7KD3cCsAhduIQOv+AsEYvm67xXWlhg0zJ5KqEuRj2 8DlxjhIbKmd5BQ75utVXEAb0jaRvIUFtqEv4/grTIV6KwcF+OeVp5kluwN1tf/jfDH Ax/2SDmMfQ2sPv5wZxV8lqcrGU1PDdLsxudh0jyuEqXhYXGTL0iZqNUSjn0C7rr2Bp FpUhtchgXxrqydU6JSyjNTEd21JPzU0MB44BpHDQO74dvNEQj0jO6XUDLCb/nbsLp3 BOzfBOhqDy1W7SlBRY5eXERZs9YxOI/fvtuz+yEqzBv0h8CeUqSnUleAbXyC4akBhK OFKvy34jSom5A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TQCCw6Hvqz9rxN; Wed, 31 Jan 2024 20:44:28 +0100 (CET) From: Ihor Radchenko In-Reply-To: References: <87zfwl8vd9.fsf@localhost> Date: Wed, 31 Jan 2024 19:47:54 +0000 Message-ID: <87zfwlmgid.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Stefan Monnier writes: >> =E2=9B=94 Warning (comp): Warning: Optimization failure for org-element-= property-raw: Handler: org-element-property-raw--inliner > > This looks like the warning emitted by `macroexp--compiler-macro` when > a compiler macro (here, generated by `define-inline`) signals an error. > > This said, the warning should include (on the next line) the actual > error encountered. Not sure why you don't seem to have that. I also thought so, but the problem only appears during native compilation. Normal compilation works just fine. > In any case the origin might be a bug in your code or in `inline.el`. > > Is `org-element--standard-properties-idxs` defined at the time of > macro-expansion? Yup: (eval-and-compile ; make available during inline expansion (defconst org-element--standard-properties '( :begin :post-affiliated :contents-begin :contents-end :end :post-bla= nk :secondary :mode :granularity :cached :org-element--cache-sync-key :robust-begin :robust-end :true-level :buffer :deferred :structure :parent) "Standard properties stored in every syntax node structure. These properties are stored in an array pre-allocated every time a new object is created. Two exceptions are `anonymous' and `plain-text' node types.") (defconst org-element--standard-properties-idxs (let (plist) (seq-do-indexed (lambda (property idx) (setq plist (plist-put plist property idx))) org-element--standard-properties) plist) "Property list holding standard indexes for `org-element--standard-prop= erties'.")) --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at From unknown Sun Jun 15 08:56:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#68851: 30.0.50; Native comp: Optimization failure for org-element-property-raw: Handler: org-element-property-raw--inliner Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Feb 2024 09:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68851 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: Ihor Radchenko , 68851@debbugs.gnu.org, monnier@iro.umontreal.ca Received: via spool by 68851-submit@debbugs.gnu.org id=B68851.170686443716882 (code B ref 68851); Fri, 02 Feb 2024 09:01:02 +0000 Received: (at 68851) by debbugs.gnu.org; 2 Feb 2024 09:00:37 +0000 Received: from localhost ([127.0.0.1]:43727 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVpPY-0004OD-J2 for submit@debbugs.gnu.org; Fri, 02 Feb 2024 04:00:37 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36850) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVpPT-0004Nv-Tp for 68851@debbugs.gnu.org; Fri, 02 Feb 2024 04:00:35 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rVpPC-0000au-6t; Fri, 02 Feb 2024 04:00:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=YCwXmqO+D2Ozeyfxgjo+TiKOxS60YUJLVyu7BHG9tS0=; b=gIiNHtdo342exWTzDq68 TVHFUWKZZaRIE0nm6v0Jw6UFpy2iA8VwDAJQ1gXb4CkaNU3Ze0khBj2j9bYRilqYHj/yeOsEx6rmI FC5vMeqZbVv2Lg+Zn3tu7w4FkILNq51Aa+vzcEbkQiMFZRGMDIzp/4BeJ2sv86ltXQwv0B508grLG vxQGYuCqzq6LTYRKEPq/U59Ynl6bQ36QssMWdvA7esvV3yWX9EHLkWktCIEO36MZdwEqAIiG+YaP9 9d0HWPx7kpQKVLAPfISpA2Bi9e1ABPIaMnHkbxFYz/49daR9PyNJbv3pg1WDWuuUalh84VFGPQELP a+kWTY5drwvYPg==; Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1rVpPB-0003Ru-MS; Fri, 02 Feb 2024 04:00:13 -0500 From: Andrea Corallo In-Reply-To: <86zfwl1t5y.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 31 Jan 2024 16:20:09 +0200") References: <87zfwl8vd9.fsf@localhost> <86zfwl1t5y.fsf@gnu.org> Date: Fri, 02 Feb 2024 04:00:13 -0500 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Eli Zaretskii writes: >> Cc: Stefan Monnier >> From: Ihor Radchenko >> Date: Wed, 31 Jan 2024 13:50:42 +0000 >>=20 >> I just stumbled upon strange native compiler warning after defining the >> following inliner: >>=20 >> (define-inline org-element--property-idx (property) >> "Return standard property index or nil." >> (declare (pure t)) >> (inline-letevals (property) >> (plist-get >> org-element--standard-properties-idxs >> (inline-const-val property)))) >>=20 >> =E2=9B=94 Warning (comp): Warning: Optimization failure for org-element-= property-raw: Handler: org-element-property-raw--inliner >>=20 >> This is on the latest Org mode main branch. >>=20 >> This looks like a bug unless I misunderstand something about inlined fun= ctions. > > Andrea, can you please help understand this warning? > >>=20 >> =E2=9B=94 Warning (comp): Warning: Optimization failure for org-element-= property-raw: Handler: org-element-property-raw--inliner >> =E2=9B=94 Warning (comp): Warning: Optimization failure for org-element-= put-property: Handler: org-element-put-property--inliner >> =E2=9B=94 Warning (comp): Warning: Optimization failure for org-element-= property-raw: Handler: org-element-property-raw--inliner >> =E2=9B=94 Warning (comp): Warning: Optimization failure for org-element-= put-property: Handler: org-element-put-property--inliner >> =E2=9B=94 Warning (comp): Warning: Optimization failure for org-element-= put-property: Handler: org-element-put-property--inliner >> =E2=9B=94 Warning (comp): Warning: Optimization failure for org-element-= property: Handler: org-element-property--inliner >> =E2=9B=94 Warning (comp): Warning: Optimization failure for org-element-= put-property: Handler: org-element-put-property--inliner >> =E2=9B=94 Warning (comp): Warning: Optimization failure for org-element-= put-property: Handler: org-element-put-property--inliner >> =E2=9B=94 Warning (comp): Warning: Optimization failure for org-element-= property: Handler: org-element-property--inliner >> =E2=9B=94 Warning (comp): Warning: Optimization failure for org-element-= put-property: Handler: org-element-put-property--inliner >> =E2=9B=94 Warning (comp): Warning: Optimization failure for org-element-= put-property: Handler: org-element-put-property--inliner >> =E2=9B=94 Warning (comp): Warning: Optimization failure for org-element-= put-property: Handler: org-element-put-property--inliner >> =E2=9B=94 Warning (comp): Warning: Optimization failure for org-element-= put-property: Handler: org-element-put-property--inliner >> =E2=9B=94 Warning (comp): Warning: Optimization failure for org-element-= put-property: Handler: org-element-put-property--inliner >> =E2=9B=94 Warning (comp): Warning: Optimization failure for org-element-= put-property: Handler: org-element-put-property--inliner Hi, I can't investigate this directly before next week but I was wondering: Ihor have you tried compiling the compilation unit from command line (using batch-byte-compile or batch-native-compile)? If some dependency is broken this should highlight it. Thanks Andrea From unknown Sun Jun 15 08:56:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#68851: 30.0.50; Native comp: Optimization failure for org-element-property-raw: Handler: org-element-property-raw--inliner Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Feb 2024 13:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68851 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Andrea Corallo Cc: Eli Zaretskii , 68851@debbugs.gnu.org, monnier@iro.umontreal.ca Received: via spool by 68851-submit@debbugs.gnu.org id=B68851.170688073923851 (code B ref 68851); Fri, 02 Feb 2024 13:33:01 +0000 Received: (at 68851) by debbugs.gnu.org; 2 Feb 2024 13:32:19 +0000 Received: from localhost ([127.0.0.1]:43852 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVteV-0006Cd-Cq for submit@debbugs.gnu.org; Fri, 02 Feb 2024 08:32:19 -0500 Received: from mout01.posteo.de ([185.67.36.65]:58577) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rVteR-0006CN-Sf for 68851@debbugs.gnu.org; Fri, 02 Feb 2024 08:32:17 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 8091824002A for <68851@debbugs.gnu.org>; Fri, 2 Feb 2024 14:31:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1706880719; bh=2TWeA9LGs10DDx1fu78vKpHRW7gp1hLDEUT72R/oWM4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=RRmhKQi4ndPXJef4qEc1HvXcZhFwPjTLlk0blHr1scUeovWyuoRHw3NNuTMk/jS8H e4rc2cQEvZvMTZEs7CMxtYRkSEfObNA7gvO29cNSDNv/LkOSsQzm782XWFyrje2WYh RxoRCaFQZRszakq/QPBap6JL0ZvQHrhQfHiQJTobygdNCZIf6L010eDZ2p9Y7dCFJ6 2nFQwjWdoumERbag95W1yFWr4i4ZbF72Fv8bCXh8X1UMms6jS120NQeMQjuq/yb9IJ 8Jx0obSKwGLei8av8sSL4lwdrxqNIhfMfHUcpOd4uzUzKM6yXGBkB7PDc7Lt9sMc7x Lc5IkluZk+K5A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TRGsB36yQz6tm8; Fri, 2 Feb 2024 14:31:58 +0100 (CET) From: Ihor Radchenko In-Reply-To: References: <87zfwl8vd9.fsf@localhost> <86zfwl1t5y.fsf@gnu.org> Date: Fri, 02 Feb 2024 13:35:27 +0000 Message-ID: <87sf2bxa3k.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Andrea Corallo writes: >>> =E2=9B=94 Warning (comp): Warning: Optimization failure for org-element= -property-raw: Handler: org-element-property-raw--inliner >>>=20 >>> This is on the latest Org mode main branch. >>>=20 >>> This looks like a bug unless I misunderstand something about inlined fu= nctions. > ... > > Ihor have you tried compiling the compilation unit from command line > (using batch-byte-compile or batch-native-compile)? If some dependency > is broken this should highlight it. batch-byte-compile does not emit any warnings. batch-native-compile emits the same warning: Compiling single /home/yantar92/Git/org-mode/lisp/org-element-ast.el... Warning: Optimization failure for org-element-property-raw: Handler: org-el= ement-property-raw--inliner (void-function org-element--property-idx) Warning: Optimization failure for org-element-put-property: Handler: org-el= ement-put-property--inliner (void-function org-element--property-idx) Warning: Optimization failure for org-element-property-raw: Handler: org-el= ement-property-raw--inliner (void-function org-element--property-idx) ... --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at From unknown Sun Jun 15 08:56:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#68851: 30.0.50; Native comp: Optimization failure for org-element-property-raw: Handler: org-element-property-raw--inliner Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Feb 2024 15:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68851 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Ihor Radchenko Cc: Eli Zaretskii , 68851@debbugs.gnu.org, monnier@iro.umontreal.ca Received: via spool by 68851-submit@debbugs.gnu.org id=B68851.170714585318843 (code B ref 68851); Mon, 05 Feb 2024 15:11:02 +0000 Received: (at 68851) by debbugs.gnu.org; 5 Feb 2024 15:10:53 +0000 Received: from localhost ([127.0.0.1]:52073 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rX0cX-0004tr-16 for submit@debbugs.gnu.org; Mon, 05 Feb 2024 10:10:53 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50028) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rX0cT-0004tY-5E for 68851@debbugs.gnu.org; Mon, 05 Feb 2024 10:10:51 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rX0cA-0004Z2-5B; Mon, 05 Feb 2024 10:10:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=Cdnt0MIUCihA8J/1I+ZfK6m2pJ0ikLGmK04t8gtTLGA=; b=GyhgqjMMlmPzdWXk+8r2 6K+1Cp42ywbzB+ZDitjHwPvmMWphHkiro5MBCsEDxQ2T1YVn06tLHBqcgVA8H4hM9p9cANZj7jQ8z qnLw10NBa2b9XuP9QReGTKkhIyY8qzQDK+5K8VEkNy1ewahgFLEr4By3zE43I8RVbZ2lL2bNDcD+p gZ+BvDpD2KJnL+TqVqBHHlqOtoXSqQatSYbJVsfEBdhzD6faqRtECL8U5uTAJYg8OjQe0uLnnQPtu ANSfNDwCUHPMsz9Iv5iy0FeqvyjnzoZm7LOaJGWDc+UuIAuwGXwCAFWIhv0uJac4IMMtvKkkdp15L 0LZbaJM/utMX1A==; Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1rX0c7-0006jR-HT; Mon, 05 Feb 2024 10:10:28 -0500 From: Andrea Corallo In-Reply-To: <87sf2bxa3k.fsf@localhost> (Ihor Radchenko's message of "Fri, 02 Feb 2024 13:35:27 +0000") References: <87zfwl8vd9.fsf@localhost> <86zfwl1t5y.fsf@gnu.org> <87sf2bxa3k.fsf@localhost> Date: Mon, 05 Feb 2024 10:10:27 -0500 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Ihor Radchenko writes: > Andrea Corallo writes: > >>>> =E2=9B=94 Warning (comp): Warning: Optimization failure for org-elemen= t-property-raw: Handler: org-element-property-raw--inliner >>>>=20 >>>> This is on the latest Org mode main branch. >>>>=20 >>>> This looks like a bug unless I misunderstand something about inlined f= unctions. >> ... >> >> Ihor have you tried compiling the compilation unit from command line >> (using batch-byte-compile or batch-native-compile)? If some dependency >> is broken this should highlight it. > > batch-byte-compile does not emit any warnings. > batch-native-compile emits the same warning: > > Compiling single /home/yantar92/Git/org-mode/lisp/org-element-ast.el... > Warning: Optimization failure for org-element-property-raw: Handler: org-= element-property-raw--inliner > (void-function org-element--property-idx) > Warning: Optimization failure for org-element-put-property: Handler: org-= element-put-property--inliner > (void-function org-element--property-idx) > Warning: Optimization failure for org-element-property-raw: Handler: org-= element-property-raw--inliner > (void-function org-element--property-idx) > ... Okay I'll try to look at it this week. Thanks Andrea From unknown Sun Jun 15 08:56:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#68851: 30.0.50; Native comp: Optimization failure for org-element-property-raw: Handler: org-element-property-raw--inliner Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Feb 2024 18:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68851 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Ihor Radchenko Cc: Eli Zaretskii , 68851@debbugs.gnu.org, monnier@iro.umontreal.ca Received: via spool by 68851-submit@debbugs.gnu.org id=B68851.17074182192504 (code B ref 68851); Thu, 08 Feb 2024 18:51:01 +0000 Received: (at 68851) by debbugs.gnu.org; 8 Feb 2024 18:50:19 +0000 Received: from localhost ([127.0.0.1]:33653 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rY9TW-0000eJ-OK for submit@debbugs.gnu.org; Thu, 08 Feb 2024 13:50:19 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43428) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rY9TT-0000e1-Uj for 68851@debbugs.gnu.org; Thu, 08 Feb 2024 13:50:16 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rY9T9-0005Bf-31; Thu, 08 Feb 2024 13:49:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=SvJj35RJQyFAqmwon+TIOWQlRbaMd+srdFd6cMFpBeI=; b=Z9TpFdG1GSowe68WGACt AGDHAXQ2a+ItdHYelj1dv/BZfZYejuEa1AOn8L+I7et0FsYPj7RmIiGqtB1yeC71TrR4zmv3TirW6 2jIaMhVZm4ft0uiVgvRBpZaG9Hy0IfpVuMgA2PgZM1DiuddyJAt3mD1VsMPz4SMhX/yD8JrG5n67/ FjqNsSU7oBh/tDpq8AX73aEZ/doB4uVPFnky5TtokSZt7BJ89bkjvLFHOJeCNn6ECT5xAWuAoBuvN 2d+WXwN6bo6X7MijW+uZl9a7R91Kg9be1TWVzM+DrNuf2CieR32l/Nv5eManz5zz8Hopd4zYyYQ9D kcOrALlSBjEHxw==; Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1rY9T7-00017f-2n; Thu, 08 Feb 2024 13:49:53 -0500 From: Andrea Corallo In-Reply-To: <87sf2bxa3k.fsf@localhost> (Ihor Radchenko's message of "Fri, 02 Feb 2024 13:35:27 +0000") References: <87zfwl8vd9.fsf@localhost> <86zfwl1t5y.fsf@gnu.org> <87sf2bxa3k.fsf@localhost> Date: Thu, 08 Feb 2024 13:49:53 -0500 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Ihor Radchenko writes: > Andrea Corallo writes: > >>>> =E2=9B=94 Warning (comp): Warning: Optimization failure for org-elemen= t-property-raw: Handler: org-element-property-raw--inliner >>>>=20 >>>> This is on the latest Org mode main branch. >>>>=20 >>>> This looks like a bug unless I misunderstand something about inlined f= unctions. >> ... >> >> Ihor have you tried compiling the compilation unit from command line >> (using batch-byte-compile or batch-native-compile)? If some dependency >> is broken this should highlight it. > > batch-byte-compile does not emit any warnings. > batch-native-compile emits the same warning: > > Compiling single /home/yantar92/Git/org-mode/lisp/org-element-ast.el... > Warning: Optimization failure for org-element-property-raw: Handler: org-= element-property-raw--inliner > (void-function org-element--property-idx) > Warning: Optimization failure for org-element-put-property: Handler: org-= element-put-property--inliner > (void-function org-element--property-idx) > Warning: Optimization failure for org-element-property-raw: Handler: org-= element-property-raw--inliner > (void-function org-element--property-idx) > ... Hi Ihor, could you specify the reproducer for this? Thanks Andrea From unknown Sun Jun 15 08:56:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#68851: 30.0.50; Native comp: Optimization failure for org-element-property-raw: Handler: org-element-property-raw--inliner Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Feb 2024 19:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68851 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Andrea Corallo Cc: Eli Zaretskii , 68851@debbugs.gnu.org, monnier@iro.umontreal.ca Received: via spool by 68851-submit@debbugs.gnu.org id=B68851.17074198935143 (code B ref 68851); Thu, 08 Feb 2024 19:19:02 +0000 Received: (at 68851) by debbugs.gnu.org; 8 Feb 2024 19:18:13 +0000 Received: from localhost ([127.0.0.1]:33679 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rY9uW-0001Kr-Gv for submit@debbugs.gnu.org; Thu, 08 Feb 2024 14:18:12 -0500 Received: from mout02.posteo.de ([185.67.36.66]:52551) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rY9uU-0001Kb-Ex for 68851@debbugs.gnu.org; Thu, 08 Feb 2024 14:18:11 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 48ABE240103 for <68851@debbugs.gnu.org>; Thu, 8 Feb 2024 20:17:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1707419870; bh=nDsE8OEaaDUQyRkM+b6OW2oYHXHoGRJDQg5e8EO93pE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=QmdFf4J31Aia64kUmj/TLVFxHCLtYQ/04PLcdle54ECsfacE7zclNYr/Df/pmGBtU c7qg2Erbm8XfHwqyn9fiZselSqBtVqbtyLdNoUtA0y36sfiEuV4H8iXLYdOx+MOzrH yekIaz4bUr/HtoCwn1nNaJyOjrzYu3/PMyV+oaiK1lblYq+o+iUMVKdqaDcEoTE41T H8XC88demlDfl81pY12uJUI5pd4DdtSSkMwIqzBcBXa1W9rPJiITl0FFqMdll2aY3v SFwLkPaLSITIo3oa4tw/W/jwOGZUaJwOpBWJZF7Dc9PdQepNg7068qUhEi8j19MLEj CdQ+KGo3S5TIA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TW6FS6LpRz9rxD; Thu, 8 Feb 2024 20:17:48 +0100 (CET) From: Ihor Radchenko In-Reply-To: References: <87zfwl8vd9.fsf@localhost> <86zfwl1t5y.fsf@gnu.org> <87sf2bxa3k.fsf@localhost> Date: Thu, 08 Feb 2024 19:21:16 +0000 Message-ID: <877cjeyd77.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Andrea Corallo writes: >> Warning: Optimization failure for org-element-property-raw: Handler: org-element-property-raw--inliner >> (void-function org-element--property-idx) >> ... > ... > could you specify the reproducer for this? git clone --depth 1 git://git.savannah.gnu.org/emacs/org-mode.git cd org-mode make native -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at From unknown Sun Jun 15 08:56:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#68851: 30.0.50; Native comp: Optimization failure for org-element-property-raw: Handler: org-element-property-raw--inliner Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Feb 2024 21:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68851 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Ihor Radchenko Cc: Eli Zaretskii , 68851@debbugs.gnu.org, monnier@iro.umontreal.ca Received: via spool by 68851-submit@debbugs.gnu.org id=B68851.170742862321260 (code B ref 68851); Thu, 08 Feb 2024 21:44:02 +0000 Received: (at 68851) by debbugs.gnu.org; 8 Feb 2024 21:43:43 +0000 Received: from localhost ([127.0.0.1]:33738 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYCBK-0005Wq-Ra for submit@debbugs.gnu.org; Thu, 08 Feb 2024 16:43:43 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:37166) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYCBI-0005WU-MJ for 68851@debbugs.gnu.org; Thu, 08 Feb 2024 16:43:41 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rYCAy-0001Xi-6B; Thu, 08 Feb 2024 16:43:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=/3wK4QwGjYYkecL6MDH4ctay8GSGe8VfpzSTB7gnDmg=; b=nrkZxBP6kT4nxGedGEjW 3FGdE5kDHg6No7oXg0yoWxUUvlmUuBhnFB9FdqwVStwt6S7DDXfH/ED3faHM8cTB79gRPYn6eGtCs hN42kNMKa61I8RrOpU2mJOngG/7m9ik/sE/a338omkQzIvJhtMLXEtorixzqY3GWy5hTTyxhHs5WI 5cvcxOq6cBElhDdkkQuh9KHURc3I/X5Ckg3NrdHsfXV+ZzQc4wiO6Jqiyhptd0RCeprzoobVGH1NF qEGw4fDGdFjbCvodSlDU08J/Rm8llhPDA2yDrmx0u8QUOZLKLblyVfRV1+amhKom0/GqDZgtckdVR TSF8syEDbqUYzA==; Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1rYCAx-0000Gj-1u; Thu, 08 Feb 2024 16:43:19 -0500 From: Andrea Corallo In-Reply-To: <877cjeyd77.fsf@localhost> (Ihor Radchenko's message of "Thu, 08 Feb 2024 19:21:16 +0000") References: <87zfwl8vd9.fsf@localhost> <86zfwl1t5y.fsf@gnu.org> <87sf2bxa3k.fsf@localhost> <877cjeyd77.fsf@localhost> Date: Thu, 08 Feb 2024 16:43:18 -0500 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Ihor Radchenko writes: > Andrea Corallo writes: > >>> Warning: Optimization failure for org-element-property-raw: Handler: org-element-property-raw--inliner >>> (void-function org-element--property-idx) >>> ... >> ... >> could you specify the reproducer for this? > > git clone --depth 1 git://git.savannah.gnu.org/emacs/org-mode.git > cd org-mode > make native Thanks, how can I ask this makefile to dump Emacs the command line invocation? Andrea From unknown Sun Jun 15 08:56:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#68851: 30.0.50; Native comp: Optimization failure for org-element-property-raw: Handler: org-element-property-raw--inliner Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Feb 2024 21:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68851 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Andrea Corallo Cc: Eli Zaretskii , 68851@debbugs.gnu.org, monnier@iro.umontreal.ca Received: via spool by 68851-submit@debbugs.gnu.org id=B68851.170742891422136 (code B ref 68851); Thu, 08 Feb 2024 21:49:02 +0000 Received: (at 68851) by debbugs.gnu.org; 8 Feb 2024 21:48:34 +0000 Received: from localhost ([127.0.0.1]:33743 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYCG1-0005kx-JZ for submit@debbugs.gnu.org; Thu, 08 Feb 2024 16:48:34 -0500 Received: from mout01.posteo.de ([185.67.36.65]:44651) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYCFz-0005k0-0B for 68851@debbugs.gnu.org; Thu, 08 Feb 2024 16:48:31 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 564F2240029 for <68851@debbugs.gnu.org>; Thu, 8 Feb 2024 22:48:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1707428890; bh=okRYNPdOdtUl4EvARWucFmdPF1IEPFhI1TKKvMHf3Y4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=ib5umksjeDK1F/TQ1TUz3xYSZsmzMpP4ch+geiMTPGvPMlMKinZEbsgrjgts6UlNh FR1Z+w98tAzUcLIr+m9GcxI6VFzZhe0INsuaLdKGSfiQEnvj5r0/4Pyh0dtPC77Q2z 0PLu2Ug/vajoGZb9PAihNnWZrJFurlu6XZrFKt13xxb1gvQlAjNqvjk/H19S+ujq08 MRlI7hvo1Kc69E+p2kQ49VDOK07aYmxLxRc2L3ZOI4JKAsqQ3PruOPJTcZAyJI54Le 5ePEb6dG1Hws3BSvqPD60vfOJIN6wRBFtFHPY5RQOgbHqCPg9aHzAwLDNFYNzlN3Pk 20VVFnPbGE7tg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TW9Zx3R4Vz6tw2; Thu, 8 Feb 2024 22:48:09 +0100 (CET) From: Ihor Radchenko In-Reply-To: References: <87zfwl8vd9.fsf@localhost> <86zfwl1t5y.fsf@gnu.org> <87sf2bxa3k.fsf@localhost> <877cjeyd77.fsf@localhost> Date: Thu, 08 Feb 2024 21:51:38 +0000 Message-ID: <874jeiy68l.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Andrea Corallo writes: >> git clone --depth 1 git://git.savannah.gnu.org/emacs/org-mode.git >> cd org-mode >> make native > > Thanks, > > how can I ask this makefile to dump Emacs the command line invocation? make -n native or cd lisp emacs -Q -batch --eval '(setq vc-handled-backends nil org-startup-folded nil org-element-cache-persistent nil)' --eval '(add-to-list '"'"'load-path ".")' --eval '(batch-native-compile)' org-element-ast.el -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at From unknown Sun Jun 15 08:56:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#68851: 30.0.50; Native comp: Optimization failure for org-element-property-raw: Handler: org-element-property-raw--inliner Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Feb 2024 22:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68851 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Andrea Corallo Cc: Eli Zaretskii , 68851@debbugs.gnu.org, monnier@iro.umontreal.ca Received: via spool by 68851-submit@debbugs.gnu.org id=B68851.170743023226881 (code B ref 68851); Thu, 08 Feb 2024 22:11:02 +0000 Received: (at 68851) by debbugs.gnu.org; 8 Feb 2024 22:10:32 +0000 Received: from localhost ([127.0.0.1]:34905 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYCbH-0006zT-1X for submit@debbugs.gnu.org; Thu, 08 Feb 2024 17:10:32 -0500 Received: from mout01.posteo.de ([185.67.36.65]:32825) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYCbF-0006yw-7X for 68851@debbugs.gnu.org; Thu, 08 Feb 2024 17:10:30 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 78672240028 for <68851@debbugs.gnu.org>; Thu, 8 Feb 2024 23:10:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1707430208; bh=h75EqTHCMU3CU1OV01JRKsaNDZXvXfeRCmmI/Poro04=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=n0dgYTxURCDCmaKqxOfU+b0FYI9o74Hk5Iwb0lVcMTFYBz7peRKF7l10RvqzFPGKZ 4qfxgaG3Ll6fx/SGlz5J9S80cqdJIwpgMQIe75U4ddIb7AjH5gBsRm4EvIe8C2gyYO pJ4XVgombDyn4EshhdZuWkgzeC6ehgkyHhKQDF9aFmn7kTevkTc/vH71kQoLjEZ2Fd pPqNqRC2y8wJV0ophN+5NhLfbnAV+nQ3Zznug+Xk0gDyZNc4biTk1vpJLcYz56Qfq3 HpzFqQMDLseGO7rDonJd24JleHvFHjWOQS0pc0wDPS7FHH16lHvXoyh+fOcTGknjnF b04U1XK0jidDA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TWB4H1zGWz9rxL; Thu, 8 Feb 2024 23:10:07 +0100 (CET) From: Ihor Radchenko In-Reply-To: References: <87zfwl8vd9.fsf@localhost> <86zfwl1t5y.fsf@gnu.org> <87sf2bxa3k.fsf@localhost> <877cjeyd77.fsf@localhost> <874jeiy68l.fsf@localhost> Date: Thu, 08 Feb 2024 22:13:25 +0000 Message-ID: <87a5oavc3e.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Andrea Corallo writes: > Sorry I'm not too excited about reverse engineering org makefile :) You can simply cd org-mode/lisp emacs -Q -batch --eval '(add-to-list '"'"'load-path ".")' --eval '(batch-native-compile)' org-element-ast.el -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at From unknown Sun Jun 15 08:56:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#68851: 30.0.50; Native comp: Optimization failure for org-element-property-raw: Handler: org-element-property-raw--inliner Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Feb 2024 22:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68851 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Ihor Radchenko Cc: Eli Zaretskii , 68851@debbugs.gnu.org, monnier@iro.umontreal.ca Received: via spool by 68851-submit@debbugs.gnu.org id=B68851.170743091429561 (code B ref 68851); Thu, 08 Feb 2024 22:22:02 +0000 Received: (at 68851) by debbugs.gnu.org; 8 Feb 2024 22:21:54 +0000 Received: from localhost ([127.0.0.1]:35730 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYCm2-0007fk-Qh for submit@debbugs.gnu.org; Thu, 08 Feb 2024 17:21:53 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57334) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYCm1-0007fM-0Y for 68851@debbugs.gnu.org; Thu, 08 Feb 2024 17:21:37 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rYCOS-000434-51; Thu, 08 Feb 2024 16:57:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=7uhwuw181i0mqtkGBD/WIFzjkhIfHtEJkgoKucDFHhQ=; b=MFpUkrYM4A6rB4+If+LD TgQW6yBsx32+mnjgVj+KCdFAttsKFECmGqG0A2HDe/O4oItEBR1JitQc+0M51lhK0aH4wk4ajmOip pzaTnF3wTj+rTHoZUzMfHtueXckmjcqAcGSGVfHozllbwb4XoASQ4jvJuebttMuja1I0307JDD5Df OJd1CYe8GIyyTXVZW7vkxY9NfpzjDArZDICfism0uTwW/0mgiIXZnIk2bPjOyXZXYZpOjqtXKEjIp utMQqUwPgeU6B4yupfAXh9XEmAp4TbBR6X2WHTHhHc3oMPR+ARBWnzvuwZAlTpTTthT0Z2ZYX9KbT z8xon8EQva0BGA==; Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1rYCOH-0002MJ-6s; Thu, 08 Feb 2024 16:57:06 -0500 From: Andrea Corallo In-Reply-To: <874jeiy68l.fsf@localhost> (Ihor Radchenko's message of "Thu, 08 Feb 2024 21:51:38 +0000") References: <87zfwl8vd9.fsf@localhost> <86zfwl1t5y.fsf@gnu.org> <87sf2bxa3k.fsf@localhost> <877cjeyd77.fsf@localhost> <874jeiy68l.fsf@localhost> Date: Thu, 08 Feb 2024 16:57:05 -0500 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Ihor Radchenko writes: > Andrea Corallo writes: > >>> git clone --depth 1 git://git.savannah.gnu.org/emacs/org-mode.git >>> cd org-mode >>> make native >> >> Thanks, >> >> how can I ask this makefile to dump Emacs the command line invocation? > > make -n native -n works for native compilation but not for the byte compilation (make -n). Sorry I'm not too excited about reverse engineering org makefile :) Thanks Andrea From unknown Sun Jun 15 08:56:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#68851: 30.0.50; Native comp: Optimization failure for org-element-property-raw: Handler: org-element-property-raw--inliner Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Feb 2024 22:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68851 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Ihor Radchenko Cc: Eli Zaretskii , 68851@debbugs.gnu.org, monnier@iro.umontreal.ca Received: via spool by 68851-submit@debbugs.gnu.org id=B68851.170743167132689 (code B ref 68851); Thu, 08 Feb 2024 22:35:01 +0000 Received: (at 68851) by debbugs.gnu.org; 8 Feb 2024 22:34:31 +0000 Received: from localhost ([127.0.0.1]:36754 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYCyU-0008V7-QU for submit@debbugs.gnu.org; Thu, 08 Feb 2024 17:34:31 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50034) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYCyS-0008Ub-Qm for 68851@debbugs.gnu.org; Thu, 08 Feb 2024 17:34:29 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rYCy6-00058b-6V; Thu, 08 Feb 2024 17:34:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=XklLGTvgq3eeJUmooFF3te/l7ccsYMRPeKYR7CfVxhs=; b=E8ld+v6hxjCODMymwGIF BoIEXw8/nsp8vYkNSgL5MZFR1pX32SY5HwcOfbstgWQe0zAtasmX4iyHDSCJ//fSkNFA6DRnbM4nw Nqsjoi4SjhuRPkXabZ0vmqlfGB4UhjNLpELbebwAKAY0NjXa6P7AL7WasnWcCXB5H7K3kqcXXV4TP QJxSyFTYVwHnACw5JQQGzUAp0XKtFwC1jrdT+9E0iy2+61mX7QTaV08BL/j1y0FWqiBIvyAiM4map dnqQtPe7Mg8FxSI9+7pcJA2qE+zaFtXhGe4G6aYhQ0IeVyXQ15NRyGLPZzVXDCDz/dR/tN4sr5KC1 dPb9mMF2QarVRg==; Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1rYCxk-0000eE-Uf; Thu, 08 Feb 2024 17:33:57 -0500 From: Andrea Corallo In-Reply-To: <87a5oavc3e.fsf@localhost> (Ihor Radchenko's message of "Thu, 08 Feb 2024 22:13:25 +0000") References: <87zfwl8vd9.fsf@localhost> <86zfwl1t5y.fsf@gnu.org> <87sf2bxa3k.fsf@localhost> <877cjeyd77.fsf@localhost> <874jeiy68l.fsf@localhost> <87a5oavc3e.fsf@localhost> Date: Thu, 08 Feb 2024 17:33:44 -0500 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Ihor Radchenko writes: > Andrea Corallo writes: > >> Sorry I'm not too excited about reverse engineering org makefile :) > > You can simply > > cd org-mode/lisp > emacs -Q -batch --eval '(add-to-list '"'"'load-path ".")' --eval '(batch-native-compile)' org-element-ast.el Negative, I've already the invocation for the native compilation, what I want is the one for byte compilation. Reason for that is that my crystal ball suggests compilers are invoked in different ways. Actually emacs -Q -batch --eval '(add-to-list '"'"'load-path ".")' --eval '(batch-byte-compile)' org-element-ast.el gives here the same exact error the native compiler gives. That BTW is in disagreement with: >> Ihor have you tried compiling the compilation unit from command line >> (using batch-byte-compile or batch-native-compile)? If some dependency >> is broken this should highlight it. > > batch-byte-compile does not emit any warnings. > batch-native-compile emits the same warning: So I suspect that (if this is really a bug) is not native compiler related, but I need the second invocation to confirm. Thanks Andrea From unknown Sun Jun 15 08:56:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#68851: 30.0.50; Native comp: Optimization failure for org-element-property-raw: Handler: org-element-property-raw--inliner Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Feb 2024 23:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68851 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Andrea Corallo Cc: Eli Zaretskii , 68851@debbugs.gnu.org, monnier@iro.umontreal.ca Received: via spool by 68851-submit@debbugs.gnu.org id=B68851.17074334267332 (code B ref 68851); Thu, 08 Feb 2024 23:04:01 +0000 Received: (at 68851) by debbugs.gnu.org; 8 Feb 2024 23:03:46 +0000 Received: from localhost ([127.0.0.1]:38930 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYDQn-0001u9-Lx for submit@debbugs.gnu.org; Thu, 08 Feb 2024 18:03:46 -0500 Received: from mout01.posteo.de ([185.67.36.65]:41891) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYDQm-0001tn-8q for 68851@debbugs.gnu.org; Thu, 08 Feb 2024 18:03:45 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 03A1124002A for <68851@debbugs.gnu.org>; Fri, 9 Feb 2024 00:03:23 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1707433404; bh=6CTcBX8F20Uef50/Iid4yfOAv4OY5SuLttUUwzCFogQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=j+rJ6IIZh3e3Tlb7Wd3tGgpiM9aINlzOFzx+O9BWc7c3FTJzT9lhJkuoktf6EVAC6 Pq+RmS+t8EPC1xmnqSZbYbqL4DkFIboUrP6WX/T92A9L50BdcxMVtfGlDYOKV07DmD A8h+8zayXA3tJrPdaq4MOoz744JauTSyHp36erpzTPu5WEoBZtMxP+swUh6uZP2GyB CekGQDJ8mAPlFD6Y4RcKjT/IICQK5qUvTiIle3jK5hgFd7jBfHTsWVYETTXCy3NNHD 2kBb6OCe/gQsucfqfwN8ukKjx6ny5Se5HxdkwopPL3lgxQvt1gcLijmLhErtbyCNuT aQlSX5AaeTkGA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TWCFl2GX5z9rxF; Fri, 9 Feb 2024 00:03:23 +0100 (CET) From: Ihor Radchenko In-Reply-To: References: <87zfwl8vd9.fsf@localhost> <86zfwl1t5y.fsf@gnu.org> <87sf2bxa3k.fsf@localhost> <877cjeyd77.fsf@localhost> <874jeiy68l.fsf@localhost> <87a5oavc3e.fsf@localhost> Date: Thu, 08 Feb 2024 23:06:52 +0000 Message-ID: <877cjev9mb.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Andrea Corallo writes: >> cd org-mode/lisp >> emacs -Q -batch --eval '(add-to-list '"'"'load-path ".")' --eval '(batch-native-compile)' org-element-ast.el > > Negative, I've already the invocation for the native compilation, what I > want is the one for byte compilation. > > Reason for that is that my crystal ball suggests compilers are invoked > in different ways. Actually > > emacs -Q -batch --eval '(add-to-list '"'"'load-path ".")' --eval '(batch-byte-compile)' org-element-ast.el > > gives here the same exact error the native compiler gives. I confirm. > That BTW is in disagreement with: > >>> Ihor have you tried compiling the compilation unit from command line >>> (using batch-byte-compile or batch-native-compile)? If some dependency >>> is broken this should highlight it. >> >> batch-byte-compile does not emit any warnings. >> batch-native-compile emits the same warning: Hmm. I think what I tried was a bit different. I did make compile, which is using batch-byte-recompile-directory: emacs -Q -batch --eval '(add-to-list '"'"'load-path ".")' --eval '(batch-byte-recompile-directory 0)' > So I suspect that (if this is really a bug) is not native compiler > related, but I need the second invocation to confirm. Looks like it is really not native compiler related. Still, I am puzzled what is going wrong there. The error is Warning: Optimization failure for org-element-property-raw: Handler: org-element-property-raw--inliner (void-function org-element--property-idx) but both org-element--property-idx and org-element-property-raw are inline functions defined in the same file. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at From unknown Sun Jun 15 08:56:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#68851: 30.0.50; Native comp: Optimization failure for org-element-property-raw: Handler: org-element-property-raw--inliner Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 08 Feb 2024 23:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68851 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: Eli Zaretskii , Andrea Corallo , 68851@debbugs.gnu.org Received: via spool by 68851-submit@debbugs.gnu.org id=B68851.170743561411888 (code B ref 68851); Thu, 08 Feb 2024 23:41:02 +0000 Received: (at 68851) by debbugs.gnu.org; 8 Feb 2024 23:40:14 +0000 Received: from localhost ([127.0.0.1]:39707 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYE05-00035e-Ii for submit@debbugs.gnu.org; Thu, 08 Feb 2024 18:40:14 -0500 Received: from mout02.posteo.de ([185.67.36.66]:38657) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYDzp-00034e-8k for 68851@debbugs.gnu.org; Thu, 08 Feb 2024 18:40:11 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 86CF8240103 for <68851@debbugs.gnu.org>; Fri, 9 Feb 2024 00:39:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1707435565; bh=XG4SOkqTTN2QMuOPbduYcZumCkPKChsR0jy7DxbTXxo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=nwi5SHFu+b3Ve77MQD7fALsdrRQJFFUGW/XY8T5SFIu/AlNoRh4p4u64xssAfXwIS 3V7aEl8diwExDMCS65eqJo6gZwSd993Aq71GqkyIwoiB1koE9KoeK3uquj41cUGebj aZFKZHqLgw81p2ltyJ2HTxKY9EFLXZThw+UvyI4/HRfcXp5GILwPaNdYzb6FGxtP7Q CQiD+Oapmge2OErtny4Spdg3/TuBkfnu4i7pAnTVaOUAj++oceCXOaHhjwiFiMX/fF lRDemLBjLPZFIeGYl90S3nGyhecfVkPb+IK6CZjafwVHmKcOh1RQIksRBpuDrsS+GF bLv4xJDuY884g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TWD3J5tMjz6tvd; Fri, 9 Feb 2024 00:39:24 +0100 (CET) From: Ihor Radchenko In-Reply-To: References: <87zfwl8vd9.fsf@localhost> <86zfwl1t5y.fsf@gnu.org> <87sf2bxa3k.fsf@localhost> <877cjeyd77.fsf@localhost> <874jeiy68l.fsf@localhost> <87a5oavc3e.fsf@localhost> <877cjev9mb.fsf@localhost> Date: Thu, 08 Feb 2024 23:42:53 +0000 Message-ID: <871q9mv7ya.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Stefan Monnier writes: >> emacs -Q -batch --eval '(add-to-list '"'"'load-path ".")' --eval >> '(batch-byte-recompile-directory 0)' > > I like to use ` to avoid that quotation gymnastics: > > emacs -Q -batch --eval '(add-to-list `load-path ".")' ... Interesting. Thanks for sharing the trick. >> Looks like it is really not native compiler related. >> Still, I am puzzled what is going wrong there. The error is >> >> Warning: Optimization failure for org-element-property-raw: Handler: >> org-element-property-raw--inliner >> (void-function org-element--property-idx) >> >> but both org-element--property-idx and org-element-property-raw are >> inline functions defined in the same file. > > `org-element--property-idx` is defined in that same file, indeed, but > contrary to `defmacro`, `define-inline` does not make the function > usable during that same file's compilation. This is surprising. I would not mind compiler indicating this fact in less cryptic way or, better, making `define-inline' usable during file's compilation. Also, I am very confused because the previous version worked: (define-inline org-element--property-idx (property) "Return standard property index or nil." (declare (pure t)) (if (inline-const-p property) (plist-get org-element--standard-properties-idxs (inline-const-val property)) (inline-quote (plist-get org-element--standard-properties-idxs ,property)))) -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at From unknown Sun Jun 15 08:56:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#68851: 30.0.50; Native comp: Optimization failure for org-element-property-raw: Handler: org-element-property-raw--inliner Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Feb 2024 00:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68851 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Ihor Radchenko Cc: Eli Zaretskii , Andrea Corallo , 68851@debbugs.gnu.org Received: via spool by 68851-submit@debbugs.gnu.org id=B68851.170743837220025 (code B ref 68851); Fri, 09 Feb 2024 00:27:02 +0000 Received: (at 68851) by debbugs.gnu.org; 9 Feb 2024 00:26:12 +0000 Received: from localhost ([127.0.0.1]:42765 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYEiZ-0005Cr-Ft for submit@debbugs.gnu.org; Thu, 08 Feb 2024 19:26:11 -0500 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:58406) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYEiW-0005CJ-PJ for 68851@debbugs.gnu.org; Thu, 08 Feb 2024 19:26:09 -0500 Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id A6988442C46; Thu, 8 Feb 2024 18:30:47 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1707435046; bh=3PiRFhge/8cM2vh1DVW2Rk3Z/38LN2+fhv0kGM+6Puk=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=jysvdnnQCbzo56Ttiox5zF0hBuZT1Kya6wg1xVPbrtDBHPZvSrIYIu224MImokLH8 Skp3yyC00HMI3Y2pY37nxeN5lM/ToxuiA39ug2WmNm+rnrJ/B4D0RBNCCanqvSHviN X4pv4dk6gPTh2WnsZND9njC3M9z+Yv1alk2BBsHDOxzqs6djdeyG+H1wBteZ9NiqMH xcSaFxf347QXkjArXEjH16qio6gijzKiEZ3Gk/pa60s6ZzN0zKzl4yp357PUhJuGBg QkHKqv54S+FAPkNrW4Ae3owqxEfEEgaIzryADfnvSr68p/lxK08SaYDidZoDuZgw/N fnS9rxnsiHzow== Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 1053C442C39; Thu, 8 Feb 2024 18:30:46 -0500 (EST) Received: from pastel (unknown [104.247.238.113]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id DAB2D1204DA; Thu, 8 Feb 2024 18:30:45 -0500 (EST) From: Stefan Monnier In-Reply-To: <877cjev9mb.fsf@localhost> (Ihor Radchenko's message of "Thu, 08 Feb 2024 23:06:52 +0000") Message-ID: References: <87zfwl8vd9.fsf@localhost> <86zfwl1t5y.fsf@gnu.org> <87sf2bxa3k.fsf@localhost> <877cjeyd77.fsf@localhost> <874jeiy68l.fsf@localhost> <87a5oavc3e.fsf@localhost> <877cjev9mb.fsf@localhost> Date: Thu, 08 Feb 2024 18:30:45 -0500 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL 0.010 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain T_SCC_BODY_TEXT_LINE -0.01 - X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Ihor Radchenko [2024-02-08 23:06:52] wrote: > Andrea Corallo writes: > >>> cd org-mode/lisp >>> emacs -Q -batch --eval '(add-to-list '"'"'load-path ".")' --eval >>> '(batch-native-compile)' org-element-ast.el >> >> Negative, I've already the invocation for the native compilation, what I >> want is the one for byte compilation. >> >> Reason for that is that my crystal ball suggests compilers are invoked >> in different ways. Actually >> >> emacs -Q -batch --eval '(add-to-list '"'"'load-path ".")' --eval >> '(batch-byte-compile)' org-element-ast.el >> >> gives here the same exact error the native compiler gives. > > I confirm. > >> That BTW is in disagreement with: >> >>>> Ihor have you tried compiling the compilation unit from command line >>>> (using batch-byte-compile or batch-native-compile)? If some dependency >>>> is broken this should highlight it. >>> >>> batch-byte-compile does not emit any warnings. >>> batch-native-compile emits the same warning: > > Hmm. I think what I tried was a bit different. I did make compile, which > is using batch-byte-recompile-directory: > > emacs -Q -batch --eval '(add-to-list '"'"'load-path ".")' --eval > '(batch-byte-recompile-directory 0)' I like to use ` to avoid that quotation gymnastics: emacs -Q -batch --eval '(add-to-list `load-path ".")' ... > Looks like it is really not native compiler related. > Still, I am puzzled what is going wrong there. The error is > > Warning: Optimization failure for org-element-property-raw: Handler: > org-element-property-raw--inliner > (void-function org-element--property-idx) > > but both org-element--property-idx and org-element-property-raw are > inline functions defined in the same file. `org-element--property-idx` is defined in that same file, indeed, but contrary to `defmacro`, `define-inline` does not make the function usable during that same file's compilation. IOW, you can work around that problem with `eval-and-compile`, for example. Stefan diff --git a/lisp/org-element-ast.el b/lisp/org-element-ast.el index b624fd1c87..0079334bca 100644 --- a/lisp/org-element-ast.el +++ b/lisp/org-element-ast.el @@ -350,13 +350,14 @@ node types.") plist) "Property list holding standard indexes for `org-element--standard-properties'.")) -(define-inline org-element--property-idx (property) +(eval-and-compile + (define-inline org-element--property-idx (property) "Return standard property index or nil." (declare (pure t)) (inline-letevals (property) (plist-get org-element--standard-properties-idxs - (inline-const-val property)))) + (inline-const-val property))))) (define-inline org-element--parray (node) "Return standard property array for NODE." From unknown Sun Jun 15 08:56:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#68851: 30.0.50; Native comp: Optimization failure for org-element-property-raw: Handler: org-element-property-raw--inliner Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Feb 2024 00:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68851 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Ihor Radchenko Cc: Eli Zaretskii , Andrea Corallo , 68851@debbugs.gnu.org Received: via spool by 68851-submit@debbugs.gnu.org id=B68851.170744017125809 (code B ref 68851); Fri, 09 Feb 2024 00:57:02 +0000 Received: (at 68851) by debbugs.gnu.org; 9 Feb 2024 00:56:11 +0000 Received: from localhost ([127.0.0.1]:44866 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYFBb-0006iC-CP for submit@debbugs.gnu.org; Thu, 08 Feb 2024 19:56:11 -0500 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:3871) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYFBZ-0006ht-NI for 68851@debbugs.gnu.org; Thu, 08 Feb 2024 19:56:10 -0500 Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 0D7DB10009E; Thu, 8 Feb 2024 19:48:00 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1707439679; bh=673wf9K6xBg1IHVhPN/Kmzfb5VHszFDVuo8PaFTZtTg=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=KivXCjZ7kJ2V0565cB5HmbgVJe9chcyHTXiWdQZgBvkEDM+rvfnvEeidRHUqIFtfJ LhmU2QFTCk8deNPImZDojYVtY2rOU59RZnXSAomMpCGKxHxm9tW5tZyp48tlm5jm1F JRI/d7zW90FZQEAbiqBrFN1KhSBaL5owz2igHSNS/qOBOSyDD/4ImRQvInl+fhQvPH cwb/ZQIGEgrwT+nTX4S+rVbLGJIOsrtxy/Y+eahDCrNg6mtix4M5FnXhJ9LDryKcBp 4OvamMq8dqa8D8Hb527ytDa8VF+zyti2ApTMqCAfj/XfdpTZv35xga4F/7n9eWpqt8 KJUFLT0OOU+Bw== Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id ED934100054; Thu, 8 Feb 2024 19:47:58 -0500 (EST) Received: from pastel (unknown [104.247.238.113]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id BE0FD1204C9; Thu, 8 Feb 2024 19:47:58 -0500 (EST) From: Stefan Monnier In-Reply-To: <871q9mv7ya.fsf@localhost> (Ihor Radchenko's message of "Thu, 08 Feb 2024 23:42:53 +0000") Message-ID: References: <87zfwl8vd9.fsf@localhost> <86zfwl1t5y.fsf@gnu.org> <87sf2bxa3k.fsf@localhost> <877cjeyd77.fsf@localhost> <874jeiy68l.fsf@localhost> <87a5oavc3e.fsf@localhost> <877cjev9mb.fsf@localhost> <871q9mv7ya.fsf@localhost> Date: Thu, 08 Feb 2024 19:47:57 -0500 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain T_SCC_BODY_TEXT_LINE -0.01 - X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) >> `org-element--property-idx` is defined in that same file, indeed, but >> contrary to `defmacro`, `define-inline` does not make the function >> usable during that same file's compilation. > This is surprising. I would not mind compiler indicating this fact in > less cryptic way or, better, making `define-inline' usable during file's > compilation. The same error would be signaled if `org-element--property-idx` were defined with `defun`, and `define-inline` is another way to define a function, so I thought it would make sense to make them behave similarly. > Also, I am very confused because the previous version worked: > > (define-inline org-element--property-idx (property) > "Return standard property index or nil." > (declare (pure t)) > (if (inline-const-p property) > (plist-get > org-element--standard-properties-idxs > (inline-const-val property)) > (inline-quote (plist-get > org-element--standard-properties-idxs > ,property)))) I can't see why it would behave differently with the above definition, sorry. BTW, improved patch below. Stefan diff --git a/lisp/org-element-ast.el b/lisp/org-element-ast.el index b624fd1c87..9a12299b60 100644 --- a/lisp/org-element-ast.el +++ b/lisp/org-element-ast.el @@ -348,7 +348,7 @@ node types.") (setq plist (plist-put plist property idx))) org-element--standard-properties) plist) - "Property list holding standard indexes for `org-element--standard-properties'.")) + "Property list holding standard indexes for `org-element--standard-properties'.") (define-inline org-element--property-idx (property) "Return standard property index or nil." @@ -356,7 +356,7 @@ node types.") (inline-letevals (property) (plist-get org-element--standard-properties-idxs - (inline-const-val property)))) + (inline-const-val property))))) (define-inline org-element--parray (node) "Return standard property array for NODE." @@ -405,26 +405,15 @@ Ignore standard property array." Do not resolve deferred values. If PROPERTY is not present, return DFLT." (declare (pure t)) - (let ((idx (and (inline-const-p property) - (org-element--property-idx property)))) - (if idx - (inline-letevals (node) - (inline-quote - (if-let ((parray (org-element--parray ,node))) - (pcase (aref parray ,idx) - (`org-element-ast--nil ,dflt) - (val val)) - ;; No property array exists. Fall back to `plist-get'. - (org-element--plist-property ,property ,node ,dflt)))) - (inline-letevals (node property) - (inline-quote - (let ((idx (org-element--property-idx ,property))) - (if-let ((parray (and idx (org-element--parray ,node)))) - (pcase (aref parray idx) - (`org-element-ast--nil ,dflt) - (val val)) - ;; No property array exists. Fall back to `plist-get'. - (org-element--plist-property ,property ,node ,dflt)))))))) + (let ((idx (org-element--property-idx (inline-const-val property)))) + (inline-letevals (node) + (inline-quote + (if-let ((parray (org-element--parray ,node))) + (pcase (aref parray ,idx) + (`org-element-ast--nil ,dflt) + (val val)) + ;; No property array exists. Fall back to `plist-get'. + (org-element--plist-property ,property ,node ,dflt)))))) (define-inline org-element--put-parray (node &optional parray) "Initialize standard property array in NODE. From unknown Sun Jun 15 08:56:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#68851: 30.0.50; Native comp: Optimization failure for org-element-property-raw: Handler: org-element-property-raw--inliner Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Feb 2024 11:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68851 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Ihor Radchenko Cc: Eli Zaretskii , 68851@debbugs.gnu.org, monnier@iro.umontreal.ca Received: via spool by 68851-submit@debbugs.gnu.org id=B68851.170747889021958 (code B ref 68851); Fri, 09 Feb 2024 11:42:02 +0000 Received: (at 68851) by debbugs.gnu.org; 9 Feb 2024 11:41:30 +0000 Received: from localhost ([127.0.0.1]:57506 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYPG6-0005i5-B9 for submit@debbugs.gnu.org; Fri, 09 Feb 2024 06:41:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45436) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYPG4-0005hm-DJ for 68851@debbugs.gnu.org; Fri, 09 Feb 2024 06:41:29 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rYPFh-00085F-SP; Fri, 09 Feb 2024 06:41:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=aYX3Pg9POi2sQ18JQwEP80cGjhoqCPYS6VpwSlz+1kw=; b=NJ6sjbECXT1bXMdIFVi1 iNX6OHZVQoEw7cMsdhxKLdWadZgJuRcJzAqdb68Y8lX/0YKNnWOY8pDE1H0j4WAKtcWjfBAUVrFu0 I5F3WDuWqZsZ3xGqt4nKNfovIEihN0Wu6Qtf8HXXUdDtM7+SJZXf/75y4nZHbf0Vg6V6TfqmF0wqr FXqHmEscqGOsZxVdqHko/A1+OrQR+3PZEDRun1hiLXF5I/O75kzg9zQe0pH8/bELKaPc53nHP3IrJ D4qji4nBrM8MTEqxIA43g0SD7LeLkLTiynlsIkGsxZA5OpkxymxU6CcmAAwtDK0QEkpdJ4PW4UkfK zN5w4AeVuBlMBQ==; Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1rYPFf-0007ov-7A; Fri, 09 Feb 2024 06:41:03 -0500 From: Andrea Corallo In-Reply-To: <877cjev9mb.fsf@localhost> (Ihor Radchenko's message of "Thu, 08 Feb 2024 23:06:52 +0000") References: <87zfwl8vd9.fsf@localhost> <86zfwl1t5y.fsf@gnu.org> <87sf2bxa3k.fsf@localhost> <877cjeyd77.fsf@localhost> <874jeiy68l.fsf@localhost> <87a5oavc3e.fsf@localhost> <877cjev9mb.fsf@localhost> Date: Fri, 09 Feb 2024 06:41:03 -0500 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Ihor Radchenko writes: > Andrea Corallo writes: > >>> cd org-mode/lisp >>> emacs -Q -batch --eval '(add-to-list '"'"'load-path ".")' --eval '(batch-native-compile)' org-element-ast.el >> >> Negative, I've already the invocation for the native compilation, what I >> want is the one for byte compilation. >> >> Reason for that is that my crystal ball suggests compilers are invoked >> in different ways. Actually >> >> emacs -Q -batch --eval '(add-to-list '"'"'load-path ".")' --eval '(batch-byte-compile)' org-element-ast.el >> >> gives here the same exact error the native compiler gives. > > I confirm. > >> That BTW is in disagreement with: >> >>>> Ihor have you tried compiling the compilation unit from command line >>>> (using batch-byte-compile or batch-native-compile)? If some dependency >>>> is broken this should highlight it. >>> >>> batch-byte-compile does not emit any warnings. >>> batch-native-compile emits the same warning: > > Hmm. I think what I tried was a bit different. I did make compile, which > is using batch-byte-recompile-directory: Please verify and compare your real compiler invocation next time, that's essential to reporting and triaging a bug. Thanks Andrea From unknown Sun Jun 15 08:56:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#68851: 30.0.50; Native comp: Optimization failure for org-element-property-raw: Handler: org-element-property-raw--inliner Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Feb 2024 12:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68851 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: Eli Zaretskii , Andrea Corallo , 68851@debbugs.gnu.org Received: via spool by 68851-submit@debbugs.gnu.org id=B68851.170747998925449 (code B ref 68851); Fri, 09 Feb 2024 12:00:03 +0000 Received: (at 68851) by debbugs.gnu.org; 9 Feb 2024 11:59:49 +0000 Received: from localhost ([127.0.0.1]:58803 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYPXp-0006cP-Ad for submit@debbugs.gnu.org; Fri, 09 Feb 2024 06:59:49 -0500 Received: from mout01.posteo.de ([185.67.36.65]:51541) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYPXn-0006c7-6d for 68851@debbugs.gnu.org; Fri, 09 Feb 2024 06:59:48 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 93DED24002D for <68851@debbugs.gnu.org>; Fri, 9 Feb 2024 12:59:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1707479966; bh=0nr4ojP4SnOTVSJFJFPKUyMUJkxoaRglyH1hGtljaBA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=eelE1Mh7YqWDDBM0Gi80S8JFHyBQfkjmTcP0JG0t9V7xs7G0UE5cyBXCtaMV0awen AuLgy/brPw4DFp55RHenNyZAW1KZnl1tgHogCn7i6c4OUDb9aklcoPE3hr2CHxG3PA 88k8oJdjdQ+EC5XG2X5tQ4wsjLgtcWGQnWamDPd85sdl70TepY98XpQnB2NOv/zUoh eCL77pny8pEG5+dDzK86/KP+rx2dravI7vG+0LyHfbben863L46J9FaQHwD39hWMox V+jYPMyf7SbWoV9cm3ELbAEKjyuKjABzMC8o/Fq0708tmgRK5vD6WolmILwWBwF91b bm6E9q0X1wZZQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TWXT92Tklz9rxN; Fri, 9 Feb 2024 12:59:24 +0100 (CET) From: Ihor Radchenko In-Reply-To: References: <87zfwl8vd9.fsf@localhost> <86zfwl1t5y.fsf@gnu.org> <87sf2bxa3k.fsf@localhost> <877cjeyd77.fsf@localhost> <874jeiy68l.fsf@localhost> <87a5oavc3e.fsf@localhost> <877cjev9mb.fsf@localhost> <871q9mv7ya.fsf@localhost> Date: Fri, 09 Feb 2024 12:02:56 +0000 Message-ID: <87plx5etfz.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Stefan Monnier writes: >>> `org-element--property-idx` is defined in that same file, indeed, but >>> contrary to `defmacro`, `define-inline` does not make the function >>> usable during that same file's compilation. >> This is surprising. I would not mind compiler indicating this fact in >> less cryptic way or, better, making `define-inline' usable during file's >> compilation. > > The same error would be signaled if `org-element--property-idx` were > defined with `defun`, and `define-inline` is another way to define > a function, so I thought it would make sense to make them > behave similarly. I see the logic. Although, I am very surprised that `batch-byte-recompile-directory' does not trigger the error. So, something is off somewhere in the compilation. If not in `batch-byte-compile' then in `batch-byte-recompile-directory'. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at From unknown Sun Jun 15 08:56:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#68851: 30.0.50; Native comp: Optimization failure for org-element-property-raw: Handler: org-element-property-raw--inliner Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Feb 2024 12:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68851 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Ihor Radchenko Cc: Eli Zaretskii , Andrea Corallo , 68851@debbugs.gnu.org Received: via spool by 68851-submit@debbugs.gnu.org id=B68851.170748258710552 (code B ref 68851); Fri, 09 Feb 2024 12:44:01 +0000 Received: (at 68851) by debbugs.gnu.org; 9 Feb 2024 12:43:07 +0000 Received: from localhost ([127.0.0.1]:33108 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYQDj-0002k5-0K for submit@debbugs.gnu.org; Fri, 09 Feb 2024 07:43:07 -0500 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:6528) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYQDh-0002jU-7Q for 68851@debbugs.gnu.org; Fri, 09 Feb 2024 07:43:05 -0500 Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 6C7701000DA; Fri, 9 Feb 2024 07:42:44 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1707482563; bh=bRghrEfOBjnHGuXTN9Y/l2WP/h0cL8399HC9h8O/y1k=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=KxkNT6PRlTQ1nkPBF9FpvPBc7Hgutspssg7BLSsXn4aqDNTuWA4l92z/XSvvaE4f5 PLw3bdOcQ1fQLMMDjDwYVSFbwYoLzqqbmFY78i9ITrkJz96GvjvJ3KjZdVRmO5Vfvm PgbA+9sz27uDDNPgeWiO6KLueKP76eB1+mlQeoCzdoNkfjmqEot1SdZu0hGMl3rrEJ XJRCLjzvioGoy6Qdg/dMtUX4HXLO/60+iDFZEiOxd6QRWjHzWV5J2+tPhZTjB4WgAU sYFQshdJwR/EW/m2ofjqVKiILMC59MS0xdYZ+h7ejgTmoeZ6v2ru0nESONSRPL2A1d TI9SNMfloZviQ== Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 8225C100054; Fri, 9 Feb 2024 07:42:43 -0500 (EST) Received: from pastel (unknown [104.247.238.113]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 56568120223; Fri, 9 Feb 2024 07:42:43 -0500 (EST) From: Stefan Monnier In-Reply-To: <87plx5etfz.fsf@localhost> (Ihor Radchenko's message of "Fri, 09 Feb 2024 12:02:56 +0000") Message-ID: References: <87zfwl8vd9.fsf@localhost> <86zfwl1t5y.fsf@gnu.org> <87sf2bxa3k.fsf@localhost> <877cjeyd77.fsf@localhost> <874jeiy68l.fsf@localhost> <87a5oavc3e.fsf@localhost> <877cjev9mb.fsf@localhost> <871q9mv7ya.fsf@localhost> <87plx5etfz.fsf@localhost> Date: Fri, 09 Feb 2024 07:42:41 -0500 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.123 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain T_SCC_BODY_TEXT_LINE -0.01 - X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Although, I am very surprised that `batch-byte-recompile-directory' does > not trigger the error. So, something is off somewhere in the > compilation. If not in `batch-byte-compile' then in > `batch-byte-recompile-directory'. `batch-byte-recompile-directory` runs a single Emacs session that compiles all the files. Some of those files probably (require 'org-element-ast) and presumably this happens in one of the files compiled *before* `org-element-ast.el`, hence the problem disappears. FWIW, I have a local hack which saves&restores the global `obarray` around each `byte-compile-file` which should make `batch-byte-recompile-directory` shows the same errors as compiling each file individually. Not sure it's worth the trouble, tho. Stefan From unknown Sun Jun 15 08:56:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#68851: 30.0.50; Native comp: Optimization failure for org-element-property-raw: Handler: org-element-property-raw--inliner Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Feb 2024 16:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68851 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: Eli Zaretskii , Andrea Corallo , 68851@debbugs.gnu.org Received: via spool by 68851-submit@debbugs.gnu.org id=B68851.17074958317115 (code B ref 68851); Fri, 09 Feb 2024 16:24:01 +0000 Received: (at 68851) by debbugs.gnu.org; 9 Feb 2024 16:23:51 +0000 Received: from localhost ([127.0.0.1]:49060 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYTfK-0001qh-8H for submit@debbugs.gnu.org; Fri, 09 Feb 2024 11:23:50 -0500 Received: from mout02.posteo.de ([185.67.36.66]:35689) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYTfI-0001qP-5y for 68851@debbugs.gnu.org; Fri, 09 Feb 2024 11:23:49 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 95EB7240101 for <68851@debbugs.gnu.org>; Fri, 9 Feb 2024 17:15:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1707495357; bh=sVuS4fQ8BfxVUvW45kj3IanYMTxNmj5zQQJlY+hiQbQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=KQhTKbZV3gixXhZTlHG/pzh5OER832LHZwQfCph6bgXlnOQSz6PY1Pb8DoTZEtgVV ahsfZEsglelLEQQn6vil6VITuQJ6i9nWVU19vJmF47R7R47wn1tqDpa0rZKkbhwz3O t3TpYxsr2wUIG+r0lJegBDmtx8FjXq1S+XfSqCpBc9HgMXvB+U/+W6roiYjBN3WSPn Y39hMSx09kebyqpFUjfUQAaQBTKVYFpSff7vSgBHgFEqyJaTZNPpFKw2C2+PZKNKIc L1m3K28tfRkV9CSRfrz4QIXV5qBZL7UPBWPBFw5/slggeAu/RykUNQwpi1KuhPMLf+ g6Lw3BlTltwGQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TWf97639Pz9rxP; Fri, 9 Feb 2024 17:15:55 +0100 (CET) From: Ihor Radchenko In-Reply-To: References: <87zfwl8vd9.fsf@localhost> <86zfwl1t5y.fsf@gnu.org> <87sf2bxa3k.fsf@localhost> <877cjeyd77.fsf@localhost> <874jeiy68l.fsf@localhost> <87a5oavc3e.fsf@localhost> <877cjev9mb.fsf@localhost> <871q9mv7ya.fsf@localhost> Date: Fri, 09 Feb 2024 16:19:27 +0000 Message-ID: <87sf21a9v4.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Stefan Monnier writes: > BTW, improved patch below. Thanks! > diff --git a/lisp/org-element-ast.el b/lisp/org-element-ast.el > index b624fd1c87..9a12299b60 100644 > --- a/lisp/org-element-ast.el > +++ b/lisp/org-element-ast.el > @@ -348,7 +348,7 @@ node types.") > (setq plist (plist-put plist property idx))) > org-element--standard-properties) > plist) > - "Property list holding standard indexes for `org-element--standard-properties'.")) > + "Property list holding standard indexes for `org-element--standard-properties'.") > > (define-inline org-element--property-idx (property) > "Return standard property index or nil." > @@ -356,7 +356,7 @@ node types.") > (inline-letevals (property) > (plist-get > org-element--standard-properties-idxs > - (inline-const-val property)))) > + (inline-const-val property))))) I applied this part, as https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=ecb5b605d > (define-inline org-element--parray (node) > "Return standard property array for NODE." > @@ -405,26 +405,15 @@ Ignore standard property array." > Do not resolve deferred values. > If PROPERTY is not present, return DFLT." > (declare (pure t)) > - (let ((idx (and (inline-const-p property) > ... > + (let ((idx (org-element--property-idx (inline-const-val property)))) > + (inline-letevals (node) > + (inline-quote > + (if-let ((parray (org-element--parray ,node))) > + (pcase (aref parray ,idx) > + (`org-element-ast--nil ,dflt) > + (val val)) > + ;; No property array exists. Fall back to `plist-get'. > + (org-element--plist-property ,property ,node ,dflt)))))) This one causes failing tests. So, something is off. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at From unknown Sun Jun 15 08:56:30 2025 X-Loop: help-debbugs@gnu.org Subject: bug#68851: 30.0.50; Native comp: Optimization failure for org-element-property-raw: Handler: org-element-property-raw--inliner Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Feb 2024 16:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68851 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: Eli Zaretskii , Andrea Corallo , 68851@debbugs.gnu.org Received: via spool by 68851-submit@debbugs.gnu.org id=B68851.17074964328833 (code B ref 68851); Fri, 09 Feb 2024 16:34:01 +0000 Received: (at 68851) by debbugs.gnu.org; 9 Feb 2024 16:33:52 +0000 Received: from localhost ([127.0.0.1]:49648 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYTp0-0002IF-Lv for submit@debbugs.gnu.org; Fri, 09 Feb 2024 11:33:51 -0500 Received: from mout02.posteo.de ([185.67.36.66]:37903) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYToy-0002Hm-TC for 68851@debbugs.gnu.org; Fri, 09 Feb 2024 11:33:50 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id C25AD240105 for <68851@debbugs.gnu.org>; Fri, 9 Feb 2024 17:18:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1707495497; bh=KJO7DWN2HaqiLUp4EB+vnRvhkPMwgY/lnKvaH01pmlg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=HGIpG8D0rZ0VIiU2Uqr7QDcyD4hf8F+J1/mdxjMpXHUkRjAqs+uZKSUHYiTS+1HnO 9XIcUq+k/XXe4YacxjaMP3Sr0+s3bo2GToNDwa2dcxIZtiBFw7GUlXoWsAi4+oAyBD lQyU0pLHd3sRkR4GOJ8maGrbYojdLvRBFrbK8DM/Rfu6EeCBuNN1Gr0ZilrD+zuJf6 YTUk4hy7zaQVnNHxPQRv7NTNNVZbBWMEMa96O4JPuEfrs287zYi3myWE1HVMlmLkkX 0NSJWAyn8pV7PnJH4VnMDY1UgNsBPh5q4Tvlh1WM19yjA/f371a3DOxm2Qqo8iGh3J Tbanfj4dpwrBQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TWfCs0JH5z6twd; Fri, 9 Feb 2024 17:18:16 +0100 (CET) From: Ihor Radchenko In-Reply-To: References: <87zfwl8vd9.fsf@localhost> <86zfwl1t5y.fsf@gnu.org> <87sf2bxa3k.fsf@localhost> <877cjeyd77.fsf@localhost> <874jeiy68l.fsf@localhost> <87a5oavc3e.fsf@localhost> <877cjev9mb.fsf@localhost> <871q9mv7ya.fsf@localhost> <87plx5etfz.fsf@localhost> Date: Fri, 09 Feb 2024 16:21:48 +0000 Message-ID: <87plx5a9r7.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Stefan Monnier writes: >> Although, I am very surprised that `batch-byte-recompile-directory' does >> not trigger the error. So, something is off somewhere in the >> compilation. If not in `batch-byte-compile' then in >> `batch-byte-recompile-directory'. > > `batch-byte-recompile-directory` runs a single Emacs session that > compiles all the files. Some of those files probably (require > 'org-element-ast) and presumably this happens in one of the files > compiled *before* `org-element-ast.el`, hence the problem disappears. Makes sense. Then, this bug can be closed I think. The problem is not on Emacs side. > FWIW, I have a local hack which saves&restores the global `obarray` > around each `byte-compile-file` which should make > `batch-byte-recompile-directory` shows the same errors as compiling each > file individually. Not sure it's worth the trouble, tho. I prefer to be explicit. I changed Org mode build system to use "single" target by default, so that .el files are compiled individually. This also allowed parallel execution of make. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=71fbe92c2 https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=c76d498f4 -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at