From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: wilde@sha-bang.de Newsgroups: gmane.emacs.devel Subject: Re: Getting ready to land native-compilation on master Date: Wed, 14 Apr 2021 17:53:33 +0200 Message-ID: <87v98ox3pe.fsf@tammy.lan.sha-bang.de> References: <83v98v7dzs.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18255"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (berkeley-unix) Cc: Andrea Corallo , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Apr 14 18:20:42 2021 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 1lWiFt-0004eG-T1 for ged-emacs-devel@m.gmane-mx.org; Wed, 14 Apr 2021 18:20:41 +0200 Original-Received: from localhost ([::1]:33472 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWiFp-0003Fo-Ir for ged-emacs-devel@m.gmane-mx.org; Wed, 14 Apr 2021 12:20:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36830) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWi0I-0001iT-76 for emacs-devel@gnu.org; Wed, 14 Apr 2021 12:04:34 -0400 Original-Received: from mail.sha-bang.de ([2a01:4f8:110:34e1::42:1]:60045) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWi09-00049R-EL; Wed, 14 Apr 2021 12:04:33 -0400 Original-Received: from tammy.sha-bang.de (dialin-80-228-137-251.ewe-ip-backbone.de [80.228.137.251]) by mail.sha-bang.de (Postfix) with ESMTPSA id 43FBB260; Wed, 14 Apr 2021 18:04:21 +0200 (CEST) Original-Received: by tammy.sha-bang.de (Postfix, from userid 1000) id 42AFA5A79; Wed, 14 Apr 2021 17:53:33 +0200 (CEST) In-Reply-To: <83v98v7dzs.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 09 Apr 2021 17:02:15 +0300") Received-SPF: none client-ip=2a01:4f8:110:34e1::42:1; envelope-from=wilde@sha-bang.de; helo=mail.sha-bang.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:268056 Archived-At: Eli Zaretskii wrote: > If some of you have some unusual or rare or exotic system or Emacs > configuration, and did not yet try building the native-comp branch, > this is your chance to have a go before the merge: please build the > branch and report any issues or problems you bump into. Today I build and started using Emacs from the on a small i368 system with NetBSD 9.1: System spec: CPU: Intel(R) Atom(TM) CPU N270 @ 1.60GHz RAM: 2 GiB Build: - I build libgccjit from gcc 10.2.0 manually as libgccjit seems not to be available from pkgsrc (not checked very thoroughly though) at least I found no `pkgin' installable binaries... - I had to manually remove `-ldl' from LIBGCCJIT in src/Makefile as this is not needed on *BSD (and triggers an error during build, when present) IMO, this should be fixed in configure.ac (The same problem might exist for --with-modules, in case it is supported on *BSD, didn't test though...) - I hat to disable memory protection on the system to make the native compiler work: sysctl -w security.pax.mprotect.global=0 sysctl -w security.pax.mprotect.enabled=0 This is not a Emacs specific problem but a problem with libgccjit itself. (The basic gcc jit "Hello World" example also fails with memory protection in place). The native compiling Emacs itself seems to run fine (I'm right now writing this message in gnus on the said system) and the performance improvement is very noticeable on this small system. Thanks a LOT to Andrea for this major improvement of GNU Emacs! cheers sascha