From: Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Andy Moreton <andrewjmoreton@gmail.com>
Cc: 45303@debbugs.gnu.org
Subject: bug#45303: #45303 [feature/native-comp] building error on Windows
Date: Tue, 22 Dec 2020 08:47:20 +0000 [thread overview]
Message-ID: <xjfim8uteg7.fsf@sdf.org> (raw)
In-Reply-To: <86y2hqzsil.fsf@gmail.com> (Andy Moreton's message of "Mon, 21 Dec 2020 22:46:58 +0000")
Andy Moreton <andrewjmoreton@gmail.com> writes:
> On Mon 21 Dec 2020, Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" wrote:
>
>> Pal Gloss <pcfeb0009@gmx.com> 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'.
<http://akrl.sdf.org/gccemacs.html#org73a9089>
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:
> <builddir>/native-lisp/<version>-<target>-<hash>/*.eln
>
> The async compile puts .eln files in:
> $HOME/.emacs.d/eln-cache/<version>-<target>-<hash>/*.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 ?
<https://lists.gnu.org/archive/html/emacs-devel/2020-05/msg02186.html>
<http://akrl.sdf.org/gccemacs.html#org71a8de5>
> 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
<http://akrl.sdf.org/gccemacs.html#orgdb45946>
<http://akrl.sdf.org/gccemacs.html#orga0c267d>
> 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
next prev parent reply other threads:[~2020-12-22 8:47 UTC|newest]
Thread overview: 75+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-17 20:20 bug#45303: 28.0.50; [feature/native-comp] comp.c compilation error on Windows 10 =?UTF-8?Q?Li=C4=81u, _?= Kiong-Gē 廖宮毅
2020-12-17 20:31 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-12-17 20:33 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-12-17 20:41 ` =?UTF-8?Q?Li=C4=81u, _?= Kiong-Gē 廖宮毅
2020-12-17 20:57 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-12-17 21:02 ` Eli Zaretskii
2020-12-17 21:10 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-12-17 21:27 ` =?UTF-8?Q?Li=C4=81u, _?= Kiong-Gē 廖宮毅
2020-12-17 21:41 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-12-18 13:28 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-12-18 16:06 ` Eli Zaretskii
2020-12-18 16:37 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-12-18 19:35 ` =?UTF-8?Q?Li=C4=81u, _?= Kiong-Gē 廖宮毅
2020-12-18 21:26 ` Eli Zaretskii
2020-12-19 0:57 ` =?UTF-8?Q?Li=C4=81u, _?= Kiong-Gē 廖宮毅
2020-12-19 5:38 ` =?UTF-8?Q?Li=C4=81u, _?= Kiong-Gē 廖宮毅
2020-12-19 8:04 ` Eli Zaretskii
2020-12-18 19:40 ` =?UTF-8?Q?Li=C4=81u, _?= Kiong-Gē 廖宮毅
2020-12-18 20:49 ` Eli Zaretskii
2020-12-21 9:48 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-12-19 17:56 ` =?UTF-8?Q?Li=C4=81u, _?= Kiong-Gē 廖宮毅
2020-12-18 11:13 ` bug#45303: #45303 [feature/native-comp] building error on Windows Pal Gloss
2020-12-18 16:02 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-12-18 21:22 ` Eli Zaretskii
2020-12-18 22:21 ` Pal Gloss
2020-12-19 7:57 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-12-19 14:35 ` Andy Moreton
2020-12-19 16:15 ` Eli Zaretskii
2020-12-19 17:15 ` Andy Moreton
2020-12-19 17:37 ` Eli Zaretskii
2020-12-19 21:39 ` Andy Moreton
2020-12-19 18:07 ` Pal Gloss
2020-12-19 20:40 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-12-20 11:22 ` Andy Moreton
2020-12-20 18:58 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-12-20 19:11 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-12-21 0:53 ` Andy Moreton
2020-12-21 8:02 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-12-21 8:09 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-12-21 17:41 ` Andy Moreton
2020-12-20 16:23 ` Pal Gloss
2020-12-20 19:07 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-12-21 10:10 ` Pal Gloss
2020-12-21 12:08 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-12-21 22:46 ` Andy Moreton
2020-12-22 8:47 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2020-12-22 19:41 ` Andy Moreton
2020-12-21 16:21 ` Eli Zaretskii
2020-12-18 22:25 ` Pal Gloss
2020-12-19 19:08 ` bug#45303: #45303 [feature/native-comp] building error on Windows ... strsignal in msys2/mingw64 Pal Gloss
2020-12-19 19:29 ` Eli Zaretskii
2020-12-20 16:15 ` Pal Gloss
2020-12-19 23:04 ` bug#45303: 28.0.50; [feature/native-comp] comp.c compilation error on Windows 10 =?UTF-8?Q?Li=C4=81u, _?= Kiong-Gē 廖宮毅
2020-12-20 2:31 ` =?UTF-8?Q?Li=C4=81u, _?= Kiong-Gē 廖宮毅
2020-12-20 8:38 ` Michael Albinus
2020-12-20 9:49 ` =?UTF-8?Q?Li=C4=81u, _?= Kiong-Gē 廖宮毅
2020-12-20 19:10 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-12-20 19:46 ` =?UTF-8?Q?Li=C4=81u, _?= Kiong-Gē 廖宮毅
2020-12-20 20:04 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-12-20 16:32 ` =?UTF-8?Q?Li=C4=81u, _?= Kiong-Gē 廖宮毅
2020-12-21 18:02 ` =?UTF-8?Q?Li=C4=81u, _?= Kiong-Gē 廖宮毅
2020-12-22 15:47 ` bug#45303: #45303 [feature/native-comp] building error on Windows gliao.tw--- via
2020-12-22 19:15 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-12-22 19:48 ` gliao.tw--- via
2020-12-22 20:09 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-12-22 20:15 ` gliao.tw--- via
2020-12-22 20:21 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-12-22 20:39 ` Eli Zaretskii
2020-12-23 7:01 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-12-26 14:02 ` edouard debry
2020-12-26 14:24 ` Eli Zaretskii
2020-12-26 14:58 ` edouard debry
2020-12-26 15:12 ` Eli Zaretskii
2021-01-06 20:37 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-12-22 19:46 ` Andy Moreton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xjfim8uteg7.fsf@sdf.org \
--to=bug-gnu-emacs@gnu.org \
--cc=45303@debbugs.gnu.org \
--cc=akrl@sdf.org \
--cc=andrewjmoreton@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).