From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#45303: #45303 [feature/native-comp] building error on Windows Date: Tue, 22 Dec 2020 08:47:20 +0000 Message-ID: References: <83k0te6c7i.fsf@gnu.org> <86y2hqzsil.fsf@gmail.com> Reply-To: Andrea Corallo Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11088"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 45303@debbugs.gnu.org To: Andy Moreton Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 22 09:48:22 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1krdLB-0002kl-CH for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 22 Dec 2020 09:48:21 +0100 Original-Received: from localhost ([::1]:35584 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1krdLA-0002yP-FH for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 22 Dec 2020 03:48:20 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43764) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krdKs-0002y1-IV for bug-gnu-emacs@gnu.org; Tue, 22 Dec 2020 03:48:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37357) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1krdKs-0007EW-B3 for bug-gnu-emacs@gnu.org; Tue, 22 Dec 2020 03:48:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1krdKs-0001yH-8V for bug-gnu-emacs@gnu.org; Tue, 22 Dec 2020 03:48:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 22 Dec 2020 08:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45303 X-GNU-PR-Package: emacs Original-Received: via spool by 45303-submit@debbugs.gnu.org id=B45303.16086268497516 (code B ref 45303); Tue, 22 Dec 2020 08:48:02 +0000 Original-Received: (at 45303) by debbugs.gnu.org; 22 Dec 2020 08:47:29 +0000 Original-Received: from localhost ([127.0.0.1]:48903 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1krdKK-0001x9-MQ for submit@debbugs.gnu.org; Tue, 22 Dec 2020 03:47:29 -0500 Original-Received: from mx.sdf.org ([205.166.94.24]:52837) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1krdKG-0001wq-63 for 45303@debbugs.gnu.org; Tue, 22 Dec 2020 03:47:27 -0500 Original-Received: from mab (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTP id 0BM8lKft011184; Tue, 22 Dec 2020 08:47:20 GMT In-Reply-To: <86y2hqzsil.fsf@gmail.com> (Andy Moreton's message of "Mon, 21 Dec 2020 22:46:58 +0000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:196563 Archived-At: Andy Moreton writes: > On Mon 21 Dec 2020, Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" wrote: > >> Pal Gloss writes: >> >>>> There are still problems related to the usage of Fdirectory_files and >>>> internal_condition_case_5 I think. At least, I get a crash after the >>>> bootstrap is dumped (? see attached build log) >>>> >>>> Debugger entered--Lisp error: (wrong-type-argument wholenump t) >>> >>> Despite 2526032ea954671aa48a6ad6d924df2941a8364a, this error still happens: >>> Qt and Qnil should be swapped (see sed script at the bottom of the mail >>> inside my build commands or the git diff in the build log). >> >> Hi Pal thanks for trying. >> >> I don't like to run or decript scripts, I like to review and apply >> patches from contributors, why don't you submit one for this? :) > > The fix needed here is another tweak to eln_load_path_final_clean_up: > the arguments for internal_condition_case_5 should end "Qnil, Qt, > return_nil". After fixing that then a bootstrap build completes without > crashes. I'm sorry this week I'm rather busy progressing on new features plus I cannot test Windows patches and this makes it very time consuming. As I've said more then once on this thread: patches are welcome. > Other issues noted when running the uninstalled emacs from build dir: I think these are off topic for this thread but quickly: > a) The ELN compile step is very slow during bootstrap. On my machine make bootstrap is ~2.5x slower than vanilla build. > b) The built emacs will run uninstalled (i.e. directly from the build > tree), but is almost unusable as the async ELN compile make emacs > very unresponsive to input. You can customize `comp-async-jobs-number'. The default works well on most systems but probably is not optimal for your machine. > c) The .eln files for a few core .el files are built in: > /native-lisp/--/*.eln > > The async compile puts .eln files in: > $HOME/.emacs.d/eln-cache/--/*.eln > > Q1: Why are the compiled files not added to builddir/lisp-native ? > Q2: Why are the directory and filenames so long ? > Q3: Why are the directory names different ? > This needs a heirarchy of files named after a hash of their content. > This problem has been solved by git, mercurial etc, and it would be > better to use a similar layout, and learn lessons from those tools > for how to do so efficiently. Are you asking at the same time how the current system works and suggesting how it should? > Q4: Why are the lisp files not *all* precompiled as part of the > build ? make bootstrap NATIVE_FULL_AOT=1 > Q5: What can be done to improve the slow compile time ? I've never had the time to optimize the Lisp side of the compiler, last week I did some profiling and made an idea on where and how to take action. I'll be on that in the new year, the current one has been mostly on debug and integration. > Q6: Why are the built files so large ? If you want a more compact representation of the code byte-code is probably a better format than native code. Andrea