Subject: bug#71775: 31.0.50; Symbol's function definition is void: file-name-sans-extension

From: Eli Zaretskii <[email-masked]>
Date: Tue, 25 Jun 2024 18:07:58 +0300

> From: Michael Welsh Duggan <[email-masked]>
> Date: Tue, 25 Jun 2024 10:12:12 -0400
> 
> 
> After building and installing from master, from an empty build
> directory, without the -j to make, I cannot run emacs from the installed
> binary.
> 
>     $ emacs -Q
>     Loading loadup.el (source)...
>     Dump mode: nil
>     Using load-path (/usr/local/share/emacs/31.0.50/site-lisp /usr/local/share/emacs/site-lisp /usr/local/share/emacs/31.0.50/lisp /usr/local/share/emacs/31.0.50/lisp/emacs-lisp /usr/local/share/emacs/31.0.50/lisp/progmodes /usr/local/share/emacs/31.0.50/lisp/language /usr/local/share/emacs/31.0.50/lisp/international /usr/local/share/emacs/31.0.50/lisp/textmodes /usr/local/share/emacs/31.0.50/lisp/vc)
>     Loading emacs-lisp/debug-early...
>     Symbol's function definition is void: file-name-sans-extension
> 
> This problem does not happen if I run emacs from its build directory.

This seems to indicate that Emacs can't find its pdumper file.  Is it
where it's supposed to be?  Are any of the installation directories
symlinks, perhaps?

Also, are you sure you cleaned up the source tree before building?
Suggest to try "git clean -fdx" or a fresh clone.