* Re: mei file2alias compile error
[not found] ` <518284E6.7040503@intel.com>
@ 2013-05-03 11:34 ` Geert Uytterhoeven
2013-05-04 14:32 ` [PATCH] Fix cleaning in scripts/mod Andreas Schwab
0 siblings, 1 reply; 4+ messages in thread
From: Geert Uytterhoeven @ 2013-05-03 11:34 UTC (permalink / raw)
To: Dave Hansen
Cc: Winkler, Tomas, Greg Kroah-Hartman, SamuelOrtiz@kroah.com, LKML,
Andreas Schwab, linux-kbuild
On Thu, May 2, 2013 at 5:23 PM, Dave Hansen <dave.hansen@intel.com> wrote:
> On 05/01/2013 11:50 PM, Winkler, Tomas wrote:
>>> On Wed, May 01, 2013 at 09:56:35AM -0700, Dave Hansen wrote:
>>>> Linus's current git isn't compiling for me:
>>>>> HOSTCC scripts/mod/file2alias.o
>>>>> /home/davehans/linux.git/scripts/mod/file2alias.c: In function
>>> ‘do_mei_entry’:
>>>>> /home/davehans/linux.git/scripts/mod/file2alias.c:1140:1: error:
>>> ‘OFF_mei_cl_device_id_name’ undeclared (first use in this function)
>>>>> /home/davehans/linux.git/scripts/mod/file2alias.c:1140:1: note: each
>>> undeclared identifier is reported only once for each function it appears in
>>>>> /home/davehans/linux.git/scripts/mod/file2alias.c: At top level:
>>>>> /home/davehans/linux.git/scripts/mod/file2alias.c:1146:1: error:
>>> ‘SIZE_mei_cl_device_id’ undeclared here (not in a function)
>>>>
>>>> I confirmed that this commit: e5354107e is the one causing it for me.
>>>> My .config is here:
>>>>
>>>> http://sr71.net/~dave/linux/config-3.9-meibad
>>>>
>>>> Note that I don't even have CONFIG_INTEL_MEI enabled with this config.
>>>
>>> I don't have CONFIG_INTEL_MEI set either, and I can't duplicate this.
>>> Samuel and Tomas, can you please track this down?
>>
>> I cannot reproduce it as well. I've tried with v3.9 and also with the latest tip.
>
> I did some more poking around. I was building with O= to put the
> binaries in another dir. When I saw the error, one of the first things
> I did was do a "make mrproper" on the binary directory. But, I never
> did one one the source directory. Doing that seems to have made this go
> away. There must have been some build gunk in the source directory
> causing this.
Same here.
Removing "scripts/mod/devicetable-offsets.h" from the source directory fixes it.
Unfortunately I forgot to check the date on the bogus
scripts/mod/devicetable-offsets.h,
so I don't know when it was generated.
Usually, if you build in the source directory, a subsequent build in the output
directory will tell you to run "make mrproper" in the source directory. That
obviously didn't happen.
Note that I did run "make tags" in the source directory. So far that
never caused
problems. Just checked, it does not create scripts/mod/devicetable-offsets.h.
JFYI, putting back scripts/mod/devicetable-offsets.h by copying from a
freshly generated one in the output directory, with the mei lines removed,
resurrects the problem.
Even after touching scripts/mod/devicetable-offsets.c afterwards, it is not
regenerated.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] Fix cleaning in scripts/mod
2013-05-03 11:34 ` mei file2alias compile error Geert Uytterhoeven
@ 2013-05-04 14:32 ` Andreas Schwab
2013-05-05 8:24 ` Geert Uytterhoeven
0 siblings, 1 reply; 4+ messages in thread
From: Andreas Schwab @ 2013-05-04 14:32 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Dave Hansen, Winkler, Tomas, Greg Kroah-Hartman,
SamuelOrtiz@kroah.com, LKML, linux-kbuild
Make sure devicetable-offsets.h is cleaned in the scripts/mod directory
Signed-off-by: Andreas Schwab <schwab@linux-m68k.org>
---
scripts/mod/Makefile | 2 ++
1 file changed, 2 insertions(+)
diff --git a/scripts/mod/Makefile b/scripts/mod/Makefile
index 9415b56..75d59fc 100644
--- a/scripts/mod/Makefile
+++ b/scripts/mod/Makefile
@@ -37,6 +37,8 @@ scripts/mod/devicetable-offsets.s: scripts/mod/devicetable-offsets.c FORCE
$(obj)/$(devicetable-offsets-file): scripts/mod/devicetable-offsets.s
$(call cmd,offsets)
+targets += $(devicetable-offsets-file)
+
# dependencies on generated files need to be listed explicitly
$(obj)/modpost.o $(obj)/file2alias.o $(obj)/sumversion.o: $(obj)/elfconfig.h
--
1.8.2.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] Fix cleaning in scripts/mod
2013-05-04 14:32 ` [PATCH] Fix cleaning in scripts/mod Andreas Schwab
@ 2013-05-05 8:24 ` Geert Uytterhoeven
2013-05-06 21:40 ` Michal Marek
0 siblings, 1 reply; 4+ messages in thread
From: Geert Uytterhoeven @ 2013-05-05 8:24 UTC (permalink / raw)
To: Andreas Schwab
Cc: Dave Hansen, Winkler, Tomas, Greg Kroah-Hartman,
SamuelOrtiz@kroah.com, LKML, linux-kbuild
On Sat, May 4, 2013 at 4:32 PM, Andreas Schwab <schwab@linux-m68k.org> wrote:
> Make sure devicetable-offsets.h is cleaned in the scripts/mod directory
>
> Signed-off-by: Andreas Schwab <schwab@linux-m68k.org>
Tested-by: Geert Uytterhoeven <geert@linux-m68k.org>
> ---
> scripts/mod/Makefile | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/scripts/mod/Makefile b/scripts/mod/Makefile
> index 9415b56..75d59fc 100644
> --- a/scripts/mod/Makefile
> +++ b/scripts/mod/Makefile
> @@ -37,6 +37,8 @@ scripts/mod/devicetable-offsets.s: scripts/mod/devicetable-offsets.c FORCE
> $(obj)/$(devicetable-offsets-file): scripts/mod/devicetable-offsets.s
> $(call cmd,offsets)
>
> +targets += $(devicetable-offsets-file)
> +
> # dependencies on generated files need to be listed explicitly
>
> $(obj)/modpost.o $(obj)/file2alias.o $(obj)/sumversion.o: $(obj)/elfconfig.h
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] Fix cleaning in scripts/mod
2013-05-05 8:24 ` Geert Uytterhoeven
@ 2013-05-06 21:40 ` Michal Marek
0 siblings, 0 replies; 4+ messages in thread
From: Michal Marek @ 2013-05-06 21:40 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Andreas Schwab, Dave Hansen, Winkler, Tomas, Greg Kroah-Hartman,
SamuelOrtiz@kroah.com, LKML, linux-kbuild
On Sun, May 05, 2013 at 10:24:43AM +0200, Geert Uytterhoeven wrote:
> On Sat, May 4, 2013 at 4:32 PM, Andreas Schwab <schwab@linux-m68k.org> wrote:
> > Make sure devicetable-offsets.h is cleaned in the scripts/mod directory
> >
> > Signed-off-by: Andreas Schwab <schwab@linux-m68k.org>
>
> Tested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Applied to kbuild.git#kbuild.
Michal
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-05-06 21:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <51814943.7000604@intel.com>
[not found] ` <20130501182138.GA17550@kroah.com>
[not found] ` <5B8DA87D05A7694D9FA63FD143655C1B01F18E66@HASMSX106.ger.corp.intel.com>
[not found] ` <518284E6.7040503@intel.com>
2013-05-03 11:34 ` mei file2alias compile error Geert Uytterhoeven
2013-05-04 14:32 ` [PATCH] Fix cleaning in scripts/mod Andreas Schwab
2013-05-05 8:24 ` Geert Uytterhoeven
2013-05-06 21:40 ` Michal Marek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox