Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 359203 - sys-kernel/gentoo-sources-2.6.38 - drivers/built-in.o: In function `nouveau_pm_acpi_event': nouveau_pm.c:(.text+0xbfe89): undefined reference to `power_supply_is_system_supplied'
Summary: sys-kernel/gentoo-sources-2.6.38 - drivers/built-in.o: In function `nouveau_p...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL: http://git.kernel.org/?p=linux/kernel...
Whiteboard: linux-3.0
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-16 18:42 UTC by Vladimir
Modified: 2011-07-22 23:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
.config (.config,63.67 KB, text/plain)
2011-03-16 19:27 UTC, Vladimir
Details
nouveau_pm config build errror fix (nouveau_pm.patch,1019 bytes, patch)
2011-04-12 10:10 UTC, Stratos Psomadakis (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir 2011-03-16 18:42:25 UTC
When I try to build the new 2.6.38 kernel, I get the follosing error:

drivers/built-in.o: In function `nouveau_pm_acpi_event':
nouveau_pm.c:(.text+0xbfe89): undefined reference to `power_supply_is_system_supplied'
make: *** [.tmp_vmlinux1] Error 1

Reproducible: Always
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2011-03-16 18:57:42 UTC
Please attach your kernel .config
Did you run "make oldconfig" after upgrading your kernel?
Comment 2 Vladimir 2011-03-16 19:27:14 UTC
Created attachment 266177 [details]
.config

(In reply to comment #1)
> Please attach your kernel .config
> Did you run "make oldconfig" after upgrading your kernel?

No, I didn't. I usually copy the ".config" file from the old kernel folder to the new one and then do "make menuconfig", "make", "make modules_install", "make install" and that's all. Is it a wrong way?
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2011-03-18 01:39:47 UTC
(In reply to comment #2)
> Created attachment 266177 [details]
> .config
> 
> (In reply to comment #1)
> > Please attach your kernel .config
> > Did you run "make oldconfig" after upgrading your kernel?
> 
> No, I didn't.

You could try it.
Comment 4 Wormo (RETIRED) gentoo-dev 2011-03-23 06:21:21 UTC
Try setting CONFIG_POWER_SUPPLY=y
(I think you will find it is set to 'm')
Comment 5 Vladimir 2011-03-23 08:18:55 UTC
(In reply to comment #4)
> Try setting CONFIG_POWER_SUPPLY=y
> (I think you will find it is set to 'm')
Yes. It had been set to 'M'. I set it to 'Y', then run 'make oldconfig' and then it compiled fine.
So, changing the "CONFIG_POWER_SUPPLY" parameter to 'Y' IS a solution, not obvious for me though.
  Anyway, thank you for the tip! Now I can use the new kernel. :)
Comment 6 Stratos Psomadakis (RETIRED) gentoo-dev 2011-04-11 13:25:23 UTC
I think an #ifdef CONFIG_POWER_SUPPLY before the function would fix the problem, without having the user to change kernel config.

I sent an email upstream.
Comment 7 Stratos Psomadakis (RETIRED) gentoo-dev 2011-04-12 10:10:56 UTC
Created attachment 269631 [details, diff]
nouveau_pm config build errror fix

this patch was sent at the nouveau mailing list:
http://lists.freedesktop.org/archives/nouveau/2011-April/008032.html
Comment 8 Stratos Psomadakis (RETIRED) gentoo-dev 2011-07-22 23:33:32 UTC
genpatches including linux-3.0 released, and in Portage.