From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Getting ready to land native-compilation on master Date: Wed, 14 Apr 2021 20:02:04 +0300 Message-ID: <83czuwzto3.fsf@gnu.org> References: <83v98v7dzs.fsf@gnu.org> <87v98ox3pe.fsf@tammy.lan.sha-bang.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13664"; mail-complaints-to="usenet@ciao.gmane.io" Cc: akrl@sdf.org, emacs-devel@gnu.org To: wilde@sha-bang.de Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Apr 14 19:03:17 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 1lWiv7-0003Sv-8t for ged-emacs-devel@m.gmane-mx.org; Wed, 14 Apr 2021 19:03:17 +0200 Original-Received: from localhost ([::1]:39746 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWiv6-0001fY-5u for ged-emacs-devel@m.gmane-mx.org; Wed, 14 Apr 2021 13:03:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49706) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWiuA-0000qQ-By for emacs-devel@gnu.org; Wed, 14 Apr 2021 13:02:24 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:47121) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWiu8-0007ZK-Ff; Wed, 14 Apr 2021 13:02:17 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3141 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lWiu7-00070x-IC; Wed, 14 Apr 2021 13:02:16 -0400 In-Reply-To: <87v98ox3pe.fsf@tammy.lan.sha-bang.de> (wilde@sha-bang.de) 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:268058 Archived-At: > From: wilde@sha-bang.de > Cc: emacs-devel@gnu.org, Andrea Corallo > Date: Wed, 14 Apr 2021 17:53:33 +0200 > > 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) Andrea, looks like NetBSD is in the same boat as OpenBSD, where we already refrain from using -ldl. > - 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). I'm not sure I understand why this happens, but I think this issue should be reported to the GCC Bugzilla. > 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! Thanks for testing the branch.