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
Hi Tom,
thanks for the detailed report.
Tom Gillespie <tgbugs <at> gmail.com> writes:
> While this is clearly a bug in the way that json-snatcher is written
> (the symbol should never have been added to the hook before the
> function was defined), it is only causing an issue with the new native
> comp code.
had no time to reproduce but to a very first look I'm quite unconvinced
this is a native-comp bug. I think you'd get the same exact error
byte-compiling the file from shell using a vanilla Emacs.
The fact is that native async compilations are child processes so they
start with a clean environment. This makes the native compiler a little
more picky on bugs when the compilation is relaying silently on some
definition sneaked in from the environment.
This lead already to a number of packages to fix their requires.
The proof is typically trying to byte-compile from shell, this give
systematically the same error, this because the front-end of the native
compiler *is* the byte-compiler :)
Each compilation unit should be consistent and compilable autonomously
without relaying on previous modifications of the environment.
Thanks
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.