Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kernel config error: expected specifier before acpi_integer
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
dingfelder
Apprentice
Apprentice


Joined: 27 Jun 2007
Posts: 162
Location: New Zealand

PostPosted: Fri Jul 06, 2007 3:42 am    Post subject: kernel config error: expected specifier before acpi_integer Reply with quote

did a make menuconfig on linux-2.6.21-gentoo-r3

changed nothing except some sound card stuff

then make && make make && make modules_install

failed with:

In file included from arch/i386/kernel/acpi/cstate.c:16:
include/acpi/processor.h:88: error: expected specifier-qualifier-list before 'acpi_integer'
include/acpi/processor.h:106: error: expected specifier-qualifier-list before 'acpi_integer'
include/acpi/processor.h:167: error: expected specifier-qualifier-list before 'acpi_handle'
include/acpi/processor.h:274: warning: 'struct acpi_device' declared inside parameter list
include/acpi/processor.h:274: warning: its scope is only this definition or declaration, which is probably not what you want
include/acpi/processor.h:277: warning: 'struct acpi_device' declared inside parameter list
make[2]: *** [arch/i386/kernel/acpi/cstate.o] Error 1
make[1]: *** [arch/i386/kernel/acpi] Error 2
make: *** [arch/i386/kernel] Error 2

ACPI is not enabled in menuconfig, so what could be wrong?
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Fri Jul 06, 2007 3:55 am    Post subject: Re: kernel config error: expected specifier before acpi_inte Reply with quote

dingfelder wrote:

then make && make make && make modules_install


make && make? Why? Is that correct? Ok, save the .config file to somewhere, run make mrproper, put the .config file back into /usr/src/linux, then try a single 'make'. Oh, and check .config for any ACPI variables.
_________________
Thomas S. Howard


Last edited by didymos on Fri Jul 06, 2007 4:05 am; edited 2 times in total
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Fri Jul 06, 2007 3:58 am    Post subject: Reply with quote

"make make"? Compile the kernel properly:
Code:
make clean bzImage modules modules_install
Back to top
View user's profile Send private message
dingfelder
Apprentice
Apprentice


Joined: 27 Jun 2007
Posts: 162
Location: New Zealand

PostPosted: Fri Jul 06, 2007 4:14 am    Post subject: Reply with quote

sorry, that was a typo here, I did it right on my system:

Code:
make && make modules_install


(which is how the handbook says to bo it by the way)

just for curiosity's sake, where is
Code:
make clean bzImage modules modules_install

from?

now, back to the issue at hand, I re-ran menuconfig and determined that there is a second section within the power settings section that referrs to ACPI

I commented it out and all is good.

Thanks for the assistance.
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Fri Jul 06, 2007 4:17 am    Post subject: Reply with quote

It's from:
Code:
cd /usr/src/linux
make help

And finally getting reliable kernel recompilations :)
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Fri Jul 06, 2007 4:38 am    Post subject: Reply with quote

Really, all you need is "make clean && make", since make includes the vmlinux, modules, and bzImage targets. And, if it's just a new module or two, you probably don't need to run clean, but better safe and all that.
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Fri Jul 06, 2007 4:55 am    Post subject: Reply with quote

Wrong. "make modules_install" is needed, to:
Quote:
Install all modules to INSTALL_MOD_PATH (default: /)

From "make help".

And don't forget the subtlety of recompiling the same kernel, rather than compiling a kernel for the first time.
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Fri Jul 06, 2007 5:20 am    Post subject: Reply with quote

I was leaving out the install stuff. I'm only talking about the compilation.
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum