2009-12-04 13:32:06

by Grozdan

[permalink] [raw]
Subject: Can't compile 2.6.32

Hello,

I'm having trouble trying to compile the 2.6.32 kernel on my openSUSE
11.1 system. While doing so, I see a lot of warnings which seem to
come from include/acpi/acpiosxf.h and then when the compile process
enters the drivers/acpi directory, it errors out with the following:

CC drivers/acpi/tables.o
In file included from include/acpi/acpi.h:63,
from include/linux/acpi.h:39,
from drivers/acpi/tables.c:33:
include/acpi/acpiosxf.h: In function ?acpi_load_override_tables?:
include/acpi/acpiosxf.h:98: warning: no return statement in function
returning non-void
CC drivers/acpi/blacklist.o
In file included from include/acpi/acpi.h:63,
from include/linux/acpi.h:39,
from drivers/acpi/blacklist.c:33:
include/acpi/acpiosxf.h: In function ?acpi_load_override_tables?:
include/acpi/acpiosxf.h:98: warning: no return statement in function
returning non-void
CC drivers/acpi/osl.o
In file included from include/acpi/acpi.h:63,
from include/linux/acpi.h:39,
from drivers/acpi/osl.c:40:
include/acpi/acpiosxf.h: In function ?acpi_load_override_tables?:
include/acpi/acpiosxf.h:98: warning: no return statement in function
returning non-void
drivers/acpi/osl.c: At top level:
drivers/acpi/osl.c:514: error: redefinition of ?acpi_load_override_tables?
include/acpi/acpiosxf.h:98: error: previous definition of
?acpi_load_override_tables? was here
make[2]: *** [drivers/acpi/osl.o] Error 1
make[1]: *** [drivers/acpi] Error 2
make: *** [drivers] Error 2

Thoughts, solutions, etc?

PS: please CC me as I'm not subscribed to the list.


2009-12-04 22:26:39

by Randy Dunlap

[permalink] [raw]
Subject: Re: Can't compile 2.6.32

On Fri, 4 Dec 2009 14:32:08 +0100 Grozdan wrote:

> Hello,
>
> I'm having trouble trying to compile the 2.6.32 kernel on my openSUSE
> 11.1 system. While doing so, I see a lot of warnings which seem to
> come from include/acpi/acpiosxf.h and then when the compile process
> enters the drivers/acpi directory, it errors out with the following:
>
> CC drivers/acpi/tables.o
> In file included from include/acpi/acpi.h:63,
> from include/linux/acpi.h:39,
> from drivers/acpi/tables.c:33:
> include/acpi/acpiosxf.h: In function ‘acpi_load_override_tables’:
> include/acpi/acpiosxf.h:98: warning: no return statement in function
> returning non-void
> CC drivers/acpi/blacklist.o
> In file included from include/acpi/acpi.h:63,
> from include/linux/acpi.h:39,
> from drivers/acpi/blacklist.c:33:
> include/acpi/acpiosxf.h: In function ‘acpi_load_override_tables’:
> include/acpi/acpiosxf.h:98: warning: no return statement in function
> returning non-void
> CC drivers/acpi/osl.o
> In file included from include/acpi/acpi.h:63,
> from include/linux/acpi.h:39,
> from drivers/acpi/osl.c:40:
> include/acpi/acpiosxf.h: In function ‘acpi_load_override_tables’:
> include/acpi/acpiosxf.h:98: warning: no return statement in function
> returning non-void
> drivers/acpi/osl.c: At top level:
> drivers/acpi/osl.c:514: error: redefinition of ‘acpi_load_override_tables’
> include/acpi/acpiosxf.h:98: error: previous definition of
> ‘acpi_load_override_tables’ was here
> make[2]: *** [drivers/acpi/osl.o] Error 1
> make[1]: *** [drivers/acpi] Error 2
> make: *** [drivers] Error 2
>
> Thoughts, solutions, etc?

Please send your failing kernel .config file. Thanks.


> PS: please CC me as I'm not subscribed to the list.
> --

---
~Randy

2009-12-04 22:30:16

by Grozdan

[permalink] [raw]
Subject: Re: Can't compile 2.6.32

