View previous topic :: View next topic |
Author |
Message |
eulipion2 n00b
Joined: 04 Jul 2006 Posts: 26 Location: Huntington, WV
|
Posted: Tue Jul 04, 2006 4:08 am Post subject: Errors in kernel compile |
|
|
Hello,
This is my first time (second, if you count earlier today) trying to install Gentoo, or any other Un*x for that matter. I am running an old iMac G3 that I recently used my OS X install cd to format into a Unix architecture, then started with the user guide from step one, following religiously, except where necessary for my platform. Following the user installation guide I keep getting a series of errors when I make it to step 7d. Using Genkernel. I chose the genkernel route as this is my first time and I wanted to make sure it'd work. But it doesn't. Here's what I did, starting from step six:
6. Choosing the right profile:
#ls -FGg /etc/make.profile
/etc/make.profile -> ../usr/portage/profiles/default-linux/ppc/ppc32/2006.0/G3/
Configuring the USE variable:
# nano -w /etc/make.conf
CFLAGS="-O2 -mpcu=750 -fno-strict-aliasing -pipe"
CHOST="powerpc-unknown-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
USE="gtk gnome kde qt dvd aac alsa aim apache apache2 bash-completion bluetooth clamav cups dvd ftp"
**NOTE: did NOT alter USE variable first time, same results**
7a. Timezone:
# cp /usr/share/zoneinfo/EST5EDT /etc/localtime
7b. Installing the sources:
# USE="-doc symlink" emerge gentoo-sources
# ls -l /usr/src/linux
/usr/src/linux -> linux-2.6.16-gentoo-r9
7e. Alternate: Using genkernel:
# emerge genkernel
# zcat /proc/config.gz > /usr/share/genkernel/ppc/kernel-config-2.6
# genkernel --genzimage all
I'll print out the errors from /var/log/genkernel.log in my next post.
Last edited by eulipion2 on Tue Jul 04, 2006 5:33 am; edited 2 times in total |
|
Back to top |
|
|
eulipion2 n00b
Joined: 04 Jul 2006 Posts: 26 Location: Huntington, WV
|
Posted: Tue Jul 04, 2006 4:28 am Post subject: /var/log/genkernel.log |
|
|
From the top:
Linux Kernel 2.6.16-gentoo-r9 for ppc...
WARNING: Failed to mount /boot!
...
awk: cmd. line: 1: fatal: cannot open file `/usr/src/linux-2.6.16-gentoo-r9/include/linux/version.h' for reading (No such file or directory)
...
scripts/kconfig/zconf.tab.c:2024: internal compiler error: Segmentation fault
...
make[1]: *** [scripts/kconfig/zconf.tab.o] Error 1
make: *** [oldconfig] Error 2
...
Error: Failed to compile the "oldconfig" target...
...
COMMMAND: make -j2 CC="gcc" LD="ld" AS="as" clean
awk: cmd. line:1: fatal: cannot openfile `usr/src/linux-2.6.16-gentoo-r9/include/linux/version.h' for reading (No such file or directory)
...
scripts/kconfig/conf -s arch/powerpc/Kconfig
.config:20:warning: trying to assigng nonexistent symbol CLEAN_COMPILE
.config:36:warning: trying to assigng nonexistent symbol KOBJECT_UEVENT
.config:456:warning: trying to assigng nonexistent symbol PDC202XX_FORCE
.config:585:warning: trying to assigng nonexistent symbol SCSI_QLA2XXX
.config:681:warning: trying to assigng nonexistent symbol IEEE1394_CMP
.config:682:warning: trying to assigng nonexistent symbol IEEE1394_AMDTP
.config:862warning: trying to assigng nonexistent symbol IPW_DEBUG
.config:1127:warning: trying to assigng nonexistent symbol I2C_KEYWEST
.config:1261:warning: trying to assigng nonexistent symbol FB_ATY_XL_INIT
...
Console input/output is redirected. Run 'make oldconfig' to update configuration
make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** [include/linux/autoconf.h] Error 2
...
ERROR: failed to compie the "prepare" target...
-- Grepping log... --
-- End log... --
Can anybody make something of this? Will I need to start from scratch again? (I know I shouldn't have, but I really had to turn off the system for the night. Lack of wireless range forced me to put the box in an inconvenient place to get a good signal.)
Thanks in advance!!! |
|
Back to top |
|
|
idella4 Retired Dev
Joined: 09 Jun 2006 Posts: 1600 Location: Australia, Perth
|
Posted: Tue Jul 04, 2006 9:44 am Post subject: |
|
|
That does look awkward.
Firstly have you looked to see if the .h file is actaually there?
I just looked at it; it has 3 lines and all are commented out.
Can try re-emeging the genkernel; it might have just missed it.
One other possible source; if you mounted the new gentoo system from live-cd,
did you execute
Code: |
mount -t proc proc /proc
|
I often missed it and later found it prevented some packages from compiling. _________________ idella4@aus |
|
Back to top |
|
|
Maedhros Bodhisattva
Joined: 14 Apr 2004 Posts: 5511 Location: Durham, UK
|
Posted: Tue Jul 04, 2006 12:11 pm Post subject: Re: /var/log/genkernel.log |
|
|
eulipion2 wrote: | Code: | scripts/kconfig/zconf.tab.c:2024: internal compiler error: Segmentation fault |
|
That doesn't look healthy. Segmentation faults are often (though not always) caused by faulty hardware, mainly RAM. You can test it by typing memtest at the boot(): prompt when booting from a Gentoo livecd.
Please could you post your emerge --info, as well? There may be something there that's not quite right. _________________ No-one's more important than the earthworm. |
|
Back to top |
|
|
eulipion2 n00b
Joined: 04 Jul 2006 Posts: 26 Location: Huntington, WV
|
Posted: Tue Jul 04, 2006 11:01 pm Post subject: |
|
|
boot: memtest
cd:2,memtest: Unknown or corrupt filesystem
And where is my emerge --info?
The user guide says to use Code: | mount -t proc none /mnt/gentoo/proc |
Should I instead use what you typed?
Thanks! |
|
Back to top |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Wed Jul 05, 2006 12:10 pm Post subject: |
|
|
Moved from Installing Gentoo to Gentoo on PPC. _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
talk is cheap. supply exceeds demand |
|
Back to top |
|
|
ToeiRei Veteran
Joined: 03 Jan 2005 Posts: 1191 Location: Austria
|
Posted: Wed Jul 05, 2006 1:11 pm Post subject: Re: /var/log/genkernel.log |
|
|
Quote: |
Linux Kernel 2.6.16-gentoo-r9 for ppc...
WARNING: Failed to mount /boot!
...
awk: cmd. line: 1: fatal: cannot open file `/usr/src/linux-2.6.16-gentoo-r9/include/linux/version.h' for reading (No such file or directory)
...
...
scripts/kconfig/conf -s arch/powerpc/Kconfig
.config:20:warning: trying to assigng nonexistent symbol CLEAN_COMPILE
.config:36:warning: trying to assigng nonexistent symbol KOBJECT_UEVENT
.config:456:warning: trying to assigng nonexistent symbol PDC202XX_FORCE
.config:585:warning: trying to assigng nonexistent symbol SCSI_QLA2XXX
.config:681:warning: trying to assigng nonexistent symbol IEEE1394_CMP
.config:682:warning: trying to assigng nonexistent symbol IEEE1394_AMDTP
.config:862warning: trying to assigng nonexistent symbol IPW_DEBUG
.config:1127:warning: trying to assigng nonexistent symbol I2C_KEYWEST
.config:1261:warning: trying to assigng nonexistent symbol FB_ATY_XL_INIT
|
I got a simmilar Problem on x86. In my case, genkernel was broken. Maybe try downgrading genkernel first.
Rei _________________ Please stand by - The mailer daemon is busy burning your messages in hell... |
|
Back to top |
|
|
JoseJX Retired Dev
Joined: 28 Apr 2002 Posts: 2774
|
Posted: Wed Jul 05, 2006 3:18 pm Post subject: |
|
|
Genkernel doesn't really work with 2.6.16, the ppc architecture changed some important settings (ARCH changed from ppc to powerpc). If you really want to use Genkernel, it's best to use 2.6.15. I would recommend using make pmac32_defconfig instead to create a default config which should boot on your machine, then tweaking it to remove the stuff you don't need. It's easier than it sounds. :) _________________ Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml |
|
Back to top |
|
|
eulipion2 n00b
Joined: 04 Jul 2006 Posts: 26 Location: Huntington, WV
|
Posted: Wed Jul 05, 2006 6:46 pm Post subject: |
|
|
Thanks to everybody so far!
JoseJX,
How would I go about doing what you said? I'm very new to the technical aspect of Unix/Linux, having only tinkered with it via Terminal in Mac OS X (did manage to upgrade VIM, Apache2, PHP, and MySQL, but that's it)
As for the prospect of a hardware problem, I've been able to install both Mac OS 10.4 and I'm at 84% on my Yellow Dog install, which I'd keep, but you can't really learn anything if the computer does it for you, so I'd much rather do Gentoo for the learning experience.
Thanks! |
|
Back to top |
|
|
JoseJX Retired Dev
Joined: 28 Apr 2002 Posts: 2774
|
|
Back to top |
|
|
eulipion2 n00b
Joined: 04 Jul 2006 Posts: 26 Location: Huntington, WV
|
Posted: Thu Jul 06, 2006 1:59 am Post subject: |
|
|
Okay, here's a quick question, as the documentation doesn't really say. When it comes to assigning filesystems, do I need to assign them to my bootstrap and swap partitions, or just my root?
So far today I've tried installing Yellow Dog and Xubuntu, both of which failed, YDL making it to the last step (I think) before dying with "Framebuffer ioctl failed". I can get OS X up and running perfectly, albeit a little slow due to the age of my machine. However, since I have a new-ish PowerBook with OS 10.4 as my main computer, and I really want to learn about Linux, I find it pointless to not have some fun. Why won't anyting work? AHHHHHHH!
</freak-out>
Thanks! |
|
Back to top |
|
|
JoseJX Retired Dev
Joined: 28 Apr 2002 Posts: 2774
|
Posted: Thu Jul 06, 2006 3:32 am Post subject: |
|
|
I assume you're talking about the fstab. As it says in the handbook: Quote: | ... if your architecture doesn't require a /boot partition (such as Apple PPC machines), don't copy it verbatim. | . You do *not* need a boot partition in your fstab. The bootstrap partition is a seperate and different thing and is not added to the fstab. You do need to add your swap and root to your fstab for linux to know about it. I guess the best way to think about it is that if you will be using it from linux (swap, root) mention it in your fstab. If you are not doing anything to it (bootstrap, it's only for booting, or the partition map, used only for partition geometry), don't add it to your fstab. Okay?
I can't comment on YDL, sorry. _________________ Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml |
|
Back to top |
|
|
eulipion2 n00b
Joined: 04 Jul 2006 Posts: 26 Location: Huntington, WV
|
Posted: Thu Jul 06, 2006 4:16 am Post subject: |
|
|
So in the docs it says that I can't delete the apple_partition_map, then it says to press "b" to make an "Apple_Bootstrap" partition, then "c" to make a swap and a root partition. Are you saying I can skip the bootstrap partition, or are you saying I don't need to "mkfs.ext3 /dev/hda2"? |
|
Back to top |
|
|
JoseJX Retired Dev
Joined: 28 Apr 2002 Posts: 2774
|
Posted: Thu Jul 06, 2006 4:25 am Post subject: |
|
|
Okay, sorry you weren't clear earlier and I thought you were talking about a later section in the handbook.
You *do* need to follow the handbook here. You can't delete the partition map, it contains the partition information, so deleting it is like erasing the drive. You *do* need to create the bootstrap partition. It will contain yaboot on an HFS filesystem so your computer can boot off of it. You do *not* need to do anything to the bootstrap partition, it's taken care of later by mkofboot. _________________ Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml |
|
Back to top |
|
|
eulipion2 n00b
Joined: 04 Jul 2006 Posts: 26 Location: Huntington, WV
|
Posted: Thu Jul 06, 2006 4:55 am Post subject: |
|
|
One more quick question. I think I'm going to try a download install instead of from CD. For an old iMac G3 would I need the stage 3 PPC tarball or the G3 one? Then I'll try using manual configure instead of genkernel and try again. If I follow the manual exactly, assuming I've downloaded the correct stage3 tarball, should it really be that much trouble? I hope this works, and thanks for the help!
Thanks! |
|
Back to top |
|
|
JoseJX Retired Dev
Joined: 28 Apr 2002 Posts: 2774
|
Posted: Thu Jul 06, 2006 1:26 pm Post subject: |
|
|
Both will work, but since you have a G3 processor, you want the G3 version. Note that G3 != G4, the G4 builds have altivec enabled which isn't supported on the G3. _________________ Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml |
|
Back to top |
|
|
eulipion2 n00b
Joined: 04 Jul 2006 Posts: 26 Location: Huntington, WV
|
Posted: Thu Jul 06, 2006 3:36 pm Post subject: |
|
|
How about the march flag in step 5e? I'm not entirely sure what to put for that. And I thought I read somewhere that PPC didn't support the march flag. Suggestions? |
|
Back to top |
|
|
JoseJX Retired Dev
Joined: 28 Apr 2002 Posts: 2774
|
Posted: Thu Jul 06, 2006 4:04 pm Post subject: |
|
|
As it says in the handbook, (this is a "common" section for all arches) see /etc/make.conf.example for detailed suggestions for your architecture. _________________ Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml |
|
Back to top |
|
|
eulipion2 n00b
Joined: 04 Jul 2006 Posts: 26 Location: Huntington, WV
|
Posted: Thu Jul 06, 2006 7:59 pm Post subject: |
|
|
Okay, I've made it to part 10: Bootloader. I made it to Code: | livecd gentoo # yabootconfig --chroot /mnt/gentoo | and get the following:
Code: | yabootconfig sets up your system to boot directly from your hard disk, without the need for a boot CD, floppy, or a network boot. Install yaboot boostrap on /dev/hda2 to boot Linux from /dev/hda4? [Yes] |
then
Code: | Creating a simple /mnt/gentoo/etc/yaboot.conf...
yabootconfig: Cannot find a kernel, please locate one |
Now, I know I compiled the kernel. Where *should* it be? And if nothing else, how do I exit yabootconfig so I can find the darn thing?
Thanks |
|
Back to top |
|
|
eulipion2 n00b
Joined: 04 Jul 2006 Posts: 26 Location: Huntington, WV
|
Posted: Thu Jul 06, 2006 10:39 pm Post subject: |
|
|
Contents of my /mnt/gentoo/boot directory include 2.6.16-gentoo-r9, but when I point yabootconfig to it it says no such file or directory. Why won't it recognize my kernel? |
|
Back to top |
|
|
JoseJX Retired Dev
Joined: 28 Apr 2002 Posts: 2774
|
Posted: Fri Jul 07, 2006 12:42 am Post subject: |
|
|
Alright, it looks like yabootconfig needs some fixing. :p Try this patch: http://dev.gentoo.org/~josejx/yaboot-kernel.patch like this:
Code: |
cd /
wget http://dev.gentoo.org/~josejx/yaboot-kernel.patch
cd /mnt/gentoo/usr/sbin/
patch < /yaboot-kernel.patch
/mnt/gentoo/usr/sbin/yabootconfig --chroot /mnt/gentoo
rm /yaboot-kernel.patch
|
And see if it works as expected now. If it does, I'll send the patch upstream. :)
Thanks! _________________ Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Last edited by JoseJX on Fri Jul 07, 2006 3:32 pm; edited 2 times in total |
|
Back to top |
|
|
eulipion2 n00b
Joined: 04 Jul 2006 Posts: 26 Location: Huntington, WV
|
Posted: Fri Jul 07, 2006 5:36 am Post subject: |
|
|
JoseJX,
Thanks for the patch. I'm about to use it, but quick question. Back on step 9e, if I chose ext3 as my filesystem, do I need to unpack anything? This Debian article says that ext3 has a tool set called e2fsprogs. Do I need to unpack it? Is it included on the install disc? Once I make it past this, it's on to the patch and hopefully everything will work.
Thanks |
|
Back to top |
|
|
JoseJX Retired Dev
Joined: 28 Apr 2002 Posts: 2774
|
|
Back to top |
|
|
eulipion2 n00b
Joined: 04 Jul 2006 Posts: 26 Location: Huntington, WV
|
Posted: Fri Jul 07, 2006 3:13 pm Post subject: |
|
|
Okay, here's a problem. Starting with step 10:
Code: | # exit #Now my prompt looks like "livecd / #"
# mount -o bind /dev /mnt/gentoo/dev
# mount -o bind /sys /mnt/gentoo/sys
# chroot /mnt/gentoo /bin/bash
# /usr/sbin/env-update && source /etc/profile
#emerge yaboot
#wget http://dev.gentoo.org/~josejx/yaboot-kernel.patch
#cd /mnt/gentoo/usr/sbin
bash: cd: /mnt/gentoo/usr/sbin/: No such file or directory |
Looking in /mnt I only have cdrom and floppy directories. What went wrong? Did I forget to mount something, or mount it wrong?
Thanks
EDIT: Trying to exit my way to wherever I needed to be, as cd wouldn't work for me, my prompt now looks like "livecd root #" How do I get back to where I need, and finish this thing off? I feel like I'm close... |
|
Back to top |
|
|
JoseJX Retired Dev
Joined: 28 Apr 2002 Posts: 2774
|
Posted: Fri Jul 07, 2006 3:32 pm Post subject: |
|
|
No, I was just expecting you to do it all outside of the chroot. :) Just type exit, and then follow the directions. _________________ Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml |
|
Back to top |
|
|
|