all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tom Gillespie <tgbugs@gmail.com>
To: Andrea Corallo <akrl@sdf.org>
Cc: 43190@debbugs.gnu.org
Subject: bug#43190: feature/native-comp; failure to compile json-mode leaves Emacs broken
Date: Fri, 18 Sep 2020 22:42:20 -0400	[thread overview]
Message-ID: <CA+G3_PM69MRaanLj3F8JkGVgRREhgCCOEevNKuG-_m-Rs=r47w@mail.gmail.com> (raw)
In-Reply-To: <xjfo8m2q46v.fsf@sdf.org>

I think we are ok to close. If a similar issue shows up in the future
we will have this as a reference. Best!
Tom

On Fri, Sep 18, 2020 at 3:23 PM Andrea Corallo <akrl@sdf.org> wrote:
>
> Hi Tom,
>
> Tom Gillespie <tgbugs@gmail.com> writes:
>
> > Hi Andrea,
> >     Having poked about a bit more I agree. I don't think it has
> > anything to do with the native compilation directly. I suspect that it
> > has to do with how or exactly when the native compiled code is swapped
> > in. When byte compiling on the command line I get an error at the same
> > place that I get one when native compiling stating that json-snatcher
> > could not be required.
>
> As I mentioned what you have seen is 99% due to the fact that the
> compiled package is missing to require some feature explicitly.  For
> some reason this feature in a interactive session in loaded and the
> byte-compiler is able to compile without complaining of this missing
> definition.  The native compiler is picky as the byte compiler invoked
> in the command line (actually because the byte-compiler is its
> front-end).
>
> If for example the native compiler compiles a file using a macro but
> this is not defined it will assume this is a function.  As a result the
> produced code is wrong and once loaded will not behave correctly.
>
> If a require is missing the code is not correct and we cannot garantee
> to compile such a code correctly, as the package has been fixed and
> there's no evidence of a native compiler bug I'd be for closing this bug
> :)
>
>   Andrea





  reply	other threads:[~2020-09-19  2:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-04  1:06 bug#43190: feature/native-comp; failure to compile json-mode leaves Emacs broken Tom Gillespie
2020-09-04  7:56 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-09-17 17:49   ` Tom Gillespie
2020-09-18 19:23     ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-09-19  2:42       ` Tom Gillespie [this message]
2020-09-19  6:38         ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+G3_PM69MRaanLj3F8JkGVgRREhgCCOEevNKuG-_m-Rs=r47w@mail.gmail.com' \
    --to=tgbugs@gmail.com \
    --cc=43190@debbugs.gnu.org \
    --cc=akrl@sdf.org \
    /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 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.