View previous topic :: View next topic |
Author |
Message |
KeysX n00b
Joined: 27 Apr 2004 Posts: 9 Location: USA
|
Posted: Tue Apr 27, 2004 2:19 pm Post subject: Bootstrapping problem |
|
|
Hello everbody. This is my first time working with Linux, and I have decided to try Gentoo and start from stage one. I encountered several problems along the way, and restarted the install several times. This last time, I made it to bootstrapping with no errors, however, about half an hour, or 45 minutes into bootstrapping, it fails. This is what I have on my screen when it fails:
Code: |
Please submit a full bug report.
See <URL:http://bugs.gentoo.org/> for instructions
{standard input}: Assembler messages:
{standard input}:14769: Warning: end of file not at end of a line; newline inserted
make[3]: *** [elf32.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -DTRAD_CORE -I. -I. -I./../include -I./../intl -I../intl -W -Wall -Wstrict-prototypes -Wmissing-prototypes -03 -mcpu=i686 -funroll-loops -pipe -c elf.c -o elf.o >/dev/null 2>&1
make[3]: Leaving directory '/var/tmp/portage/binutils-2.14.90.0.7-r4/work/binutils-2.14.90.0.7/bfd'
make[2]: *** [all-recursive] Error 1
make[2] Leaving directory '/var/tmp/portage/binutils-2.14.90.0.7-r4/work/binutils-2.14.90.0.7/bfd'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory '/var/tmp/portage/binutils-2.14.90.0.7-r4/work/binutils-2.14.90.0.7/bfd'
make: *** [all-bfd] Error 2
!!! ERROR: sys-devel/binutils-2.14.90.0.7-r4 failed.
!!! Function src_compile, LIne 116, Exitcode 2
!!! (no error message) |
Any help would be great. |
|
Back to top |
|
|
jkt Retired Dev
Joined: 06 Feb 2004 Posts: 1250 Location: Prague, Czech republic, EU
|
Posted: Tue Apr 27, 2004 2:29 pm Post subject: |
|
|
try to shift+pgup to scroll up and include more output. (you can't switch between VC, it'll erase the cache!)
and of course try to `emerge sync` and then do the bootstrap phase again |
|
Back to top |
|
|
KeysX n00b
Joined: 27 Apr 2004 Posts: 9 Location: USA
|
Posted: Tue Apr 27, 2004 2:37 pm Post subject: |
|
|
I scrolled up, and I see:
Code: |
Out of Memory: Killed process 25890 (cc1).
gcc: Internal error: Terminated (pogram cc1)
|
Could that be fixed with more RAM, or swap? |
|
Back to top |
|
|
jkt Retired Dev
Joined: 06 Feb 2004 Posts: 1250 Location: Prague, Czech republic, EU
|
Posted: Tue Apr 27, 2004 2:48 pm Post subject: |
|
|
yes, how much memory do you have now?
there's something about 300MB in the handbook... try to add swap. |
|
Back to top |
|
|
KeysX n00b
Joined: 27 Apr 2004 Posts: 9 Location: USA
|
Posted: Tue Apr 27, 2004 2:51 pm Post subject: |
|
|
I only have 64MB of ram, and I set up a 512MB swap, as the installation guide told me to do. |
|
Back to top |
|
|
jkt Retired Dev
Joined: 06 Feb 2004 Posts: 1250 Location: Prague, Czech republic, EU
|
Posted: Tue Apr 27, 2004 2:58 pm Post subject: |
|
|
mkswap /dev/swapdevice
swapon /dev/swapdevice
64+512 is more than enough. |
|
Back to top |
|
|
KeysX n00b
Joined: 27 Apr 2004 Posts: 9 Location: USA
|
Posted: Tue Apr 27, 2004 3:00 pm Post subject: |
|
|
Then it's obviously not that. I'll try emerge sync and then bootstrapping again.
Edit: emerge sync told me I am up to date. I've already tried bootstrapping again, I've recieved this error twice. I don't know what to do now. |
|
Back to top |
|
|
jkt Retired Dev
Joined: 06 Feb 2004 Posts: 1250 Location: Prague, Czech republic, EU
|
Posted: Tue Apr 27, 2004 3:29 pm Post subject: |
|
|
try to run top - does it say anything about swap? |
|
Back to top |
|
|
KeysX n00b
Joined: 27 Apr 2004 Posts: 9 Location: USA
|
Posted: Fri Apr 30, 2004 1:14 am Post subject: |
|
|
Ok I have made it further. But now I am having an error with GRUB.
Code: | kernel /kernel-2.4 root=/dev/ram0 init=/linuxrc real_root=/dev/hda3
Error 15 File not found |
This is my problem. I am not sure why this is not working, so any help would be great. |
|
Back to top |
|
|
jkt Retired Dev
Joined: 06 Feb 2004 Posts: 1250 Location: Prague, Czech republic, EU
|
Posted: Fri Apr 30, 2004 11:01 am Post subject: |
|
|
ok, I'll assume that your swap is working (try to exec `dmesg | grep swap`), there should be a line saying something like "adding 512000k of swap at /dev/hda3 priority -2" or something similar.
it seems that you're running `genkernel`, right? I've never done it, I'm compiling my kernels "by hand" - don't afraid of that, it's very easy if you have some knowledge about what filesystems you're using, your processor, IDE chipset, etc etc.
GRUB says "Error 15 File not found" - seems that there's some missing file . Try to post your /boot/grub/grub.conf (if you followed the installation guide and thus have separate /boot partition, you'll have to mount it manually - `mount /boot` as root) |
|
Back to top |
|
|
cosmicnut Tux's lil' helper
Joined: 26 Apr 2004 Posts: 94
|
Posted: Fri Apr 30, 2004 12:12 pm Post subject: |
|
|
Check the name of your Kernel
You can find out the exact name by calling
if you get a device error the you will need to mount your boot partition
Code: | mount /dev/{your boot partition ID} /boot |
otherwise you should get a file list of the boot folder. Make sure you get the Kernel name exact, including capital letters (took me ages to realise why mine didin't work until I remembered that one!) |
|
Back to top |
|
|
Codfishbaut n00b
Joined: 27 Apr 2004 Posts: 31
|
Posted: Sat May 01, 2004 3:16 pm Post subject: |
|
|
yes, keys, you are probably using the kernel kernel-2.4.25-gentoo-r2. since that is the one i am using, and you gave me your copy of the cd! |
|
Back to top |
|
|
|