Makefile:701: recipe for target 'all-recursive' failed

649 views
Skip to first unread message

Paul Harper

unread,
May 28, 2017, 3:34:13 AM5/28/17
to mu-discuss
I am trying to build mu4e from git.

I get the errors below.


What am I missing?


Making all in mu4e
make[2]: Entering directory '/home/pharper/git/mu/mu4e'
make[3]: Entering directory '/home/pharper/git/mu/mu4e'
if test "emacs" != "no"; then \
  am__dir=. am__subdir_includes=''; \
  case mu4e-actions.elc in */*) \
    am__dir=`echo 'mu4e-actions.elc' | sed 's,/[^/]*$,,'`; \
    am__subdir_includes="-L $am__dir -L ./$am__dir"; \
  esac; \
  test -d "$am__dir" || /bin/mkdir -p "$am__dir" || exit 1; \
  emacs --batch \
      \
    $am__subdir_includes -L . -L . \
    --eval "(defun byte-compile-dest-file (f) \"mu4e-actions.elc\")" \
    --eval "(unless (byte-compile-file \"mu4e-actions.el\") (kill-emacs 1))"; \
else :; fi
/usr/bin/emacsclient: unrecognized option '--batch'
Try '/usr/bin/emacsclient --help' for more information
Makefile:628: recipe for target 'mu4e-actions.elc' failed
make[3]: *** [mu4e-actions.elc] Error 1
make[3]: Leaving directory '/home/pharper/git/mu/mu4e'
Makefile:701: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/pharper/git/mu/mu4e'
Makefile:497: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/pharper/git/mu'
Makefile:406: recipe for target 'all' failed
make: *** [all] Error 2
pharper@parrot:~/git/mu$ 


Thanks and regards,

Paul

Paul Harper

unread,
May 28, 2017, 3:37:18 AM5/28/17
to mu-discuss
Forgot to say I am using Debian Jessie with emacs-snapshot --version GNU Emacs 25.1.50.1

Mohamed HIBTI

unread,
May 28, 2017, 6:23:36 AM5/28/17
to mu-discuss
Hi Paul,
My guess is that you have some setting to an env variable "EMACS" to "/usr/bin/emacsclient" which do not have a batch option.

Paul Harper

unread,
May 29, 2017, 3:45:20 AM5/29/17
to mu-discuss
How do I fix this so that mu will compile?

Mohamed HIBTI

unread,
May 29, 2017, 11:28:10 AM5/29/17
to mu-discuss
I'm not sure if it works but first locate your emacs (for instance /usr/local/bin/emacs) and then configure with EMACS=your/path/to/EMACS

./configure EMACS=....
I hope this will help.

Paul Harper

unread,
May 29, 2017, 4:14:06 PM5/29/17
to mu-discuss
Thanks! that was the clue I needed. In my case I needed to point to emacs-snapshot and it worked.

autoreconf -i && ./configure EMACS=/usr/bin/emacs-snapshot && make

Reply all
Reply to author
Forward
0 new messages