all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* origin/features/native-comp: Where do jitted .eln files  go?
@ 2020-08-24 19:52 T.V Raman
  2020-08-25  6:18 ` Andrea Corallo via Emacs development discussions.
  0 siblings, 1 reply; 8+ messages in thread
From: T.V Raman @ 2020-08-24 19:52 UTC (permalink / raw)
  To: emacs-devel

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


Hi Andrea and others on the native-branch:

I successfully built the native-comp branch and ran it --- as elisp libs
get loaded from my elpa/ directory etc, I see  Emacs saying that it's
native compiling those files -- however I have no idea where it places
those (I can see the .eln files in my Emacs build for the .el files that
come with Emacs).

Additional question: If I wanted to native-compile a given elisp
package, what elisp function should I call to do the native compile?

Finally: It wasn't obvious that doing the native compile requireds the
--with-zip flag to configure.

Thanks Andrea for the awesome work to get the native-comp branch to such
a mature state!
-- 
7©4Id: kg:/m/0285kf1  •0Ü87©4



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

* Re: origin/features/native-comp: Where do jitted .eln files  go?
  2020-08-24 19:52 origin/features/native-comp: Where do jitted .eln files go? T.V Raman
@ 2020-08-25  6:18 ` Andrea Corallo via Emacs development discussions.
  2020-08-25 15:23   ` Possible Race condition? " T.V Raman
       [not found]   ` <24394.59245.98750.79288@google.com>
  0 siblings, 2 replies; 8+ messages in thread
From: Andrea Corallo via Emacs development discussions. @ 2020-08-25  6:18 UTC (permalink / raw)
  To: T.V Raman; +Cc: emacs-devel

"T.V Raman" <raman@google.com> writes:

> Hi Andrea and others on the native-branch:
>
> I successfully built the native-comp branch and ran it --- as elisp libs
> get loaded from my elpa/ directory etc, I see  Emacs saying that it's
> native compiling those files -- however I have no idea where it places
> those (I can see the .eln files in my Emacs build for the .el files that
> come with Emacs).
>
> Additional question: If I wanted to native-compile a given elisp
> package, what elisp function should I call to do the native compile?

Hi Raman,

I believe the last update here https://akrl.sdf.org should answer your
questions on where the .eln are :)

The compilation for packages is supposed to happen automatically, but if
you really want to invoke the native compilation manually to compile AoT
a package you can still invoke something like:

(native-compile-async "~/.emacs.d/elpa/etcetc" 4 t)

> Finally: It wasn't obvious that doing the native compile requireds the
> --with-zip flag to configure.

Yeah that's a dependency introduced very recently (this weekend :), we
may remove it depending on what's the final strategy for hashing the the
eln filenames we decide to go for.

> Thanks Andrea for the awesome work to get the native-comp branch to such
> a mature state!

Glad you enjoy it!

Thanks

  Andrea

-- 
akrl@sdf.org



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

* Possible Race condition? Re: origin/features/native-comp: Where do jitted .eln files go?
  2020-08-25  6:18 ` Andrea Corallo via Emacs development discussions.
@ 2020-08-25 15:23   ` T.V Raman
  2020-08-25 19:53     ` Andrea Corallo via Emacs development discussions.
       [not found]   ` <24394.59245.98750.79288@google.com>
  1 sibling, 1 reply; 8+ messages in thread
From: T.V Raman @ 2020-08-25 15:23 UTC (permalink / raw)
  To: akrl; +Cc: raman, emacs-devel


Hi Andrea,

In my emacs startup, I load dired-x. In my customization settings, I
have dired-omit-mode in my dired-mode-hook.

