Skip to contentSkip to conversation

fix whitespace bogon in some versions of make

PATCH Applied Nathan Froyd 3 participants 3 messages Apr 26, 2010 – May 3, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix whitespace bogon in some versions of make

With three different make binaries I have available, configuring a pristine QEMU tree and attempting to make gives the cryptic:

Makefile:27: *** missing separator. Stop.

This patch fixes it (presumably because it makes the output of `set-vpath' be an empty string, rather than a bit of whitespace), but I don't understand why this hasn't been a problem for other folks before.

---
 rules.mak |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
rules.mak +1 -1
index 5941b73..7e10432 100644
@@ -40,7 +40,7 @@ cc-option = $(if $(shell $(CC) $1 $2 -S -o /dev/null -xc /dev/null \
               >/dev/null 2>&1 && echo OK), $2, $3)
 
 VPATH_SUFFIXES = %.c %.h %.S %.m %.mak %.texi
-set-vpath = $(if $1,$(foreach PATTERN,$(VPATH_SUFFIXES), $(eval vpath $(PATTERN) $1)))
+set-vpath = $(if $1,$(foreach PATTERN,$(VPATH_SUFFIXES),$(eval vpath $(PATTERN) $1)))
 
 # Generate timestamp files for .h include files
 
Signature · 1 line
1.6.3.2
Acked-by on v1 1/1
#1 lore raw
Quoted 19 lines · Nathan Froyd

With three different make binaries I have available, configuring a pristine QEMU tree and attempting to make gives the cryptic:

Makefile:27: *** missing separator. Stop.

This patch fixes it (presumably because it makes the output of `set-vpath' be an empty string, rather than a bit of whitespace), but I don't understand why this hasn't been a problem for other folks before.

---
  rules.mak |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
rules.mak +0 -0
index 5941b73..7e10432 100644

rules.mak cc-option = $(if $(shell $(CC) $1 $2 -S -o /dev/null -xc /dev/null \ · line 45

Quoted 7 lines
rules.mak +1 -1
@@ -40,7 +40,7 @@ cc-option = $(if $(shell $(CC) $1 $2 -S -o /dev/null -xc /dev/null \
                >/dev/null 2>&1&&  echo OK), $2, $3)
 
  VPATH_SUFFIXES = %.c %.h %.S %.m %.mak %.texi
-set-vpath = $(if $1,$(foreach PATTERN,$(VPATH_SUFFIXES), $(eval vpath $(PATTERN) $1)))
+set-vpath = $(if $1,$(foreach PATTERN,$(VPATH_SUFFIXES),$(eval vpath $(PATTERN) $1)))
 
  # Generate timestamp files for .h include files

Paolo

#2 lore raw
In reply to Nathan Froyd
Quoted 11 lines · Nathan Froyd

With three different make binaries I have available, configuring a pristine QEMU tree and attempting to make gives the cryptic:

Makefile:27: *** missing separator. Stop.

This patch fixes it (presumably because it makes the output of `set-vpath' be an empty string, rather than a bit of whitespace), but I don't understand why this hasn't been a problem for other folks before.

Applied. Thanks.

Regards,

Anthony Liguori

Quoted 18 lines
---
  rules.mak |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
rules.mak +1 -1
index 5941b73..7e10432 100644
@@ -40,7 +40,7 @@ cc-option = $(if $(shell $(CC) $1 $2 -S -o /dev/null -xc /dev/null \
                >/dev/null 2>&1&&  echo OK), $2, $3)
 
  VPATH_SUFFIXES = %.c %.h %.S %.m %.mak %.texi
-set-vpath = $(if $1,$(foreach PATTERN,$(VPATH_SUFFIXES), $(eval vpath $(PATTERN) $1)))
+set-vpath = $(if $1,$(foreach PATTERN,$(VPATH_SUFFIXES),$(eval vpath $(PATTERN) $1)))
 
  # Generate timestamp files for .h include files