From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: Native compilation on as default? Date: Thu, 26 Oct 2023 08:32:38 +0800 Message-ID: <874jie1avt.fsf@yahoo.com> References: <83legs281v.fsf@gnu.org> <83r0liiy44.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="36957"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Andrea Corallo , Eli Zaretskii , emacs-devel@gnu.org To: Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Oct 26 02:42:26 2023 Return-path: Envelope-to: ged-emacs-devel@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 1qvoSA-0009Ua-3a for ged-emacs-devel@m.gmane-mx.org; Thu, 26 Oct 2023 02:42:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qvoJ0-0000JJ-Iz; Wed, 25 Oct 2023 20:32:58 -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 1qvoIw-0000Ax-SF for emacs-devel@gnu.org; Wed, 25 Oct 2023 20:32:54 -0400 Original-Received: from sonic307-10.consmr.mail.ne1.yahoo.com ([66.163.190.33]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qvoIt-00044m-23 for emacs-devel@gnu.org; Wed, 25 Oct 2023 20:32:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1698280368; bh=yRDcxWkV7kdFmCeypIB0Tf4aQ2emiMIKCDStek3Hvu0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=nRRmD1xFulXtE/Vpjl2eu2thhXIKCumW7os8HYBbfqIzkZYPVPN9FhchMz00IR07tdNv/bkk1pBW6toWnjlEQ596RM3214klQBBIfvNKp9HZlt+1tcj7l5JuUsyYQKCaGhdo3yaQhGt2pbX0ccyNlt58vn4i6MOFmQz5+gYrKk1EQAVA5exM8jFmkXP3h3bu0raO1nBuzd7es8ZSHK2SY/KsnN4lJZc7JW8h5GE+h7K9wcgO3tn8gOb+YAYWCRjt0kFp22Q1SBx4nU1Tqgr/0n8+PC0C4l4vF2FJ2pdKuseZs4x6ldsWEOb7SpaZB2iCRWw+UU6C+n1ZGUr6ygBBhQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1698280368; bh=J4Xr4zOIvlQ+GKYsUA/oM/xJVWvsghNZgz2Wpz0/ZNQ=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=FdnY4goFytg22e9BgjsQEe/7bz+zAbF1ddpw96PZjzprAFugnI86yWIJLV9IOobFulboPPPGwb85kgyXIMUeFM2JMCrIMT8Izo5dtwbSl7iQmfQ7W3pUfXcY7tJ0rIcq9wGutkv2b4MmtL1gCWNDZ521FkEUS5xboKxMIbMr9uIpmqM9Qg+LtVo/BikU4ZsrvNgmOaJegXqxaC/J81nDc8YsOIWTfE8Z+cb1oSJsvoRr28XUe+v+Qa+NO/dCsmxdzy74Sho3DvKIibwBl0NwRE4DcrCqsBQr4yCWDolTTM5oq2bjUdwDebKhouLDu1zzK0HSzPkXCIy240BuWUQxgg== X-YMail-OSG: DEgMA90VM1m4fhrQhGlsZLO7qMjkExB7EKKuuPwqeQAyF55kpi6yk4p5hCvemks kky5afSOGtuotPz63LpG.pV2vYnpTXRnc0DmB4ukHmL7B4KEel1jA5LWAVVtNy.yBWPmKXhaCkfe bhuKFIDGQNY9NLsTbMXSIenzBpDmay8cJQG0wpkfKm_85hIOTfzComCCZHfaLqj3SySMI3.1TVuG KVTEduRP7Qt36X7ViMPPx0iTsojAKuaUNH6QaSmuIqQ4Ng..vZl3m0wOIRVJsI_87B2K2ObgsEdD oka55NsUbMS1PYpvzZvkTNYchvqq_NyMEhAdLvgdM9tyoDkKtOQiiJpox0ly2GaJCWbOfZH0hhUF r17Pbe1esLyZDn.rkJYqRIFVsu345e0OS2p1Rk5Pix7RTk1weR2TnSKOUXPXY6BDITjXG0DPyCEi 5zXfmk2g7n9L86VPwLyd0uBir1dUQ8k9X7__KGknItSkOmIOx7EtAT0KN9ojytDBiV6tc00V7OEu O6XMyW8la3TfEixas0_S2PJQB2XmBjJ0Dpt_tgJ8JqTINKsRM0iEUHaf3JC.uaM_P7oyT6M8yPoT UJgP1GkxuYiy2k7iXGhfYsIYa1S76Z6tAuL6n0eY3DBGgtlmm0fVU_DTdxZPdWSRrvypydvCJYjs woG8QAMn_v1Uc6omZ2ASffml6CcpsX9WIIxpjvkloe_OKrrV8kggyulhcyLrmwuSjPnRflqtj6oD TD_wTTzYVSMqh2cUdEZvz5OrZJ8UdU4z2yuteRSzMVM7MZ3JKgCQfIdbdQY2qmI8jKufrcUGe8aG mkqPUlF4p.h7YVXggd2Zetqj8agKx7R_oTh8JnG2aT X-Sonic-MF: X-Sonic-ID: db626343-6942-4b84-ab9e-1b906a48eebf Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ne1.yahoo.com with HTTP; Thu, 26 Oct 2023 00:32:48 +0000 Original-Received: by hermes--production-sg3-8696d769c6-cdtmc (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID b90a3612e5eea20b204be1ae356c8bb0; Thu, 26 Oct 2023 00:32:44 +0000 (UTC) In-Reply-To: (Stefan Kangas's message of "Wed, 25 Oct 2023 15:48:39 -0700") X-Mailer: WebService/1.1.21797 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.190.33; envelope-from=luangruo@yahoo.com; helo=sonic307-10.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:311872 Archived-At: Stefan Kangas writes: > Andrea Corallo writes: > >> doing some work I just re-discovered that a good a explaination of that >> was written by Eli in the 'native-comp-async-report-warnings-errors' doc >> :) >> >> " >> When native compilation happens asynchronously, it can produce >> warnings and errors, some of which might not be emitted by a >> byte-compilation. The typical case for that is native-compiling >> a file that is missing some =E2=80=98require=E2=80=99 of a necessary fea= ture, >> while having it already loaded into the environment when >> byte-compiling. >> >> As asynchronous native compilation always starts from a pristine >> environment, it is more sensitive to such omissions, and might be >> unable to compile such Lisp source files correctly. > > Thanks for the reminder. So I think the plan you outlined previously > sounds good. I'm not opposed to this in principle, but two precautions are prerequisite for instituting such a change. First, the configure script must arrange for native compilation to be disabled if libgccjit is unavailable (or else ./configure && make will no longer work); and second, I think it should be disabled when building from the Git repository, for native compilation delays making the Lisp directory by a length of time that is unacceptable for Emacs development.