Works fine with plain emacs, but throws this error in *Messages*
(starting with --debug-init does not produce a backtrace.

Symbol’s function definition is void: dired-omit-mode

Suspect some kind of race condition.
f
-- 
♉Id: kg:/m/0285kf1  🦮♉

--
♉Id: kg:/m/0285kf1  🦮♉



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

* Re: Possible Race condition? Re: origin/features/native-comp: Where do jitted .eln files go?
  2020-08-25 15:23   ` Possible Race condition? " T.V Raman
@ 2020-08-25 19:53     ` Andrea Corallo via Emacs development discussions.
  2020-08-25 20:19       ` T.V Raman
  0 siblings, 1 reply; 8+ messages in thread
From: Andrea Corallo via Emacs development discussions. @ 2020-08-25 19:53 UTC (permalink / raw)
  To: T.V Raman; +Cc: emacs-devel

"T.V Raman" <raman@google.com> writes:

> Hi Andrea,
>
> In my emacs startup, I load dired-x. In my customization settings, I
> have dired-omit-mode in my dired-mode-hook.
>
> Works fine with plain emacs, but throws this error in *Messages*
> (starting with --debug-init does not produce a backtrace.
>
> Symbol’s function definition is void: dired-omit-mode
>
> Suspect some kind of race condition.
> f

Hi Raman,

I'd bet more on some other kind of bug.  If you could isolate it and
open a bug with a reproducer would be appretiated.

Thanks!

  Andrea
  
-- 
akrl@sdf.org



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

* Re: Possible Race condition? Re: origin/features/native-comp: Where do jitted .eln files  go?
  2020-08-25 19:53     ` Andrea Corallo via Emacs development discussions.
@ 2020-08-25 20:19       ` T.V Raman
  2020-08-25 21:04         ` Andrea Corallo via Emacs development discussions.
  0 siblings, 1 reply; 8+ messages in thread
From: T.V Raman @ 2020-08-25 20:19 UTC (permalink / raw)
  To: akrl; +Cc: raman, emacs-devel

Any tips on how to isolate / produce  a bug trace? Note that
--debug-init did not produce a backgtrace Andrea Corallo writes:
 > "T.V Raman" <raman@google.com> writes:
 > 
 > > Hi Andrea,
 > >
 > > In my emacs startup, I load dired-x. In my customization settings, I
 > > have dired-omit-mode in my dired-mode-hook.
 > >
 > > Works fine with plain emacs, but throws this error in *Messages*
 > > (starting with --debug-init does not produce a backtrace.
 > >
 > > Symbol’s function definition is void: dired-omit-mode
 > >
 > > Suspect some kind of race condition.
 > > f
 > 
 > Hi Raman,
 > 
 > I'd bet more on some other kind of bug.  If you could isolate it and
 > open a bug with a reproducer would be appretiated.
 > 
 > Thanks!
 > 
 >   Andrea
 >   
 > -- 
 > akrl@sdf.org

-- 
♉Id: kg:/m/0285kf1  🦮♉

--
♉Id: kg:/m/0285kf1  🦮♉



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

* Re: Possible Race condition? Re: origin/features/native-comp: Where do jitted .eln files go?
  2020-08-25 20:19       ` T.V Raman
@ 2020-08-25 21:04         ` Andrea Corallo via Emacs development discussions.
  0 siblings, 0 replies; 8+ messages in thread
From: Andrea Corallo via Emacs development discussions. @ 2020-08-25 21:04 UTC (permalink / raw)
  To: T.V Raman; +Cc: emacs-devel

"T.V Raman" <raman@google.com> writes:

> Any tips on how to isolate / produce  a bug trace? Note that
> --debug-init did not produce a backgtrace Andrea Corallo writes:

Mmh sorry I've no smart suggestion here as I've never seen anything like
that.  I'd first look carefully if by chance there's something
interesting in *Messages* an then I'd probably try to understated what is
causing the issue in the .emacs commenting out stuffs by bisection.

If you get a minimal reproducer even if there's no backtrace I should be
able to reproduce it and look into it with gdb in the worst case.

  Andrea

-- 
akrl@sdf.org



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

* Re: origin/features/native-comp: Where do jitted .eln files  go?
       [not found]     ` <xjf8sdwzjov.fsf@sdf.org>
@ 2020-08-30 14:07       ` T.V Raman
  2020-08-30 20:33         ` Andrea Corallo via Emacs development discussions.
  0 siblings, 1 reply; 8+ messages in thread
From: T.V Raman @ 2020-08-30 14:07 UTC (permalink / raw)
  To: Andrea Corallo; +Cc: emacs-devel

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

Andrea Corallo <akrl@sdf.org> writes:


Thanks!
In the meantime:

I rebuilt the native-branch, blew away my .emacs.d/eln-cache, eliminated
 the error from dired-x (got rid of with-eval-after-load for that use
 case) and now 99% of emacspeak appears to work reliably in native-emacs
 --- still hunting down corner cases where it might be
 failing. Incidentally I got a segfault when I hit tab in the minibuffer
 while in vm (mail reader) haven't tracked it down yet > "T.V Raman" <raman@google.com> writes:
>
>> Hi Andrea,
>> Any plans to introduce a native equivalent of batch-byte-compile ---
>> might be useful in cases where  load order matters e.g. with heavy use
>> of defadvice 
>
> Hi Raman,
>
> We have `batch-native-compile',  ATM this is producing only the .eln
> files so also batch-byte-compile must be invoked but it should do the
> job.
>
> Regards
>
>   Andrea

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



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

* Re: origin/features/native-comp: Where do jitted .eln files  go?
  2020-08-30 14:07       ` T.V Raman
@ 2020-08-30 20:33         ` Andrea Corallo via Emacs development discussions.
  0 siblings, 0 replies; 8+ messages in thread
From: Andrea Corallo via Emacs development discussions. @ 2020-08-30 20:33 UTC (permalink / raw)
  To: T.V Raman; +Cc: emacs-devel

"T.V Raman" <raman@google.com> writes:

> I rebuilt the native-branch, blew away my .emacs.d/eln-cache, eliminated
>  the error from dired-x (got rid of with-eval-after-load for that use
>  case) and now 99% of emacspeak appears to work reliably in
>  native-emacs

Sounds great!

You should also be able to use with-eval-after-load now as its fixed
(bug#43089).

>  --- still hunting down corner cases where it might be
>  failing. Incidentally I got a segfault when I hit tab in the minibuffer
>  while in vm (mail reader) haven't tracked it down yet > "T.V Raman"
>  <raman@google.com>

I don't see a segfault on my system since a long time, if you manage to
make it reproducible would be certainly interesting.

Thanks

  Andrea



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

end of thread, other threads:[~2020-08-30 20:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-24 19:52 origin/features/native-comp: Where do jitted .eln files go? T.V Raman
2020-08-25  6:18 ` Andrea Corallo via Emacs development discussions.
2020-08-25 15:23   ` Possible Race condition? " T.V Raman
2020-08-25 19:53     ` Andrea Corallo via Emacs development discussions.
2020-08-25 20:19       ` T.V Raman
2020-08-25 21:04         ` Andrea Corallo via Emacs development discussions.
     [not found]   ` <24394.59245.98750.79288@google.com>
     [not found]     ` <xjf8sdwzjov.fsf@sdf.org>
2020-08-30 14:07       ` T.V Raman
2020-08-30 20:33         ` Andrea Corallo via Emacs development discussions.

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.