GNU bug report logs - #63288
30.0.50; Emacs 30 packages fail to build with native comp on some machines

Previous Next

Package: emacs;

Reported by: Brian Leung <leungbk <at> posteo.net>

Date: Fri, 5 May 2023 04:00:02 UTC

Severity: normal

Found in version 30.0.50

Done: Pip Cet <pipcet <at> protonmail.com>

Bug is archived. No further changes may be made.

Full log


Message #122 received at 63288 <at> debbugs.gnu.org (full text, mbox):

From: "Basil L. Contovounesios" <basil <at> contovou.net>
To: Pip Cet <pipcet <at> protonmail.com>
Cc: damien <at> merenne.me, Eli Zaretskii <eliz <at> gnu.org>, acorallo <at> gnu.org,
 Stefan Monnier <monnier <at> iro.umontreal.ca>, 63288 <at> debbugs.gnu.org
Subject: Re: bug#63288: 30.0.50; Emacs 30 packages fail to build with native
 comp on some machines
Date: Wed, 19 Feb 2025 22:34:34 +0100
Pip Cet [2025-02-19 20:06 +0000] wrote:
> "Basil L. Contovounesios" <basil <at> contovou.net> writes:
>> Pip Cet [2025-02-17 15:16 +0000] wrote:
>>> "Stefan Monnier" <monnier <at> iro.umontreal.ca> writes:
>>>
>>>> For the case at hand, I think a better option is to add keyword
>>>> arguments to `cl-defstruct` to control whether accessors need to check
>>>> the type of their arg.
>>
>>> That makes sense to me. Setting byte-compile-delete-errors means you
>>> cannot compile any "normal" Elisp code, not just skipped type checks.
>>> It's -Ofast, not -DNDEBUG; you should never use the former, only the
>>> latter.
>>
>> Does setting byte-compile-delete-errors actually have the same effect?
>> I couldn't get it to behave like (cl-declaim (optimize (safety 0)))
>> for cl-defstruct accessors.
>
> I'm not sure I understand.  byte-compile-delete-errors will cause the
> compilation errors described, but I don't think it would change the code
> generated by cl-defstruct....

Then I misunderstood your message, sorry.

[ You mentioned byte-compile-delete-errors in a reply to cl-defstruct
  accessors, and the 'optimize' entry under (info "(cl) Declarations")
  ties b-c-d-e to the 'safety' quality, which is the same quality which
  affects cl-defstruct accessor generation, so I assumed the same link
  in your reply. ]

-- 
Basil




This bug report was last modified 132 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.