Trying to rebuild emacs 29.0.50 from source on GitHub mirror works well until start of emscd, which fails with
Loading loadup.el (source)... Dump mode: nil Using load-path (/Applications/Emacs.app/Contents/Resources/site-lisp /Applications/Emacs.app/Contents/Resources/lisp /Applications/Emacs.app/Contents/Resources/lisp/emacs-lisp /Applications/Emacs.app/Contents/Resources/lisp/progmodes /Applications/Emacs.app/Contents/Resources/lisp/language /Applications/Emacs.app/Contents/Resources/lisp/international /Applications/Emacs.app/Contents/Resources/lisp/textmodes /Applications/Emacs.app/Contents/Resources/lisp/vc) Loading emacs-lisp/debug-early... Symbol's function definition is void: file-name-sans-extension
In GNU Emacs 28.1 (build 1, aarch64-apple-darwin21.1.0, NS appkit-2113.00 Version 12.0.1 (Build 21A559)) of 2022-05-11 built on armbob.lan Windowing system distributor 'Apple', version 10.3.2113 System Description: macOS 12.5
Important settings: value of $LC_ALL: da_DK.UTF-8 value of $LANG: da_DK.UTF-8 locale-coding-system: utf-8-unix
Major mode: Messages
Minor modes in effect: gcmh-mode: t global-emojify-mode: t emojify-mode: t global-flycheck-mode: t which-key-mode: t doom-modeline-mode: t display-time-mode: t global-page-break-lines-mode: t dimmer-mode: t beacon-mode: t marginalia-mode: t shell-dirtrack-mode: t global-hl-line-mode: t global-display-line-numbers-mode: t display-line-numbers-mode: t ctrlf-mode: t ctrlf-local-mode: t xterm-mouse-mode: t ido-everywhere: t smartparens-global-mode: t windmove-mode: t savehist-mode: t dired-async-mode: t override-global-mode: t el-patch-use-package-mode: t straight-use-package-mode: t straight-package-neutering-mode: t straight-live-modifications-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t global-prettify-symbols-mode: t tab-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t context-menu-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t temp-buffer-resize-mode: t buffer-read-only: t column-number-mode: t line-number-mode: t global-visual-line-mode: t transient-mark-mode: t