GNU bug report logs -
#43190
feature/native-comp; failure to compile json-mode leaves Emacs broken
Previous Next
Reported by: Tom Gillespie <tgbugs <at> gmail.com>
Date: Fri, 4 Sep 2020 01:07:02 UTC
Severity: normal
Done: Andrea Corallo <akrl <at> sdf.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
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 <at> sdf.org> wrote:
>
> Hi Tom,
>
> Tom Gillespie <tgbugs <at> 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
This bug report was last modified 4 years and 249 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.