Subject: bug#76523: 30.0.93; with-native-compilation=aot breaks some Lisp

From: Pip Cet <[email-masked]>
Date: Mon, 24 Feb 2025 18:31:32 +0000

"Stefan Kangas" <[email-masked]> writes:

> Pip Cet via "Bug reports for GNU Emacs, the Swiss army knife of text
> editors" <[email-masked]> writes:
>
>> "Spencer Baugh via \"Bug reports for GNU Emacs, the Swiss army knife of text editors\"" <[email-masked]> writes:
>>
>>> 1. cd ~/src/emacs/emacs-30
>>> 2. ./configure --without-all --without-x --with-zlib --with-native-compilation=aot && make -j64
>>> 3. ./src/emacs --batch --eval '(progn (require '\''package) (package-read-from-string "((emacs \"26.1\"))"))'
>>> 4. Observe this error:
>>> Error: error ("Can’t read whole string")
>>>   error("Can't read whole string")
>>>   package-read-from-string("((emacs \"26.1\"))")
>>>   (progn (require 'package) (package-read-from-string "((emacs \"26.1\"))"))
>>>   eval((progn (require 'package) (package-read-from-string "((emacs \"26.1\"))")) t)
>>>   command-line-1(("--eval" "(progn (require 'package) (package-read-from-string \"((emacs \\\"26.1\\\"))\"))"))
>>>   command-line()
>>>   normal-top-level()
>>> Can’t read whole string
>>
>> This is bug#63288, fixed on master but not on emacs-30, IIUC.  One
>> warkaround is not to pass "-j64" to make.
>>
>> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=63288
>
> Which commit fixes this on master?

53a5dada413662389a17c551a00d215e51f5049f
    Fix compilation errors due to insufficient compiler safety (bug#63288)

Pip