public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* mei file2alias compile error
@ 2013-05-01 16:56 Dave Hansen
  2013-05-01 18:21 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 8+ messages in thread
From: Dave Hansen @ 2013-05-01 16:56 UTC (permalink / raw)
  To: Samuel.Ortiz, Tomas Winkler, Greg Kroah-Hartman, LKML

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.

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

* Re: mei file2alias compile error
  2013-05-01 16:56 mei file2alias compile error Dave Hansen
@ 2013-05-01 18:21 ` Greg Kroah-Hartman
  2013-05-02  6:50   ` Winkler, Tomas
  0 siblings, 1 reply; 8+ messages in thread
From: Greg Kroah-Hartman @ 2013-05-01 18:21 UTC (permalink / raw)
  To: Dave Hansen; +Cc: SamuelOrtiz, Tomas Winkler, LKML

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?

thanks,

greg k-h

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

* RE: mei file2alias compile error
  2013-05-01 18:21 ` Greg Kroah-Hartman
@ 2013-05-02  6:50   ` Winkler, Tomas
  2013-05-02 15:23     ` Dave Hansen
  0 siblings, 1 reply; 8+ messages in thread
From: Winkler, Tomas @ 2013-05-02  6:50 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Hansen, Dave; +Cc: SamuelOrtiz@kroah.com, LKML

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="utf-8", Size: 1375 bytes --]



> 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.

Thanks
Tomas
ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±þG«éÿŠ{ayº\x1dʇڙë,j\a­¢f£¢·hšïêÿ‘êçz_è®\x03(­éšŽŠÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?™¨è­Ú&£ø§~á¶iO•æ¬z·švØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?–I¥

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

* Re: mei file2alias compile error
  2013-05-02  6:50   ` Winkler, Tomas
@ 2013-05-02 15:23     ` Dave Hansen
  2013-05-03 11:34       ` Geert Uytterhoeven
  0 siblings, 1 reply; 8+ messages in thread
From: Dave Hansen @ 2013-05-02 15:23 UTC (permalink / raw)
  To: Winkler, Tomas; +Cc: Greg Kroah-Hartman, SamuelOrtiz@kroah.com, LKML

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.

Tomas, thanks for taking a look.

For posterity:

gcc version 4.6.3 20120306 (Red Hat 4.6.3-2) (GCC)
Fedora release 16 (Verne)
v3.9-5295-ga49fe6d

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

* Re: mei file2alias compile error
  2013-05-02 15:23     ` Dave Hansen
@ 2013-05-03 11:34       ` Geert Uytterhoeven
  2013-05-04 14:32         ` [PATCH] Fix cleaning in scripts/mod Andreas Schwab
  0 siblings, 1 reply; 8+ 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] 8+ messages in thread

* [PATCH] Fix cleaning in scripts/mod
  2013-05-03 11:34       ` Geert Uytterhoeven
@ 2013-05-04 14:32         ` Andreas Schwab
  2013-05-05  8:24           ` Geert Uytterhoeven
  0 siblings, 1 reply; 8+ 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] 8+ 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; 8+ 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] 8+ 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; 8+ 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] 8+ messages in thread

end of thread, other threads:[~2013-05-06 21:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-01 16:56 mei file2alias compile error Dave Hansen
2013-05-01 18:21 ` Greg Kroah-Hartman
2013-05-02  6:50   ` Winkler, Tomas
2013-05-02 15:23     ` Dave Hansen
2013-05-03 11:34       ` 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