unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Native compile: excessive recompilation?
@ 2021-05-17 19:05 Michael Welsh Duggan
  2021-05-17 19:27 ` Andrea Corallo via Emacs development discussions.
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Michael Welsh Duggan @ 2021-05-17 19:05 UTC (permalink / raw)
  To: emacs-devel

I, from scratch, built Emacs with native compilation and built and
installed using NATIVE_FULL_AOT=1.  There is indeed a
/usr/local/lib/emacs/28.0.50/native-lisp dir with a directory that
contains the natively-compiled files.  However, if I start emacs, even
with -Q, from a fresh user, files get compiled and put into the user
native compilation cache (~/.emacs.d/eln-cache/...).  Has anyone else
noticed this?  Or have I just made a mistake somewhere when testing
this?  

If I use emacs -Q and do `C-h i', I get compilations for the following
files:

bytecomp-12882072-ffdd30ae.eln  comp-cstr-ef162ef7-c492cd97.eln
byte-opt-9c5f25f5-b7c94b77.eln  gv-e0cf7478-eac584a4.eln
cconv-3b1f1f98-ac4628a4.eln     help-mode-d4dbae3d-034e8cf5.eln
cl-extra-d7051cba-ff815ded.eln  info-ce12c0ca-3d2b00fd.eln
cl-lib-8b938900-fbcee53d.eln    rx-627d8c83-18b6598f.eln
cl-macs-7ae82f81-d9748b96.eln   seq-c314b42f-4e726806.eln
cl-seq-f464c4e2-95d0eb23.eln    subr-x-02dfef32-04f2924b.eln
comp-7672a6ed-56d0b5ab.eln      warnings-28e75f4d-c98d4e00.eln

I would have thought that it would use the ones in
/usr/local/lib/emacs/28.0.50/native-lisp instead of recompiling them?
If it can be confirmed that this is a bug, I'll submit a proper bug
report.

-- 
Michael Welsh Duggan
(md5i@md5i.com)



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Native compile: excessive recompilation?
  2021-05-17 19:05 Native compile: excessive recompilation? Michael Welsh Duggan
@ 2021-05-17 19:27 ` Andrea Corallo via Emacs development discussions.
  2021-05-18 13:27   ` Michael Welsh Duggan
  2021-05-17 19:37 ` Eli Zaretskii
  2021-05-17 20:22 ` T.V Raman
  2 siblings, 1 reply; 5+ messages in thread
From: Andrea Corallo via Emacs development discussions. @ 2021-05-17 19:27 UTC (permalink / raw)
  To: Michael Welsh Duggan; +Cc: emacs-devel

Michael Welsh Duggan <mwd@md5i.com> writes:

> I, from scratch, built Emacs with native compilation and built and
> installed using NATIVE_FULL_AOT=1.  There is indeed a
> /usr/local/lib/emacs/28.0.50/native-lisp dir with a directory that
> contains the natively-compiled files.  However, if I start emacs, even
> with -Q, from a fresh user, files get compiled and put into the user
> native compilation cache (~/.emacs.d/eln-cache/...).  Has anyone else
> noticed this?  Or have I just made a mistake somewhere when testing
> this?  
>
> If I use emacs -Q and do `C-h i', I get compilations for the following
> files:
>
> bytecomp-12882072-ffdd30ae.eln  comp-cstr-ef162ef7-c492cd97.eln
> byte-opt-9c5f25f5-b7c94b77.eln  gv-e0cf7478-eac584a4.eln
> cconv-3b1f1f98-ac4628a4.eln     help-mode-d4dbae3d-034e8cf5.eln
> cl-extra-d7051cba-ff815ded.eln  info-ce12c0ca-3d2b00fd.eln
> cl-lib-8b938900-fbcee53d.eln    rx-627d8c83-18b6598f.eln
> cl-macs-7ae82f81-d9748b96.eln   seq-c314b42f-4e726806.eln
> cl-seq-f464c4e2-95d0eb23.eln    subr-x-02dfef32-04f2924b.eln
> comp-7672a6ed-56d0b5ab.eln      warnings-28e75f4d-c98d4e00.eln
>
> I would have thought that it would use the ones in
> /usr/local/lib/emacs/28.0.50/native-lisp instead of recompiling them?
> If it can be confirmed that this is a bug, I'll submit a proper bug
> report.

Hi Michael,

please open bug with M-x report-emacs-bug so we more details on your
build and we can handle the bug in the bug tracker.

Thanks

  Andrea



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Native compile: excessive recompilation?
  2021-05-17 19:05 Native compile: excessive recompilation? Michael Welsh Duggan
  2021-05-17 19:27 ` Andrea Corallo via Emacs development discussions.
@ 2021-05-17 19:37 ` Eli Zaretskii
  2021-05-17 20:22 ` T.V Raman
  2 siblings, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2021-05-17 19:37 UTC (permalink / raw)
  To: Michael Welsh Duggan; +Cc: emacs-devel

