From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eason Huang Newsgroups: gmane.emacs.bugs Subject: bug#64167: 29.0.92; Ahead-of-time native compilation failed Emacs 29.0.92 Date: Wed, 21 Jun 2023 14:05:13 +0800 Message-ID: References: <83pm5r745l.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17327"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Corwin Brust , 64167@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 21 08:06:15 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qBqys-0004G8-Jm for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Jun 2023 08:06:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qBqyj-0004IB-Te; Wed, 21 Jun 2023 02:06:05 -0400 Original-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 1qBqyg-0004Hj-7I for bug-gnu-emacs@gnu.org; Wed, 21 Jun 2023 02:06:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qBqyf-0006Mt-U3 for bug-gnu-emacs@gnu.org; Wed, 21 Jun 2023 02:06:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qBqyf-0006wT-NK for bug-gnu-emacs@gnu.org; Wed, 21 Jun 2023 02:06:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eason Huang Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Jun 2023 06:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64167 X-GNU-PR-Package: emacs Original-Received: via spool by 64167-submit@debbugs.gnu.org id=B64167.168732754126659 (code B ref 64167); Wed, 21 Jun 2023 06:06:01 +0000 Original-Received: (at 64167) by debbugs.gnu.org; 21 Jun 2023 06:05:41 +0000 Original-Received: from localhost ([127.0.0.1]:60284 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBqyK-0006vv-UL for submit@debbugs.gnu.org; Wed, 21 Jun 2023 02:05:41 -0400 Original-Received: from out162-62-57-49.mail.qq.com ([162.62.57.49]:44377) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBqyH-0006vc-Ce for 64167@debbugs.gnu.org; Wed, 21 Jun 2023 02:05:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1687327518; bh=weVyuTs0oMxT1Lg/JkBy9PzjyOwLbu3qxaofumXdSjM=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=yqcYmEtaLfvX5d7bfgLYhRYsurz94l5gXDVFc6jnQONYkyU/niH56SwKbOKnnXZh9 bEM6n/mnP74ssqJrbQPa7eq5ln+nPmRAPUbJwcHrnswSUAoWRS5mB1ngBs/nWcvNOG IEWFQ7BuSd1c5IY8WJDPmWqHd1Vh1M2KMfi8IK14= Original-Received: from DESKTOP-VIHFE84 ([202.96.203.174]) by newxmesmtplogicsvrsza10-0.qq.com (NewEsmtp) with SMTP id 1509EE35; Wed, 21 Jun 2023 14:05:16 +0800 X-QQ-mid: xmsmtpt1687327516tlyhwq55h X-QQ-XMAILINFO: Mg/0DM1Zd+nHiD4TfLRdDneM1ydFMLwPSHU9quydYWy7OdK8c09kvFWwlZevYT APoOTRbnOpPoooeTIaZivnJnJnRe/wCJ3YOXFCCPz3mPR/paAGJRWm0lHfzIWmeyu2uWksY5RZYI 2ZJegLFz+9ehn6JxhkrnjMF3rYOPn/l3g7D1/VrwQYcIbiwa6HI4nHp22R10TGh3uWdhh7oOVRTG lrxPOAAi8J9LQq8JHaSbYVeSeQ3fMD1XG67Lj6H/p3nDoMu5NuHUMVxPBK4XVVRfoc0yxbzWQFwf CmNfRujdGXd4hEaYXym8t3dYIciqcGpsu6M2+kmVVDR1TuQ7Wmccc490kdT5q1z1IJD/fR5V0TgC unh9zLmqf8z5xmxpXfvVARowc2yV3feWtmXa/DLyq3VRN4IPcym78u9VwLLUpBWfAEQc4cx8bVAW qFX+m6DDcQAAIeeWnUI4MRfPceJTSqS0stSOA7RSPuKgblqJhEJY8pWu/FYo7Sgu6Lb077qIOPAx /c+s9NVUjWzlnYl4iPn5KrjWKEqlJcON3sgaw42efFy8W6T5Q0jDn32E9ikgwamynKkbgbJlT/gv BTfoZdfU/lDZWvFk8uWFHKcFbvTvoG2A2VH8LiwPq2cJLNxf0eUHIZPeBs5kYWFHlhnAXeW84vio vWyGrJ6p7eDOUlDIqIrIUDSyktA4IRnWaG0SiMjm6l03uFi9fxNFOxLzmrVuAZ/oJQBY1Xo9oMXf XluTXTzVHXb/17nLJdW2Wnj0FlpB/nW3754VMX5LNrFioNvGKfyVyallEfp23rl9gDqK1blCle+z Rfn8wTq15boX2xjKORYoXZT5kDa1DmyMv0eMT4gO X-QQ-XMRINFO: OaHeJnMbHdYJoNPX7mruotAPXHzc5BrOrw== In-Reply-To: <83pm5r745l.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 19 Jun 2023 20:28:22 +0300") Original-Message-ID: <86y1kduz8m.fsf@foxmail.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:263786 Eli Zaretskii writes: >> Cc: 64167@debbugs.gnu.org >> From: Corwin Brust >> Date: Mon, 19 Jun 2023 09:33:03 -0500 >> >> On Mon, Jun 19, 2023 at 8:24=E2=80=AFAM Eason Huang wrote: >> > >> > I try to build Emacs 29.0.92 on Windows 11, the `aot` option have no >> > affect. After I start Emacs, still need to compile the built-in >> > packages, such org,cc-mode and so on. >> >> I can reproduce this. Additionally, expressly passing >> --WITH_FULL_AOT=3D1 to make also has no effect. >> >> Both appear to work fine for non-release builds (i.e., "snapshot" >> builds made in-tree, vs building from a release tarball as we are >> doing in this case). > > The difference is that in the release tarball you have all the *.elc > files up-to-date, so the native-compilation rule doesn't kick in. > Remove all the *.elc file, and I'm guessing that the aot build will > work. Yes, you are right. I tried to download source code from https://git.savannah.gnu.org/cgit/emacs.git/snapshot/emacs-2bad5829ff765387= 74676f7274f40ce7baf04c73.tar.gz And it can be build --with-native-compilation=3Daot But it will failed with some errors on Windows 10 and Windows 11: ``` ELC+ELN erc/erc-menu.elc ELC+ELN erc/erc-netsplit.elc ELC+ELN erc/erc-networks.elc Backtrace: 00007ff6a78ca72e 00007ff6a7798b21 00007ff6a77b9611 00007ff6a792ee8a 00007ffa37c47ff0 00007ffa38712477 00007ffa386c14ec ``` you can see the details on line 2521 in the build log with the link below: https://gist.github.com/Eason0210/f97220ec5fac3565036975e97ba16098 If you need more infomation, please let me known. --=20 Eason Huang