All of lore.kernel.org
 help / color / mirror / Atom feed
* checker-shell still hosed...
@ 2007-02-08 11:05 David Miller
  2007-02-08 12:10 ` David Miller
  0 siblings, 1 reply; 6+ messages in thread
From: David Miller @ 2007-02-08 11:05 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel


Linus, things still fail for me even with the $(strip ...) construct
you added works properly.

For some reason things like $(call cc-option-yn...) still fail.

My make version 3.81beta4 has the space problem, and with your
change it just returns a space. :-)  Without your change it
gives the problematic " y" string.

A running theory of mine is that it's a "$(call)" within a
$(call) which generates the space.  So I wrote a little
make.test:

define test1
  $(shell echo "str1")
endef

define test2
  $(call test1)
endef

FOO := A$(call test2)B

all:
	echo A$(FOO)B

If I run "make -f make.test" I get:

davem@sunset:~/src/GIT/net-2.6$ make -f make.test
echo AA    str1BB
AA str1BB
davem@sunset:~/src/GIT/net-2.6$

Hmmm...  but I just checked on a proper "GNU Make 3.81" and that
prints the space in the example above too.

Weird...


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: checker-shell still hosed...
  2007-02-08 11:05 checker-shell still hosed David Miller
@ 2007-02-08 12:10 ` David Miller
  2007-02-08 12:12   ` David Miller
  0 siblings, 1 reply; 6+ messages in thread
From: David Miller @ 2007-02-08 12:10 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel

From: David Miller <davem@davemloft.net>
Date: Thu, 08 Feb 2007 03:05:31 -0800 (PST)

> define test1
>   $(shell echo "str1")
> endef
> 
> define test2
>   $(call test1)
> endef

Someone just privately explained that my test case is broken
because of the spaces before the "$(shell " in the defines.
Removing them makes the spaces go away.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: checker-shell still hosed...
  2007-02-08 12:10 ` David Miller
@ 2007-02-08 12:12   ` David Miller
  2007-02-08 12:41       ` Geert Uytterhoeven
  0 siblings, 1 reply; 6+ messages in thread
From: David Miller @ 2007-02-08 12:12 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel, paulus

From: David Miller <davem@davemloft.net>
Date: Thu, 08 Feb 2007 04:10:04 -0800 (PST)

> Removing them makes the spaces go away.

FWIW, this patch below seems to fix the sparc64 build for me.

Paul, does it work for you on powerpc too?

diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include
index 8d7eabf..a1880e8 100644
--- a/scripts/Kbuild.include
+++ b/scripts/Kbuild.include
@@ -60,16 +60,15 @@ endef
 # Usage: option = $(call checker-shell,$(CC)...-o $$OUT,option-ok,otherwise)
 # Exit code chooses option. $$OUT is safe location for needless output.
 define checker-shell
- $(strip
-  $(shell set -e; \
-    DIR=$(KBUILD_EXTMOD); \
-    cd $${DIR:-$(objtree)}; \
-    OUT=$$PWD/.$$$$.null; \
-    if $(1) >/dev/null 2>&1; \
-      then echo "$(2)"; \
-      else echo "$(3)"; \
-    fi; \
-    rm -f $$OUT))
+$(shell set -e; \
+  DIR=$(KBUILD_EXTMOD); \
+  cd $${DIR:-$(objtree)}; \
+  OUT=$$PWD/.$$$$.null; \
+  if $(1) >/dev/null 2>&1; \
+    then echo "$(2)"; \
+    else echo "$(3)"; \
+  fi; \
+  rm -f $$OUT)
 endef
 
 # as-option

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: checker-shell still hosed...
  2007-02-08 12:12   ` David Miller
@ 2007-02-08 12:41       ` Geert Uytterhoeven
  0 siblings, 0 replies; 6+ messages in thread
From: Geert Uytterhoeven @ 2007-02-08 12:41 UTC (permalink / raw)
  To: David Miller
  Cc: Linus Torvalds, Linux Kernel Development, Linux/PPC Development,
	Paul Mackerras

On Thu, 8 Feb 2007, David Miller wrote:
> From: David Miller <davem@davemloft.net>
> Date: Thu, 08 Feb 2007 04:10:04 -0800 (PST)
> 
> > Removing them makes the spaces go away.
> 
> FWIW, this patch below seems to fix the sparc64 build for me.
> 
> Paul, does it work for you on powerpc too?

Thx, it seems to build now. I'll tell you whether it boots on PS3 soon.

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- Sony Network and Software Technology Center Europe (NSCE)
Geert.Uytterhoeven@sonycom.com ------- The Corporate Village, Da Vincilaan 7-D1
Voice +32-2-7008453 Fax +32-2-7008622 ---------------- B-1935 Zaventem, Belgium

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: checker-shell still hosed...
@ 2007-02-08 12:41       ` Geert Uytterhoeven
  0 siblings, 0 replies; 6+ messages in thread
From: Geert Uytterhoeven @ 2007-02-08 12:41 UTC (permalink / raw)
  To: David Miller
  Cc: Linux/PPC Development, Linus Torvalds, Linux Kernel Development,
	Paul Mackerras

On Thu, 8 Feb 2007, David Miller wrote:
> From: David Miller <davem@davemloft.net>
> Date: Thu, 08 Feb 2007 04:10:04 -0800 (PST)
> 
> > Removing them makes the spaces go away.
> 
> FWIW, this patch below seems to fix the sparc64 build for me.
> 
> Paul, does it work for you on powerpc too?

Thx, it seems to build now. I'll tell you whether it boots on PS3 soon.

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- Sony Network and Software Technology Center Europe (NSCE)
Geert.Uytterhoeven@sonycom.com ------- The Corporate Village, Da Vincilaan 7-D1
Voice +32-2-7008453 Fax +32-2-7008622 ---------------- B-1935 Zaventem, Belgium

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: checker-shell still hosed...
  2007-02-08 12:41       ` Geert Uytterhoeven
  (?)
@ 2007-02-08 12:52       ` Geert Uytterhoeven
  -1 siblings, 0 replies; 6+ messages in thread
From: Geert Uytterhoeven @ 2007-02-08 12:52 UTC (permalink / raw)
  To: David Miller
  Cc: Linux/PPC Development, Linus Torvalds, Linux Kernel Development,
	Paul Mackerras

On Thu, 8 Feb 2007, Geert Uytterhoeven wrote:
> On Thu, 8 Feb 2007, David Miller wrote:
> > From: David Miller <davem@davemloft.net>
> > Date: Thu, 08 Feb 2007 04:10:04 -0800 (PST)
> > 
> > > Removing them makes the spaces go away.
> > 
> > FWIW, this patch below seems to fix the sparc64 build for me.
> > 
> > Paul, does it work for you on powerpc too?
> 
> Thx, it seems to build now. I'll tell you whether it boots on PS3 soon.

Build and boot were successful.

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- Sony Network and Software Technology Center Europe (NSCE)
Geert.Uytterhoeven@sonycom.com ------- The Corporate Village, Da Vincilaan 7-D1
Voice +32-2-7008453 Fax +32-2-7008622 ---------------- B-1935 Zaventem, Belgium

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-02-08 12:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-08 11:05 checker-shell still hosed David Miller
2007-02-08 12:10 ` David Miller
2007-02-08 12:12   ` David Miller
2007-02-08 12:41     ` Geert Uytterhoeven
2007-02-08 12:41       ` Geert Uytterhoeven
2007-02-08 12:52       ` Geert Uytterhoeven

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.