Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem compiling the kernel on install.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
MIP
n00b
n00b


Joined: 26 Jan 2003
Posts: 2

PostPosted: Sun Jan 26, 2003 9:47 pm    Post subject: Problem compiling the kernel on install. Reply with quote

I'm new to Gentoo and for experience decide to start the build from stage1 on an ultra2. All has gone ok until I try to build the Kernel. I've followed the sparc install guide:

#emerge egcs64-sparc

Downloaded linux-2.4.18 from kernel.org and extracted to /usr/src etc.

Copied a .config:

#cp arch/`uname -m`/defconfig .config

Then performed:

#make ARCH=sparc64 oldconfig dep clean vmlinux modules

The first action seems to complete successfully but then I get the following error message:

*** End of Linux kernel configuration.
*** Check the top-level Makefile for additional configuration.
*** Next, you must run 'make dep'

gcc -Wall -Wstrict-prototypes -02 -fomit-frame-pointer -o scripts/mkdep scripts/mkdep.c
/bin/bash: gcc: command not found
make: *** [scripts/mkdep] Error 127

Also is it recommended to apply any patches to the kernel before compiling?

Any help or suggestions appreciated.
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Sun Jan 26, 2003 10:20 pm    Post subject: Reply with quote

First thing to try is "source /etc/profile".
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
calmtom
n00b
n00b


Joined: 03 Jan 2003
Posts: 19

PostPosted: Sun Jan 26, 2003 11:18 pm    Post subject: Reply with quote

The default config file has devfs and devfs_mount disabled. You should definitely edit the file to include support in the kernel for both of those or your system won't boot. I made that stupid mistake the first time around.
Back to top
View user's profile Send private message
MIP
n00b
n00b


Joined: 26 Jan 2003
Posts: 2

PostPosted: Mon Jan 27, 2003 12:25 am    Post subject: Reply with quote

Thanks for the posts above, source /etc/profile got me on my way again (compile still going). Unfortunately I didn't see the second post before I started so I'll have to compile again after editing the .config to include devfs and devfs_mount.
On studying the install guide again I can see that Code listing 5.3 enables the devfs and devfs_mount option but unfortunately being a newbie I took the easy option and just copied the .config.
Will advise how I get on.

Thanks.
Back to top
View user's profile Send private message
gilesc
n00b
n00b


Joined: 01 Dec 2002
Posts: 40

PostPosted: Fri Mar 07, 2003 12:41 pm    Post subject: Linux 2.4.18 or 2.4.20 Reply with quote

This reminded me of a Q...

The docs mention to download kernel version 2.4.18. Is there any particular reason for this? Are there problems with sparc and 2.4.20?
Back to top
View user's profile Send private message
Weeve
Retired Dev
Retired Dev


Joined: 30 Oct 2002
Posts: 641

PostPosted: Sat Mar 08, 2003 12:18 am    Post subject: Reply with quote

Nope, there's no problem with 2.4.20. In fact that's what sparc-sources uses :) At the time the document was written we didn't have one of the kernels in portage tested for sparc, so they were all masked. If you want, either vanilla-sources or sparc-sources should work just fine for you.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc 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