Subject: Re: bug#57309: 29.0.50; Build error "trying to dump non fixed-up eln file"

From: Gerd Möllmann <[email-masked]>
Date: Sun, 21 Aug 2022 15:39:25 +0200

Gerd Möllmann <[email-masked]> writes:

> Two more tries, and it doesn't want to stop there.

And with this in loadup.el

diff --git a/lisp/loadup.el b/lisp/loadup.el
index 634a331436..ded700a671 100644
--- a/lisp/loadup.el
+++ b/lisp/loadup.el
@@ -473,6 +473,7 @@
 ;; At this point, we're ready to resume undo recording for scratch.
 (buffer-enable-undo "*scratch*")
 
+(message "XXX")
 (when (featurep 'native-compile)
   ;; Fix the compilation unit filename to have it working when
   ;; installed or if the source directory got moved.  This is set to be
@@ -480,7 +481,9 @@
   ;;     (rel-filename-from-install-bin . rel-filename-from-local-bin).
   (let ((bin-dest-dir (cadr (member "--bin-dest" command-line-args)))
         (eln-dest-dir (cadr (member "--eln-dest" command-line-args))))
+    (message "AAA %s %s" bin-dest-dir eln-dest-dir)
     (when (and bin-dest-dir eln-dest-dir)
+      (message "BBB")
       (setq eln-dest-dir
             (concat eln-dest-dir "native-lisp/" comp-native-version-dir "/"))
       (maphash (lambda (_ cu)
@@ -492,6 +495,7 @@
                                               (expand-file-name "preloaded"
                                                                 eln-dest-dir)
                                             eln-dest-dir)))
+                   (message "native-comp-set-file %s" file)
                    (native-comp-unit-set-file
                     cu
 	            (cons

I see

Loading leim/leim-list.el (source)...
Loading emacs-lisp/rmc (native compiled elisp)...
Waiting for git...
Waiting for git...
Finding pointers to doc strings...
Finding pointers to doc strings...done
XXX
AAA --eln-dest nil
Pure-hashed: 14904 strings, 1759 vectors, 46342 conses, 1091 bytecodes, 348 others
Dumping under the name emacs.pdmp

I guess we're almost there :-).

The temacs call in my original bug report looked like

rm -f emacs && cp -f temacs emacs
LC_ALL=C ./temacs -batch  -l loadup --temacs=pdump \
		--bin-dest  --eln-dest 
Loading loadup.el (source)...
Dump mode: pdump

Note that --bin-dest and --eln-dest have no arguments.