On Fri, Dec 4, 2009 at 11:25 PM, Randy Dunlap <[email protected]> wrote:
> On Fri, 4 Dec 2009 14:32:08 +0100 Grozdan wrote:
>
>> Hello,
>>
>> I'm having trouble trying to compile the 2.6.32 kernel on my openSUSE
>> 11.1 system. While doing so, I see a lot of warnings which seem to
>> come from include/acpi/acpiosxf.h and then when the compile process
>> enters the drivers/acpi directory, it errors out with the following:
>>
>> ? CC ? ? ?drivers/acpi/tables.o
>> In file included from include/acpi/acpi.h:63,
>> ? ? ? ? ? ? ? ? ?from include/linux/acpi.h:39,
>> ? ? ? ? ? ? ? ? ?from drivers/acpi/tables.c:33:
>> include/acpi/acpiosxf.h: In function ?acpi_load_override_tables?:
>> include/acpi/acpiosxf.h:98: warning: no return statement in function
>> returning non-void
>> ? CC ? ? ?drivers/acpi/blacklist.o
>> In file included from include/acpi/acpi.h:63,
>> ? ? ? ? ? ? ? ? ?from include/linux/acpi.h:39,
>> ? ? ? ? ? ? ? ? ?from drivers/acpi/blacklist.c:33:
>> include/acpi/acpiosxf.h: In function ?acpi_load_override_tables?:
>> include/acpi/acpiosxf.h:98: warning: no return statement in function
>> returning non-void
>> ? CC ? ? ?drivers/acpi/osl.o
>> In file included from include/acpi/acpi.h:63,
>> ? ? ? ? ? ? ? ? ?from include/linux/acpi.h:39,
>> ? ? ? ? ? ? ? ? ?from drivers/acpi/osl.c:40:
>> include/acpi/acpiosxf.h: In function ?acpi_load_override_tables?:
>> include/acpi/acpiosxf.h:98: warning: no return statement in function
>> returning non-void
>> drivers/acpi/osl.c: At top level:
>> drivers/acpi/osl.c:514: error: redefinition of ?acpi_load_override_tables?
>> include/acpi/acpiosxf.h:98: error: previous definition of
>> ?acpi_load_override_tables? was here
>> make[2]: *** [drivers/acpi/osl.o] Error 1
>> make[1]: *** [drivers/acpi] Error 2
>> make: *** [drivers] Error 2
>>
>> Thoughts, solutions, etc?
>
> Please send your failing kernel .config file. ?Thanks.

Hi Randy

Attached is my config of 2.6.32

>
>
>> PS: please CC me as I'm not subscribed to the list.
>> --
>
> ---
> ~Randy
>


Attachments:
config-2.6.32.txt (101.50 kB)

2009-12-04 23:06:08

by Randy Dunlap

[permalink] [raw]
Subject: Re: Can't compile 2.6.32

On Fri, 4 Dec 2009 23:30:09 +0100 Grozdan wrote:

> On Fri, Dec 4, 2009 at 11:25 PM, Randy Dunlap <[email protected]> wrote:
> > On Fri, 4 Dec 2009 14:32:08 +0100 Grozdan wrote:
> >
> >> Hello,
> >>
> >> I'm having trouble trying to compile the 2.6.32 kernel on my openSUSE
> >> 11.1 system. While doing so, I see a lot of warnings which seem to
> >> come from include/acpi/acpiosxf.h and then when the compile process
> >> enters the drivers/acpi directory, it errors out with the following:
> >>
> >>   CC      drivers/acpi/tables.o
> >> In file included from include/acpi/acpi.h:63,
> >>                  from include/linux/acpi.h:39,
> >>                  from drivers/acpi/tables.c:33:
> >> include/acpi/acpiosxf.h: In function ‘acpi_load_override_tables’:
> >> include/acpi/acpiosxf.h:98: warning: no return statement in function
> >> returning non-void
> >>   CC      drivers/acpi/blacklist.o
> >> In file included from include/acpi/acpi.h:63,
> >>                  from include/linux/acpi.h:39,
> >>                  from drivers/acpi/blacklist.c:33:
> >> include/acpi/acpiosxf.h: In function ‘acpi_load_override_tables’:
> >> include/acpi/acpiosxf.h:98: warning: no return statement in function
> >> returning non-void
> >>   CC      drivers/acpi/osl.o
> >> In file included from include/acpi/acpi.h:63,
> >>                  from include/linux/acpi.h:39,
> >>                  from drivers/acpi/osl.c:40:
> >> include/acpi/acpiosxf.h: In function ‘acpi_load_override_tables’:
> >> include/acpi/acpiosxf.h:98: warning: no return statement in function
> >> returning non-void
> >> drivers/acpi/osl.c: At top level:
> >> drivers/acpi/osl.c:514: error: redefinition of ‘acpi_load_override_tables’
> >> include/acpi/acpiosxf.h:98: error: previous definition of
> >> ‘acpi_load_override_tables’ was here
> >> make[2]: *** [drivers/acpi/osl.o] Error 1
> >> make[1]: *** [drivers/acpi] Error 2
> >> make: *** [drivers] Error 2
> >>
> >> Thoughts, solutions, etc?
> >
> > Please send your failing kernel .config file.  Thanks.
>
> Hi Randy
>
> Attached is my config of 2.6.32

That builds fine for me, after I run make oldconfig and eliminate all of the
opensuse config additions.

