From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Bhavin Gandhi Newsgroups: gmane.emacs.devel Subject: Re: Packaging Emacs with native compilation enabled Date: Sun, 5 Dec 2021 23:50:38 +0530 Message-ID: References: <83v9032lts.fsf@gnu.org> 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="2775"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 05 19:36:09 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 1mtwMr-0000R6-09 for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Dec 2021 19:36:09 +0100 Original-Received: from localhost ([::1]:54918 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtwMo-0006Z6-Ti for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Dec 2021 13:36:06 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42552) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtw8U-0003QI-S2 for emacs-devel@gnu.org; Sun, 05 Dec 2021 13:21:18 -0500 Original-Received: from [2607:f8b0:4864:20::b35] (port=36645 helo=mail-yb1-xb35.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mtw8S-0002bI-PG; Sun, 05 Dec 2021 13:21:18 -0500 Original-Received: by mail-yb1-xb35.google.com with SMTP id d10so25118057ybe.3; Sun, 05 Dec 2021 10:21:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=t0wxK2U+sn3zJ21GHPCIkyqjZtRb0y3+NvpRitjb/6E=; b=H8VTMMkJNHa9j2Q/BZVpiN7SQsgeMAqU5VKl1XsqQyUBgKFCliw9v0FlISLXaIMj+r 2kz8sttjlzd7BockZiVHC+gWHUGA/sspKuaHIavxIRNXP7wIrZjN8TU/EvjbzWbRriep cPQH3MvpO+Ev+DB3fXVTRlpVuaXNPCs34099KT+RDFX3Z9UUSu483a+tOZhm3+9AKH/+ Rl7pHVyx4aJH2VvZPcCSfiB3r31hsUUNJOC93Jht6tZYUHENccfUqYw1sWxi75QGThQQ 6lNW9DFkAcx0uLCjcUxybpw+MufZky6CKwPrb8dfcEMXf2sWT5sLEopWCZ0llQTNYf6p MR6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=t0wxK2U+sn3zJ21GHPCIkyqjZtRb0y3+NvpRitjb/6E=; b=wY9Y0fcYYczLHvV6bvGCcJ38blB9zkmTcWv+CeIV6y3HTd7WCgvAW8Yp7QBtAJLt0C 7D7qdXz5GpNqw6dYUWZB4P9wMyEqrtoRGMnQPjCx/j/62COQZ2AgOPz8ROzitESw66nn 8917Uz5zKx6MMT5QFrFx+IsG8T4QlgwnUM7TpraAm1GDUMhGEb5hhBJxGSck98lMomWe oz6sPR8juQ/bgDYDN2xj/kJXyeOgWaof/n4N9YPcoyQ4mNMPPONQLJdKm2DvvJQoHfDM VtuAjeTB87n+L7c6Y8L9uEgv2YUPelmnM6A8dHIEzbeb088EbLto/OCtLBOPjxR64dbD vAmg== X-Gm-Message-State: AOAM531rdIkAgjMGBYby1Qjk2dJNybLEkFhua78qhqhiyjN9/5qal1B6 HaMxRWX4hm8XJyIiMS2ShVOfwjMD3ahqkuHFmKEmbtAX X-Google-Smtp-Source: ABdhPJxOZYGf8G0Ot9BFNqUK20o2W1ivaV/Xd/ol/Hx2klK5NfifdrITtMIvnhDH8dx38C1RJ2PpMDI3v7g73a9rCvs= X-Received: by 2002:a5b:786:: with SMTP id b6mr36443777ybq.657.1638728475263; Sun, 05 Dec 2021 10:21:15 -0800 (PST) In-Reply-To: <83v9032lts.fsf@gnu.org> X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::b35 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::b35; envelope-from=bhavin7392@gmail.com; helo=mail-yb1-xb35.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sun, 05 Dec 2021 13:35:06 -0500 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" Xref: news.gmane.io gmane.emacs.devel:281015 Archived-At: On Sun, 5 Dec 2021 at 19:30, Eli Zaretskii wrote: > > 1. Should these files be there in the final package, which is > > distributed to users? > > If you are making a binary distribution (not one where users will have > to build Emacs from sources), these files should be included, yes. Thanks! Now I'm able to make sense out of the conversations about keeping NATIVE_FULL_AOT=3D1 when building the binary distribution packages. > > Based on what I have understood from Andrea's EmacsConf 2021 talk[1] an= d > > the "(elisp) Native Compilation" page: the .eln files are CPU specific > > and should not be shared across. > > That's true, but you are already producing Emacs binaries, which are > necessarily specific to the CPU, right? The *.eln files are just > shared libraries built for the same architecture as the Emacs binary, > so they have the same restrictions as the binary. Understood, that makes sense. And clarifies the following line from the manual. > The transportability of natively-compiled code is the same as that of > shared libraries (=E2=80=98.so=E2=80=99 or =E2=80=98.dll=E2=80=99 files).