unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Alan Mackenzie <acm@muc.de>
Cc: emacs-devel@gnu.org
Subject: Re: What does "Changing `byte-compile-dest-file'" mean?
Date: Tue, 22 Feb 2022 16:13:01 -0500	[thread overview]
Message-ID: <jwv5yp6fw6h.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <YhVF+trshSxjNxDQ@ACM> (Alan Mackenzie's message of "Tue, 22 Feb 2022 20:22:18 +0000")

> I'm trying to debug a failing bootstrap.  Central to the failure is the
> error message:
>
>     "Changing `byte-compile-dest-file' is obsolete (as of 23.2);
>     set `byte-compile-dest-file-function' instead."
>
> ..  The error message comes from emacs-lisp/bytecomp.el L. 171.

Hmmm... my crystal ball suggests that your bootstrap ends up loading
`bytecomp` recursively, i.e. a first load of `bytecomp` defines
`byte-compile-dest-file` and then before reaching the end of the file,
it recursive tries to load `bytecomp`, causing the warning to be emitted
(because the function is already defined by (featurep 'bytecomp) is
still nil).

> But what does it mean?  In what respect is byte-compile-dest-file being
> changed?

It's about to be redefined by the subsequent `defun`.  That function
used to be considered as something that tools/users were allowed to
redefine locally in order to save .elc files elsewhere than their
standard location.  This practice was made obsolete by introducing
`byte-compile-dest-file-function` instead.

The warning you're seeing should arguably be removed now.
Tho I don't know if it will solve your underlying problem.

> Just that it might have something to do with early versions of
> automake.  (Which we don't use, do we?)

Not anymore, no, indeed.


        Stefan




      reply	other threads:[~2022-02-22 21:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-22 20:22 What does "Changing `byte-compile-dest-file'" mean? Alan Mackenzie
2022-02-22 21:13 ` Stefan Monnier [this message]

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=jwv5yp6fw6h.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=acm@muc.de \
    --cc=emacs-devel@gnu.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).