Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
stage2 fails: /usr/src/linux/include/linux/version.h
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
ubercaffeinated
n00b
n00b


Joined: 06 Jan 2005
Posts: 22

PostPosted: Thu Jan 06, 2005 7:38 pm    Post subject: stage2 fails: /usr/src/linux/include/linux/version.h Reply with quote

I posted the following in the "Installation" forum before noticing that there is a forum for ppc. Sorry for the dual-posting.


Hello,

I am new to Gentoo. I am trying to install Gentoo on my Apple G4 emac. I am installing from a stage 2 tarball (stage2-g4-2004.3.tar.bz2) . I followed all the instructions in the ppc handbook. Everything worked perfect upto section 6.d - "progressing from stage 2 to stage 3". In that section, i did

Code:
emerge --fetchonly system


and then

Code:
 emerge system


I then went home and came back today to see that the build was not successful. The error says "media-sound/alsa-driver-0.9.8 failed"
A little bit above that, it says "/usr/src/linux/include/linux/version.h" not found.

I went to /usr/src and saw that linux is a symlink to linux-2.6.9-gentoo-r9. So, I went to /usr/src/linux-2.6.9-gentoo-r9/include/linux and indeed, there is no version.h file there. The closest file is vermagic.h

Since I am new to Gentoo, I would also like to know this : I have "alsa" in my USE variable. Would changing that to "-alsa" make the system not try to install the media-sound package? Or will the system try to install the media-sound package anyway and only refrain from building in alsa support for those applications that have optional alsa support?

Thanks a lot!
Back to top
View user's profile Send private message
seank
l33t
l33t


Joined: 08 Jul 2004
Posts: 686

PostPosted: Fri Jan 07, 2005 12:45 am    Post subject: Reply with quote

You need to install the kernel sources before compiling alsa-driver.
Back to top
View user's profile Send private message
ubercaffeinated
n00b
n00b


Joined: 06 Jan 2005
Posts: 22

PostPosted: Fri Jan 07, 2005 2:10 am    Post subject: Reply with quote

sean_micken wrote:
You need to install the kernel sources before compiling alsa-driver.


I am following the instructions in the ppc handbook (I am installing from a minimal liveCD and I am installing a stage2 tarball. I dont already have an older Gentoo on my system)

In the handbook, the step of installing the kernel sources comes after the current step - (moving from stage2 to stage3 is finished.

Based on a suggestion in the installation forum, I have changed the alsa to -alsa in my /etc/make.conf file and am re-emerging.

Thanks!!!
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Fri Jan 07, 2005 2:51 am    Post subject: Reply with quote

What seems to have happened is that the alsa use flag pulled in the alsa-driver because you didn't have any kernel sources installed. Once you've installed a kernel, the driver will not be installed because it is part of the kernel. So, either installing the kernel sources or removing the alsa flag would have fixed this problem. :)

Good luck!
Back to top
View user's profile Send private message
ubercaffeinated
n00b
n00b


Joined: 06 Jan 2005
Posts: 22

PostPosted: Fri Jan 07, 2005 3:03 am    Post subject: Reply with quote

JoseJX wrote:
What seems to have happened is that the alsa use flag pulled in the alsa-driver because you didn't have any kernel sources installed. Once you've installed a kernel, the driver will not be installed because it is part of the kernel. So, either installing the kernel sources or removing the alsa flag would have fixed this problem. :)

Good luck!


Thanks.

I will have to follow the procedure in the Gentoo ALSA guide to set up the alsa driver since as per the guide, the driver is supposed to be more advanced than the code present in the kernel.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Fri Jan 07, 2005 3:15 am    Post subject: Reply with quote

I *really* recommend against using the alsa-driver ebuild unless you know what you're doing and you have a reason for using the newer driver. Although the ebuild can work, using the built in kernel version is much easier than the alsa-driver ebuild. Yes, the kernel versions are a little older than the ebuild ones (1.0.6 in kernel 2.6.9 vs. 1.0.8_rc1 for the available ebuild) but the built in kernel versions should be more than sufficient for most applications. Also, the latest version marked ppc stable is 0.98 which is an extremely old version. If you do decide you need the ebuild version, please make sure you use a recent one (1.0.6 or better).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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