From: Andrea Arcangeli <andrea@qumranet.com>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: tvrtko.ursulin@sophos.com, linux-kbuild@vger.kernel.org
Subject: Re: kbuild variable $(src) broken in 2.6.23-rc3?
Date: Fri, 30 May 2008 14:41:11 +0200 [thread overview]
Message-ID: <20080530124111.GC15295@duo.random> (raw)
In-Reply-To: <20080529193658.GA20113@uranus.ravnborg.org>
On Thu, May 29, 2008 at 09:36:58PM +0200, Sam Ravnborg wrote:
> On Wed, May 28, 2008 at 10:18:03PM +0200, Andrea Arcangeli wrote:
> > On Wed, May 28, 2008 at 09:13:15PM +0200, Sam Ravnborg wrote:
> > > Inspect the gcc commandlien to see if the last -I
> > > contains the expected value (which is `pwd`)
> >
> > I can reproduce a failure, not sure if it's the same one but it ends
> > up with -I. Actually on the good build it seems the -I wasn't there at
> > all.
>
> I tracked it down now (a simple bisect would have doen the trick too).
> It was the introduction of KBUILD_EXTRA_SYMBOLS that caused
> us troubles because we started to include the Makefile
> in Makefile.modpost and thus ccflags-y (EXTRA_CFLAGS) were
> assigned the value "-I$(src)" but $(src) was not defined so
> we ended up with an empty -I which then picked up the following
> parameter on the command line.
>
> I cooked up the following fix:
>
> diff --git a/scripts/Makefile.modpost b/scripts/Makefile.modpost
> index a098a04..28ef233 100644
> --- a/scripts/Makefile.modpost
> +++ b/scripts/Makefile.modpost
> @@ -37,6 +37,10 @@
> # symbols in the final module linking stage
> # KBUILD_MODPOST_NOFINAL can be set to skip the final link of modules.
> # This is solely usefull to speed up test compiles
> +
> +# Assign src as it may be used in ccflags-y
> +src = .
> +
> PHONY := _modpost
> _modpost: __modpost
>
The module source is the src, so this fixes the build for KVM at least.
Signed-off-by: Andrea Arcangeli <andrea@qumranet.com>
diff -r d99f6640491e scripts/Makefile.modpost
--- a/scripts/Makefile.modpost Tue May 20 18:19:45 2008 +0200
+++ b/scripts/Makefile.modpost Fri May 30 14:40:16 2008 +0200
@@ -37,6 +37,10 @@
# symbols in the final module linking stage
# KBUILD_MODPOST_NOFINAL can be set to skip the final link of modules.
# This is solely usefull to speed up test compiles
+
+# Assign src as it may be used in ccflags-y
+src = $(KBUILD_EXTMOD)
+
PHONY := _modpost
_modpost: __modpost
next prev parent reply other threads:[~2008-05-30 12:41 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-21 14:42 kbuild variable $(src) broken in 2.6.23-rc3? tvrtko.ursulin
2008-05-21 19:04 ` Sam Ravnborg
2008-05-21 19:48 ` Andrea Arcangeli
2008-05-28 19:09 ` Sam Ravnborg
2008-05-28 19:13 ` Sam Ravnborg
2008-05-28 20:18 ` Andrea Arcangeli
2008-05-28 20:35 ` Sam Ravnborg
2008-05-29 19:36 ` Sam Ravnborg
2008-05-30 9:27 ` tvrtko.ursulin
2008-05-30 12:41 ` Andrea Arcangeli [this message]
2008-05-30 12:52 ` tvrtko.ursulin
2008-05-25 6:54 ` Sam Ravnborg
2008-05-26 15:15 ` Rafael J. Wysocki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080530124111.GC15295@duo.random \
--to=andrea@qumranet.com \
--cc=linux-kbuild@vger.kernel.org \
--cc=sam@ravnborg.org \
--cc=tvrtko.ursulin@sophos.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.