From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: master 289000e: Merge branch 'feature/native-comp' into trunk Date: Sun, 25 Apr 2021 21:55:29 +0000 Message-ID: References: <20210425182503.25223.81072@vcs0.savannah.gnu.org> <20210425182508.6CC7C2094D@vcs0.savannah.gnu.org> <831rayktot.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29998"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, akrl@sdf.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Apr 25 23:56:11 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 1lamjb-0007hA-E5 for ged-emacs-devel@m.gmane-mx.org; Sun, 25 Apr 2021 23:56:11 +0200 Original-Received: from localhost ([::1]:50942 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lamja-0003XV-Fj for ged-emacs-devel@m.gmane-mx.org; Sun, 25 Apr 2021 17:56:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56038) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lamj0-00038s-UW for emacs-devel@gnu.org; Sun, 25 Apr 2021 17:55:34 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:12161 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.90_1) (envelope-from ) id 1lamiy-0003Rf-6Y for emacs-devel@gnu.org; Sun, 25 Apr 2021 17:55:34 -0400 Original-Received: (qmail 88550 invoked by uid 3782); 25 Apr 2021 21:55:30 -0000 Original-Received: from acm.muc.de (p2e5d5d5e.dip0.t-ipconnect.de [46.93.93.94]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 25 Apr 2021 23:55:29 +0200 Original-Received: (qmail 26502 invoked by uid 1000); 25 Apr 2021 21:55:29 -0000 Content-Disposition: inline In-Reply-To: <831rayktot.fsf@gnu.org> X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de Received-SPF: pass client-ip=193.149.48.1; envelope-from=acm@muc.de; helo=mail.muc.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_PASS=-0.001 autolearn=unavailable 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:268430 Archived-At: Hello, Eli. On Sun, Apr 25, 2021 at 23:14:42 +0300, Eli Zaretskii wrote: > > Date: Sun, 25 Apr 2021 20:03:46 +0000 > > From: Alan Mackenzie > > Cc: emacs-devel@gnu.org > > I've just tried a ./configure (with --with-native-compilation), and got > > the error message: > > configure: error: elisp native compiler requested but libgccjit not found. > > Please try installing libgccjit or similar package. > > What is libgccjit, and where do I find it? > It's part of the GCC package, so I suggest to look among the > GCC-related stuff that your distro offers. Thanks, I found the Gentoo "use flag" to enable it, and rebuilt gcc. I was then able to build Emacs including native compilation. > > What else do I need to know, successfully to build and run the > > native compilation feature? > Hopefully, nothing (just to build and run). This is sadly far from true. You need to know basic things like native compile files are .eln. You need to know how to compile files. I guessed that $ emacs -Q -batch -f batch-native-compile lisp/progmodes/cc-*.el would natively compile CC Mode. Well, it took several minutes of processing in which it did something, but I don't know what. A find failed to find '*cc-*.eln'. On restarting Emacs, my favourite CC Mode benchmark was only marginally (~4%) faster. I don't know if I've actually natively compiled CC Mode, but if so, I don't know where the compiled files are, and I don't know how to load them into Emacs. I'm frustrated at the moment. I want to use this new feature, but don't know how to, and can't find any documentation. "native compilation" doesn't seem to appear in either the Emacs or the Elisp manual. -- Alan Mackenzie (Nuremberg, Germany).