Thanks, this appears to be due to an old Bash bug. Could you please try the
attached patch? Assuming you don't have the autotools installed, please patch
your top-level Makefile (which you've already built) instead of patching
src/local.mk. I've installed this, since it seems pretty obviously needed
regardless of whether it fixes your bug.
>From cea7b8645f482bf280dc5290950011db938cf206 Mon Sep 17 00:00:00 2001
From: Paul Eggert <[email protected]>
Date: Tue, 25 Nov 2014 21:16:20 -0800
Subject: [PATCH] build: port new rule for coreutils.h to old Bash
Reported by Ted Carr in: http://bugs.gnu.org/19184
* src/local.mk (src/coreutils.h):
Don't assume single_binary_progs is nonempty.
---
src/local.mk | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/local.mk b/src/local.mk
index 6e80d31..ae1ba0c 100644
--- a/src/local.mk
+++ b/src/local.mk
@@ -577,7 +577,8 @@ src/version.h: Makefile
DISTCLEANFILES += src/coreutils.h
src/coreutils.h: Makefile
$(AM_V_GEN)rm -f $@
- $(AM_V_at)for prog in $(single_binary_progs); do \
+ $(AM_V_at)for prog in x $(single_binary_progs); do \
+ test $$prog = x && continue; \
prog=`basename $$prog`; \
main=`echo $$prog | tr '[' '_'`; \
echo "SINGLE_BINARY_PROGRAM(\"$$prog\", $$main)"; \
--
1.9.3