View previous topic :: View next topic |
Author |
Message |
MIP n00b
Joined: 26 Jan 2003 Posts: 2
|
Posted: Sun Jan 26, 2003 9:47 pm Post subject: Problem compiling the kernel on install. |
|
|
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 |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Sun Jan 26, 2003 10:20 pm Post subject: |
|
|
First thing to try is "source /etc/profile". _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
calmtom n00b
Joined: 03 Jan 2003 Posts: 19
|
Posted: Sun Jan 26, 2003 11:18 pm Post subject: |
|
|
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 |
|
|
MIP n00b
Joined: 26 Jan 2003 Posts: 2
|
Posted: Mon Jan 27, 2003 12:25 am Post subject: |
|
|
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 |
|
|
gilesc n00b
Joined: 01 Dec 2002 Posts: 40
|
Posted: Fri Mar 07, 2003 12:41 pm Post subject: Linux 2.4.18 or 2.4.20 |
|
|
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 |
|
|
Weeve Retired Dev
Joined: 30 Oct 2002 Posts: 641
|
Posted: Sat Mar 08, 2003 12:18 am Post subject: |
|
|
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 |
|
|
|