From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "T.V Raman" Newsgroups: gmane.emacs.devel Subject: Re: Native Compilation And External Packages Date: Sat, 29 May 2021 20:05:14 -0700 Message-ID: References: <24754.27537.803673.706445@google.com> <83czt95wco.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=gb18030 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9655"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun May 30 05:06:18 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 1lnBmL-0002Ep-WA for ged-emacs-devel@m.gmane-mx.org; Sun, 30 May 2021 05:06:18 +0200 Original-Received: from localhost ([::1]:46054 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lnBmK-00049W-3Y for ged-emacs-devel@m.gmane-mx.org; Sat, 29 May 2021 23:06:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36316) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lnBlR-0003Ui-3y for emacs-devel@gnu.org; Sat, 29 May 2021 23:05:21 -0400 Original-Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]:43784) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lnBlP-0006Uu-9z for emacs-devel@gnu.org; Sat, 29 May 2021 23:05:20 -0400 Original-Received: by mail-pl1-x630.google.com with SMTP id v12so3485624plo.10 for ; Sat, 29 May 2021 20:05:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=SXA5OU7Cgtkli1Y9kvkfigjexukSFW9+Qma+gxLy2hc=; b=FsISlip6EfM8Y9Lm3Awyjj8YPEkAkD6HR7Y99vAtca2T13PItmdaH5/NdjP7kiPx4q QYHYrW+EoDRA4zb8hX30Ob0qqHmwuzdLmwaoChKCFLck1YiBnZ6dlx8rRN450YtEUCWU qHZY6sEigyFT7eyykNiKFxbLVtoWdxgt2f24sCY2/S7qNginsNMIrPNBtLBs2nVXDKuc UJ7FHla3twJoj66XwMpaYNrlyl5nke7JeN3gv8aeqaHRMIooxzjc49/rTKtN7o7/KRI5 Mj2u13xjoSBxmOzpjdxNnjEiLB4l4BY6xqWoUbmEq4Mp5xGbVyR3qoo74aYphUj0myi1 wJ8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=SXA5OU7Cgtkli1Y9kvkfigjexukSFW9+Qma+gxLy2hc=; b=NmP7466HrjcHYZkzLRuU9QL6Im0rlhcEC5+gDhPh5jk9KpqR0lTEB1kO0SKjwumPuD Pbha2AVrW4gqWQOa4thTWJDy1zGZEe5r82mEId9k/5XhNtWasErkduKjFSoWciQv8zEb DbjrtDeJAaQlOa/VzsyBrhyRH8UKvm+L2ph9OealhxHmXyFW2O9cjRNEAZMK9bFWMgNi ciPjlrmSNKF/P7zAXH96FN4hg0i7vad5zQjzwMGaZ04c2sSGBQKcPULGs/HhUPqrzBSL 4bt37V8iKld66H1Jxsb9qjMSz84KqgHfgWio5Ee4Uqv+tLhxL8pomlV5SlMYVJMFMLPM j6MA== X-Gm-Message-State: AOAM530e7A9Asu+nRDzMRTUn/CzlqQkt3yOehJriBTlFfzpod058Lqyh ql4w761eTo0LCm4fvccVf57Kcoi5zZKRrS5t X-Google-Smtp-Source: ABdhPJyq1m1vClnRqEXau3tvFisVKDOuV/NlAlFha0SRHUy6QvYk6xXJtEypY64hd7z34etDJ3/uzA== X-Received: by 2002:a17:90a:be12:: with SMTP id a18mr12040546pjs.187.1622343917271; Sat, 29 May 2021 20:05:17 -0700 (PDT) Original-Received: from raman-glaptop.localdomain (c-24-4-174-65.hsd1.ca.comcast.net. [24.4.174.65]) by smtp.gmail.com with ESMTPSA id s29sm2946044pgm.82.2021.05.29.20.05.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 May 2021 20:05:16 -0700 (PDT) Original-Received: by raman-glaptop.localdomain (Postfix, from userid 13930) id 21D95C20521; Sat, 29 May 2021 20:05:15 -0700 (PDT) In-Reply-To: (T. V. Raman's message of "Sat, 29 May 2021 19:06:00 -0700") Received-SPF: pass client-ip=2607:f8b0:4864:20::630; envelope-from=raman@google.com; helo=mail-pl1-x630.google.com X-Spam_score_int: -175 X-Spam_score: -17.6 X-Spam_bar: ----------------- X-Spam_report: (-17.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5 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:270106 Archived-At: "T.V Raman" writes: Following up to myself before shutting down for the night: 1. '-f batch-byte-native-compile-for-bootstrap' gives me most of what I was looking for -- ie produces correctly built emacspeak eln files, and there are now no Warnings when running the resulting build. 2. Caveats: For a while I was lost as to where the .eln files were gone, to avoid confusion I cleaned up .emacs.d/eln-cache -- still couldn't find any emacspeak eln files after a fresh build. Turns out that calling the bootstrap builder puts the eln files in the emacs source tree -- this works for me for now since I am running native-emacs from the source tree -- but we may well need a better solution. I will still try and file bugs tomorrow as appropriate -- but the present "circularity " that forces me to use the bootstrap builder: A. batch-native-compile does not produce .elc files. B. This means that your Makefile %.el:%.elc rule wont work, if the elc files are present make wont do anything; if you delete the .elc files, the native compiler runs, but you dont have any .elc files so the package might not start up (emacspeak doesn't). C. going the bootstrap route also appears to avoid bugs where the native compiler is overly aggressive and tries to jit files that were earlier compiled via batch-native-compile. =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 > Stefan Monnier writes: > > I'll write up these as bug reports, now that I have a somewhat better > sense as to what it is I am reporting. > > At present, there appears to be a lot of "magic" in the bits around jit > compilation, when emacs decides to generate a new .eln file etc, which > makes it hard to discern a bug from a feature and consequently, phrasing > a sensible question is hard as these threads have demonstrated. > > Also, I suspect that filing a bug report would have caused folks looking > at it to "file a simple repro case", and that is something I > definitely wont be able to do given that I'm chasing this down with a > fairly large package as the use-case. > > > >> T.V Raman [2021-05-29 10:14:43] wrote: >>> Eli Zaretskii writes: >>> The warnings are inconsistent as in: >> >> Please, please, pretty please write this in a bug report. >> >> Or better yet, two bug reports: one for the case where you replace >> `batch-byte-compile` with `batch-native-compile`, and another for the >> case where native compilation takes place lazily. >> >> The "extra warnings" during lazy native compilation is a known problem, >> but one we need to address, so making a bug report about it will >> be helpful. >> >> The problems you mentioned when replacing `batch-byte-compile` with >> `batch-native-compile` OTOH are not known, AFAIK, so we really need >> a clear bug report with details of what you did, what that got you, and >> why you think it's wrong about that. >> >> >> Stefan >> >> --=20 Thanks, --Raman(I Search, I Find, I Misplace, I Research) =817=A94 Id: kg:/m/0285kf1 =950=DC8