> From: Michael Welsh Duggan <mwd@md5i.com>
> Date: Mon, 17 May 2021 15:05:06 -0400
> 
> I, from scratch, built Emacs with native compilation and built and
> installed using NATIVE_FULL_AOT=1.  There is indeed a
> /usr/local/lib/emacs/28.0.50/native-lisp dir with a directory that
> contains the natively-compiled files.  However, if I start emacs, even
> with -Q, from a fresh user, files get compiled and put into the user
> native compilation cache (~/.emacs.d/eln-cache/...).  Has anyone else
> noticed this?  Or have I just made a mistake somewhere when testing
> this?  
> 
> If I use emacs -Q and do `C-h i', I get compilations for the following
> files:
> 
> bytecomp-12882072-ffdd30ae.eln  comp-cstr-ef162ef7-c492cd97.eln
> byte-opt-9c5f25f5-b7c94b77.eln  gv-e0cf7478-eac584a4.eln
> cconv-3b1f1f98-ac4628a4.eln     help-mode-d4dbae3d-034e8cf5.eln
> cl-extra-d7051cba-ff815ded.eln  info-ce12c0ca-3d2b00fd.eln
> cl-lib-8b938900-fbcee53d.eln    rx-627d8c83-18b6598f.eln
> cl-macs-7ae82f81-d9748b96.eln   seq-c314b42f-4e726806.eln
> cl-seq-f464c4e2-95d0eb23.eln    subr-x-02dfef32-04f2924b.eln
> comp-7672a6ed-56d0b5ab.eln      warnings-28e75f4d-c98d4e00.eln
> 
> I would have thought that it would use the ones in
> /usr/local/lib/emacs/28.0.50/native-lisp instead of recompiling them?

It could be because the abi-hash was modified due to changes elsewhere
in Emacs (e.g., addition of new primitives).  Did Emacs create a new
subdirectory in ~/.emacs.d/eln-cache?

> If it can be confirmed that this is a bug, I'll submit a proper bug
> report.

Yes, a bug report would be good.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Native compile: excessive recompilation?
  2021-05-17 19:05 Native compile: excessive recompilation? Michael Welsh Duggan
  2021-05-17 19:27 ` Andrea Corallo via Emacs development discussions.
  2021-05-17 19:37 ` Eli Zaretskii
@ 2021-05-17 20:22 ` T.V Raman
  2 siblings, 0 replies; 5+ messages in thread
From: T.V Raman @ 2021-05-17 20:22 UTC (permalink / raw)
  To: Michael Welsh Duggan; +Cc: emacs-devel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb18030, Size: 1688 bytes --]

Michael Welsh Duggan <mwd@md5i.com> writes:

1+, see the message I just sent in response to another thread with
Andrea.

What I also notice is that if I batch-byte-compile all of emacspeak
(with no other native-emacs running, then start native-emacs --
emacspeak modules still get recompiled at random times

> I, from scratch, built Emacs with native compilation and built and
> installed using NATIVE_FULL_AOT=1.  There is indeed a
> /usr/local/lib/emacs/28.0.50/native-lisp dir with a directory that
> contains the natively-compiled files.  However, if I start emacs, even
> with -Q, from a fresh user, files get compiled and put into the user
> native compilation cache (~/.emacs.d/eln-cache/...).  Has anyone else
> noticed this?  Or have I just made a mistake somewhere when testing
> this?  
>
> If I use emacs -Q and do `C-h i', I get compilations for the following
> files:
>
> bytecomp-12882072-ffdd30ae.eln  comp-cstr-ef162ef7-c492cd97.eln
> byte-opt-9c5f25f5-b7c94b77.eln  gv-e0cf7478-eac584a4.eln
> cconv-3b1f1f98-ac4628a4.eln     help-mode-d4dbae3d-034e8cf5.eln
> cl-extra-d7051cba-ff815ded.eln  info-ce12c0ca-3d2b00fd.eln
> cl-lib-8b938900-fbcee53d.eln    rx-627d8c83-18b6598f.eln
> cl-macs-7ae82f81-d9748b96.eln   seq-c314b42f-4e726806.eln
> cl-seq-f464c4e2-95d0eb23.eln    subr-x-02dfef32-04f2924b.eln
> comp-7672a6ed-56d0b5ab.eln      warnings-28e75f4d-c98d4e00.eln
>
> I would have thought that it would use the ones in
> /usr/local/lib/emacs/28.0.50/native-lisp instead of recompiling them?
> If it can be confirmed that this is a bug, I'll submit a proper bug
> report.

-- 

Thanks,

--Raman
7©4 Id: kg:/m/0285kf1  •0Ü8



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Native compile: excessive recompilation?
  2021-05-17 19:27 ` Andrea Corallo via Emacs development discussions.
@ 2021-05-18 13:27   ` Michael Welsh Duggan
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Welsh Duggan @ 2021-05-18 13:27 UTC (permalink / raw)
  To: emacs-devel

Andrea Corallo <akrl@sdf.org> writes:

> please open bug with M-x report-emacs-bug so we more details on your
> build and we can handle the bug in the bug tracker.

Sent.  Bug #48497.

-- 
Michael Welsh Duggan
(md5i@md5i.com)



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-05-18 13:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-17 19:05 Native compile: excessive recompilation? Michael Welsh Duggan
2021-05-17 19:27 ` Andrea Corallo via Emacs development discussions.
2021-05-18 13:27   ` Michael Welsh Duggan
2021-05-17 19:37 ` Eli Zaretskii
2021-05-17 20:22 ` T.V Raman

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).