From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.devel Subject: Re: On elisp running native Date: Sun, 08 Mar 2020 15:13:37 +0000 Message-ID: References: <83imlwl9vm.fsf@gnu.org> <83o8uegykm.fsf@gnu.org> <74dd94a9-28cb-a5fd-dbc7-ab21009834ad@cs.ucla.edu> <87mu8vjcmm.fsf@alphapapa.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="120860"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: Adam Porter , emacs-devel@gnu.org To: Gong-Yi Liao =?utf-8?B?5buW5a6u5q+F?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Mar 08 16:14:24 2020 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 1jAxdH-000VLQ-R9 for ged-emacs-devel@m.gmane-mx.org; Sun, 08 Mar 2020 16:14:23 +0100 Original-Received: from localhost ([::1]:58526 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAxdG-0007Ty-Ty for ged-emacs-devel@m.gmane-mx.org; Sun, 08 Mar 2020 11:14:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36342) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jAxce-00074m-FF for emacs-devel@gnu.org; Sun, 08 Mar 2020 11:13:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jAxcd-0008IX-GY for emacs-devel@gnu.org; Sun, 08 Mar 2020 11:13:44 -0400 Original-Received: from mx.sdf.org ([205.166.94.20]:55822) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jAxcd-0008I7-9p for emacs-devel@gnu.org; Sun, 08 Mar 2020 11:13:43 -0400 Original-Received: from sdf.org (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 028FDbY5024917 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Sun, 8 Mar 2020 15:13:37 GMT Original-Received: (from akrl@localhost) by sdf.org (8.15.2/8.12.8/Submit) id 028FDb3T006701; Sun, 8 Mar 2020 15:13:37 GMT In-Reply-To: ("Gong-Yi Liao =?utf-8?B?5buW5a6u5q+FIidz?= message of "Sun, 8 Mar 2020 09:37:44 -0500") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 205.166.94.20 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:245343 Archived-At: Gong-Yi Liao =E5=BB=96=E5=AE=AE=E6=AF=85 writes: > Hi Andrea, > > I tried to cross compile gccjit and emacs for aarch64 target on a > x86-64 machine as the raspberry pi 4b is not powerful enough for this > type of tasks but I haven't get anything fruitful so far. > > When I complied these two packages on a raspberry pi 4b, compiling > gccjit was ok, executable binaries were eventually generated. > > But emacs/native-comp always fail when native compiling leim related elc/= eln. > > Do you have any recommendation for setting up a cross compilation > environment for that? > > Thanks, > Gong-Yi. Hi Gong-Yi, I'm not sure a libgccjit cross compilation setup was ever attempted before. Not even sure about cross compiling the standard Emacs but as of today I think cross compiling native-comp would be pure experimentation/development. If you have a working libgccjit on the pi I suggest you to start with modifying the Emacs make command as follow: make bootstrap BYTE_COMPILE_EXTRA_FLAGS=3D'--eval "(setq comp-speed 0)"' speed zero is one magnitude order faster in compiling being still faster then the bytecompiler in the resulting code you'll execute. At least you can start testing the rest of the system. Once is boostrapped you'll be able to compile pieces of elisp at speed 2 if you like. Hope it helps. Andrea --=20 akrl@sdf.org