It could be acpi-header-related though. Let's cc: linux-acpi to see if they
know anything about this.

> >> PS: please CC me as I'm not subscribed to the list.
> >> --


---
~Randy

2009-12-05 00:29:22

by Justin P. Mattock

[permalink] [raw]
Subject: Re: Can't compile 2.6.32

On 12/04/09 15:05, Randy Dunlap wrote:
> On Fri, 4 Dec 2009 23:30:09 +0100 Grozdan wrote:
>
>> On Fri, Dec 4, 2009 at 11:25 PM, Randy Dunlap<[email protected]> wrote:
>>> On Fri, 4 Dec 2009 14:32:08 +0100 Grozdan wrote:
>>>
>>>> Hello,
>>>>
>>>> I'm having trouble trying to compile the 2.6.32 kernel on my openSUSE
>>>> 11.1 system. While doing so, I see a lot of warnings which seem to
>>>> come from include/acpi/acpiosxf.h and then when the compile process
>>>> enters the drivers/acpi directory, it errors out with the following:
>>>>
>>>> CC drivers/acpi/tables.o
>>>> In file included from include/acpi/acpi.h:63,
>>>> from include/linux/acpi.h:39,
>>>> from drivers/acpi/tables.c:33:
>>>> include/acpi/acpiosxf.h: In function ‘acpi_load_override_tables’:
>>>> include/acpi/acpiosxf.h:98: warning: no return statement in function
>>>> returning non-void
>>>> CC drivers/acpi/blacklist.o
>>>> In file included from include/acpi/acpi.h:63,
>>>> from include/linux/acpi.h:39,
>>>> from drivers/acpi/blacklist.c:33:
>>>> include/acpi/acpiosxf.h: In function ‘acpi_load_override_tables’:
>>>> include/acpi/acpiosxf.h:98: warning: no return statement in function
>>>> returning non-void
>>>> CC drivers/acpi/osl.o
>>>> In file included from include/acpi/acpi.h:63,
>>>> from include/linux/acpi.h:39,
>>>> from drivers/acpi/osl.c:40:
>>>> include/acpi/acpiosxf.h: In function ‘acpi_load_override_tables’:
>>>> include/acpi/acpiosxf.h:98: warning: no return statement in function
>>>> returning non-void
>>>> drivers/acpi/osl.c: At top level:
>>>> drivers/acpi/osl.c:514: error: redefinition of ‘acpi_load_override_tables’
>>>> include/acpi/acpiosxf.h:98: error: previous definition of
>>>> ‘acpi_load_override_tables’ was here
>>>> make[2]: *** [drivers/acpi/osl.o] Error 1
>>>> make[1]: *** [drivers/acpi] Error 2
>>>> make: *** [drivers] Error 2
>>>>
>>>> Thoughts, solutions, etc?
>>>
>>> Please send your failing kernel .config file. Thanks.
>>
>> Hi Randy
>>
>> Attached is my config of 2.6.32
>
> That builds fine for me, after I run make oldconfig and eliminate all of the
> opensuse config additions.
>
> It could be acpi-header-related though. Let's cc: linux-acpi to see if they
> know anything about this.
>
>>>> PS: please CC me as I'm not subscribed to the list.
>>>> --
>
>
> ---
> ~Randy
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>

maybe make headers_install
is whats missing!

Justin P. Mattock

2009-12-05 00:45:12

by Randy Dunlap

[permalink] [raw]
Subject: Re: Can't compile 2.6.32

On Fri, 04 Dec 2009 16:29:32 -0800 Justin P. Mattock wrote:

> On 12/04/09 15:05, Randy Dunlap wrote:
> > On Fri, 4 Dec 2009 23:30:09 +0100 Grozdan wrote:
> >
> >> On Fri, Dec 4, 2009 at 11:25 PM, Randy Dunlap<[email protected]> wrote:
> >>> On Fri, 4 Dec 2009 14:32:08 +0100 Grozdan wrote:
> >>>
> >>>> Hello,
> >>>>
> >>>> I'm having trouble trying to compile the 2.6.32 kernel on my openSUSE
> >>>> 11.1 system. While doing so, I see a lot of warnings which seem to
> >>>> come from include/acpi/acpiosxf.h and then when the compile process
> >>>> enters the drivers/acpi directory, it errors out with the following:
> >>>>
> >>>> CC drivers/acpi/tables.o
> >>>> In file included from include/acpi/acpi.h:63,
> >>>> from include/linux/acpi.h:39,
> >>>> from drivers/acpi/tables.c:33:
> >>>> include/acpi/acpiosxf.h: In function ‘acpi_load_override_tables’:
> >>>> include/acpi/acpiosxf.h:98: warning: no return statement in function
> >>>> returning non-void
> >>>> CC drivers/acpi/blacklist.o
> >>>> In file included from include/acpi/acpi.h:63,
> >>>> from include/linux/acpi.h:39,
> >>>> from drivers/acpi/blacklist.c:33:
> >>>> include/acpi/acpiosxf.h: In function ‘acpi_load_override_tables’:
> >>>> include/acpi/acpiosxf.h:98: warning: no return statement in function
> >>>> returning non-void
> >>>> CC drivers/acpi/osl.o
> >>>> In file included from include/acpi/acpi.h:63,
> >>>> from include/linux/acpi.h:39,
> >>>> from drivers/acpi/osl.c:40:
> >>>> include/acpi/acpiosxf.h: In function ‘acpi_load_override_tables’:
> >>>> include/acpi/acpiosxf.h:98: warning: no return statement in function
> >>>> returning non-void
> >>>> drivers/acpi/osl.c: At top level:
> >>>> drivers/acpi/osl.c:514: error: redefinition of ‘acpi_load_override_tables’
> >>>> include/acpi/acpiosxf.h:98: error: previous definition of
> >>>> ‘acpi_load_override_tables’ was here

