From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Colin Baxter Newsgroups: gmane.emacs.devel Subject: Re: Should native compilation be enabled by default? Date: Fri, 15 Mar 2024 15:08:00 +0000 Message-ID: <87h6h7v8hb.fsf@yandex.com> References: <86sf19p0hw.fsf@gnu.org> <13305.117729918$1709671403@news.gmane.org> <87y1aku44q.fsf@dataswamp.org> <87wmq3vf57.fsf@yandex.com> <877ci3iiwj.fsf@localhost> <87sf0rvdpt.fsf@yandex.com> <87le6jvd1r.fsf@yandex.com> Reply-To: m43cap@yandex.com 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="19214"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (gnu/linux) Cc: Ihor Radchenko , emacs-devel@gnu.org To: Corwin Brust Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Mar 15 16:09:36 2024 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 1rl9Bf-0004oa-Bv for ged-emacs-devel@m.gmane-mx.org; Fri, 15 Mar 2024 16:09:35 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rl9AO-0001mK-AF; Fri, 15 Mar 2024 11:08:16 -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 1rl9AL-0001m4-3G for emacs-devel@gnu.org; Fri, 15 Mar 2024 11:08:13 -0400 Original-Received: from forward502b.mail.yandex.net ([2a02:6b8:c02:900:1:45:d181:d502]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rl9AH-0007QM-7F for emacs-devel@gnu.org; Fri, 15 Mar 2024 11:08:12 -0400 Original-Received: from mail-nwsmtp-smtp-production-main-91.iva.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-91.iva.yp-c.yandex.net [IPv6:2a02:6b8:c0c:732b:0:640:829a:0]) by forward502b.mail.yandex.net (Yandex) with ESMTPS id D15945F054; Fri, 15 Mar 2024 18:08:02 +0300 (MSK) Original-Received: by mail-nwsmtp-smtp-production-main-91.iva.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id 08rMokMVxSw0-Dh99sstW; Fri, 15 Mar 2024 18:08:02 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1710515282; bh=ytj4E1pqW+Wpgzh3W04oGelzruXhVqv/9ZvLnYGCIT4=; h=Message-ID:References:Date:Reply-To:Cc:In-Reply-To:Subject:To: From; b=TxnqZ2XLjNDrgU0EM/JESXpcDhi2mnISFe1T1PGHEAYgy3yBHrSsBkCdNXJsEd4Ow rkWKz/zrLZClU07VQnNbE+nbRllmM2i1MjZS5YumfWelPkfnkB7BQYZPujcx3L+/ua ENBQm+VQ1fHhbzSLZ15+V92crMsRjuiMSmPSTem8= Authentication-Results: mail-nwsmtp-smtp-production-main-91.iva.yp-c.yandex.net; dkim=pass header.i=@yandex.com In-Reply-To: (Corwin Brust's message of "Fri, 15 Mar 2024 08:53:55 -0500") X-Face: BHjiJOg/Qmj'BQgsAKL@])L)e62P)C"Y=6T Face: iVBORw0KGgoAAAANSUhEUgAAAEkAAAATAgMAAAChCMjeAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACVBMVEX/zAABCWP///8I RHjYAAAAAWJLR0QCZgt8ZAAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB+UFEAk5BvqS634A AAAbSURBVBjTY2BgCA1hYA0FAxDDgQEERsXoIAYA2F9Eb3cpB+AAAAAldEVYdGRhdGU6Y3JlYXRl ADIwMjEtMDUtMTZUMTA6NTY6MTcrMDE6MDCh/kkpAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTA1 LTE2VDA5OjU3OjA2KzAxOjAwTyZ6HwAAAABJRU5ErkJggg== Received-SPF: pass client-ip=2a02:6b8:c02:900:1:45:d181:d502; envelope-from=m43cap@yandex.com; helo=forward502b.mail.yandex.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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-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:317074 Archived-At: >>>>> Corwin Brust writes: > On Fri, Mar 15, 2024 at 8:29=E2=80=AFAM Colin Baxter wrote: >>=20 >>=20 >> My argument is against the notion that default native compilation >> is a "no brainer". I suggest it's a "some brainer". There are >> issues about what libgccjit flag to pass when compiling, as was >> pointed out in the link, whether two years old or not. >>=20 > It sounds you have a sytem without libgccjit available but also > like you do not want native comp enabled. Is that right? > IIUC, the plan would be that, if we don't have libgccjit installed > Emacs, we will always get (according to defaults) a build build > without native comp. Does that address your concern? Yes. I think I didn't explain my concerns properly. To me, "default" means that all a user need do is ./configure, make, make install. This would I think (or thought) have a good chance of failing if native compilation was made default. This is partially solved if, as you say, the build will still succeed if the user does not have libgccjit. There remains the possibilities, however, that the user has libgccjit but doesn't know it, or that it's version is not compatible with the installed gcc. Perhaps some words of explanation in the INSTALL file is what's needed? Best wishes,