On Thu, Oct 1, 2015 at 11:01 PM, Eli Zaretskii <eliz@gnu.org> wrote:

> I guess the only way forward is to debug the failure.  If you invoke
> the command that fails manually, does it fail in the same way?

Yes. 

$ LC_ALL=C ./temacs -batch -l loadup dump
Loading loadup.el (source)...
Using load-path (c:/Devel/emacs/repo/trunk/lisp)
Loading emacs-lisp/byte-run (source)...
Loading emacs-lisp/backquote (source)...
Loading subr (source)...
Loading version (source)...
Loading widget (source)...
Loading custom (source)...
Loading emacs-lisp/map-ynp (source)...
Loading international/mule (source)...
Loading international/mule-conf (source)...
Loading env (source)...
Loading format (source)...
Loading bindings (source)...
Loading window (source)...
Loading files.el (source)...
Loading emacs-lisp/macroexp...
Loading cus-face.el (source)...
Loading faces.el (source)...
Loading button.el (source)...
Loading loaddefs.el (source)...
Growing hash table to: 105000
Loading emacs-lisp/nadvice.el (source)...
Eager macro-expansion failure: (error "Attempt to autoload gv--defun-declaration while preparing to dump")
Eager macro-expansion failure: (error "Attempt to autoload gv--defun-declaration while preparing to dump")
Attempt to autoload gv--defun-declaration while preparing to dump