Grozdan,

My copy of 2.6.32 does not have a function 'acpi_load_override_tables'
in drivers/acpi/osl.c nor in include/acpi/acpiosxf.h.

Where/how did you get your 2.6.32 kernel source tree?
Mayb you should do it again...


> >>>> make[2]: *** [drivers/acpi/osl.o] Error 1
> >>>> make[1]: *** [drivers/acpi] Error 2
> >>>> make: *** [drivers] Error 2
> >>>>
> >>>> Thoughts, solutions, etc?
> >>>
> >>> Please send your failing kernel .config file. Thanks.
> >>
> >> Hi Randy
> >>
> >> Attached is my config of 2.6.32
> >
> > That builds fine for me, after I run make oldconfig and eliminate all of the
> > opensuse config additions.
> >
> > It could be acpi-header-related though. Let's cc: linux-acpi to see if they
> > know anything about this.
> >
> >>>> PS: please CC me as I'm not subscribed to the list.
> >>>> --
> >
> >
> > ---
>
> maybe make headers_install
> is whats missing!
>
> Justin P. Mattock


---
~Randy

2009-12-05 02:04:59

by Randy Dunlap

[permalink] [raw]
Subject: Re: Can't compile 2.6.32


A bit more info on this. It seems there's a
CONFIG_ACPI_CUSTOM_OVERRIDE_INITRAMFS in the "normal" SUSE source RPM
package (which in my config is not enabled, but there is an option for
that) and looking at the drivers/acpi/osl.c and the
include/acpi/acpiosxf.h file, there's a define for this in the header
which has acpi_load_override_tables(void); and also this is present in
the osl.c file.... see both attachments. I could not find the same
thing in the kernel-default-vanilla source RPM package also present in
the repo.

~~~~~~~~~~~~~~~~~~ reply: ~~~~~~~~~~~~~~~~~~~~~~~~

You should take this up with the OpenSUSE people, not lkml.

Thanks,
~Randy

2009-12-05 02:12:53

by Grozdan

[permalink] [raw]
Subject: Re: Can't compile 2.6.32

On Sat, Dec 5, 2009 at 3:03 AM, Randy Dunlap <[email protected]> wrote:
>
> A bit more info on this. It seems there's a
> CONFIG_ACPI_CUSTOM_OVERRIDE_INITRAMFS in the "normal" SUSE source RPM
> package (which in my config is not enabled, but there is an option for
> that) and looking at the drivers/acpi/osl.c and the
> include/acpi/acpiosxf.h file, there's a define for this in the header
> which has acpi_load_override_tables(void); and also this is present in
> the osl.c file.... see both attachments. I could not find the same
> thing in the kernel-default-vanilla source RPM package also present in
> the repo.
>
> ~~~~~~~~~~~~~~~~~~ ?reply: ~~~~~~~~~~~~~~~~~~~~~~~~
>
> You should take this up with the OpenSUSE people, not lkml.

Yeah I know, and what I've been planning to. But, I enabled this
option some minutes ago and tried to compile again. It passed
compilation of osl.c so I think it's all good now. There have been
quite a lot of complains about how SUSE configures and splits its
kernel packages; for the new 11.2 release, I've read a lot of them on
the SUSE forum where people couldn't even boot if the kernel-desktop
was selected and installed but had no problems with the
kernel-default. I don't know who configures these kernels (I don't use
SUSE configured/compiled kernels, only grab them from the build
service & configure/compile them myself) but it seems it's getting
progressively worse, not to mention in how many different packages
they've split the kernel and people are getting confused about this :(

Anyways, thanks so far ;)

>
> Thanks,
> ~Randy
>