Subject: bug#18359: Macro expansion failure [MSYS2-MinGW64]

From: Eli Zaretskii <[email-masked]>
Date: Sat, 30 Aug 2014 19:37:02 +0300

> Date: Sat, 30 Aug 2014 18:15:29 +0200
> From: Angelo Graziosi <[email-masked]>
> CC: [email-masked]
> 
> If I build in a source tree created with,
> 
> $ bzr checkout --lightweight http://bzr.savannah.gnu.org/r/emacs/trunk emacs
> 
> the build fails :
> 
> [...]
> Making generated-autoload-file local to  *autoload-file* while let-bound!
> Generating autoloads for dired-aux.el...
> Loading macroexp.elc...
> make[2]: ingresso nella directory "/tmp/emacs/lisp"
> make[2]: ingresso nella directory "/tmp/emacs/lisp"
> Compiling ../lisp/button.el
> Compiling ../lisp/startup.el
> 
> Searching for program: no such file or directory, bzr
>                                       ????? ^^^^^^^^^^^^^^^^ ?????

Probably because visiting files in a bzr repository invokes
"bzr status", and perhaps a few other bzr commands.

Why are you using lightweight checkouts?  Just use a normal branch,
and all these weird problems will go away.