LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-20-2005, 10:17 AM   #1
raven
Member
 
Registered: Dec 2001
Location: Basel, Switzerland
Distribution: ubuntu
Posts: 297

Rep: Reputation: 31
can't compile gentoo patched kernel on ppc


Hello

I have a strange problem. I compiled my kernel (gentoo: vanilla sources 2.6.12) without probems. My problem was, that I didn't have proper powermanagement (such as sleep), so I read some docs and found out, that I need the gentoo kernels (which are already patched). So I tried to compile gentoo-sources-2.6.12. At some point of the compile process, i got following error message:

all these errors occur in drivers/ide/ppc/pmac.c lines 2174, 2175, 2184

'__ide_dma_off_quietly' undeclared (first use in this function)
...
'__ide_dma_on' undeclared (first use in this function)
'__ide_dma_timeut' undeclared (first use in this function)

So. What did go wrong? I have an up-to-date system, I did emerge sync several times, recompiled almost every possible package, but still... Another strange thing is, that some weeks earlier, i could compile gentoo sources 2.6.7...

Besides: I use gcc-3.4.4 on an Apple iBook newWorld, gentoo profile 2004.3

Thanks for any help.

raven
 
Old 06-21-2005, 03:18 AM   #2
nukkel
Member
 
Registered: Mar 2003
Location: Belgium
Distribution: Hardened gentoo
Posts: 323

Rep: Reputation: 30
Sometimes such errors are caused by a 'stale' kernel build system (dependencies in /usr/src/linux not up to date -- has nothing to do with the gentoo build system), try this:
Go to the kernel source dir, save your .config in a place out of it (/tmp or so), then do 'make mrproper', copy the .config file back, and rebuild the kernel...
The 'make mrproper' will clean out all cached dependencies, etc... I once had unresolved symbol errors and doing this fixed it!

Not sure if this will fix your problem... it could also be a bug in the patch, maybe due to not enough testing on ppc. Maybe filing a gentoo bug report may help in that case.

Good luck with it!

Last edited by nukkel; 06-21-2005 at 03:21 AM.
 
Old 06-21-2005, 06:49 AM   #3
raven
Member
 
Registered: Dec 2001
Location: Basel, Switzerland
Distribution: ubuntu
Posts: 297

Original Poster
Rep: Reputation: 31
hello

I found a soulution. I was missing a kernel option which must be activated (an option called something linke ide pci dma, and which is NOT located near the pmac dma option) very strange.

Thanks anyway.

raven
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems compiling kernel (gentoo on ppc) dauphinfay Linux - Newbie 2 08-05-2005 07:40 PM
Gentoo ppc fstab... no gentoo documentation I_Come_anon3410 Linux - Software 0 01-16-2005 10:28 PM
Emerging ppc kernel in gentoo MACSRULE Linux - Newbie 3 09-12-2004 12:48 AM
NVIDIA driver (4496) patched for kernel 2.6.x compatibility won't compile! Rodcl Linux - Hardware 5 04-26-2004 07:01 AM
gentoo kernel compile error zbrox Linux - Software 2 01-27-2004 02:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration