Link to home
Start Free TrialLog in
Avatar of tmonteit
tmonteitFlag for Afghanistan

asked on

Fedora: Build Error. How to fix?

uilding latest 2.6.6 from kernel.org
What does this mean?  And how do I fix it?

#make modules_install
  INSTALL lib/zlib_deflate/zlib_deflate.ko
  INSTALL drivers/media/video/zr36016.ko
  INSTALL drivers/media/video/zr36050.ko
  INSTALL drivers/media/video/zr36060.ko
  INSTALL drivers/media/video/zr36067.ko
if [ -r System.map ]; then /sbin/depmod -ae -F System.map  2.6.6; fi
make: *** [_modinst_post] Error 143

---- next command ---
#make install
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
  CHK     include/linux/compile.h
Kernel: arch/i386/boot/bzImage is ready
sh /usr/src/linux-2.6.6/arch/i386/boot/install.sh 2.6.6 arch/i386/boot/bzImage System.map ""
/sbin/new-kernel-pkg: line 328: 20962 Terminated              depmod -ae -F /boot/System.map-$version $version
No dep file found for kernel 2.6.6
mkinitrd failed
make[1]: *** [install] Error 1
make: *** [install] Error 2
Avatar of jlevie
jlevie

Did you do a 'make dep' after the kernel config?
Avatar of tmonteit

ASKER

yes, I did a 'make dep' after the config.
Here were the results...

[root@myServer linux]# make dep
*** Warning: make dep is unnecessary now.

yes, these are the commands I executed on the new kernel
>make config
>make dep
>make
>make modules
>make modules_install #dies here.
>make install  #also dies here.

I'm new to this.  suggestions?  Shouldn't a "stable kernel" not do this?  
My mistake... 'make dep' isn't needed anymore for a 2.6 kernel.

There are other things that are needed before you can build and install a 2.6 kernel on a system that was shipped with a 2.4 kernel. I'm guessing that you are trying this on a Fedora Core 1 system and upgrading to Fedora Core 2 (which includes a 2.6.5 kernel) would make things a lot easier.

What a convoluted way of getting my firewire drive to work.  I'm containing my frustration with the educational value this exersize will give me.

Here's the latest:
----------------------
I gave up on 2.6 it simply wouldn't build.   I was able to download and successfully build 2.4.26
I have a bzImage, and System.map files that I need to register with lilo.  Moved them to /boot.  Then, went to run 'lilo.

But, lilo doesn't exist on Fedora.  I do more research and come up with the folllowing command.

'yum install lilo  - works.

Now, I run lilo:
#lilo
part_nowrite check:: Bad address

So,  now what do I do?  Fedora doesn't use lilo, so how do i register my earlier version of linux with this broken lilo?  

Its getting a bit complicated.  Can anyone give me some step-by-step things I can try?




ASKER CERTIFIED SOLUTION
Avatar of jlevie
jlevie

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You may just be running out of memory.

The same thing happened to me (error 143 from depmod, on a fresh install of fedora core 2), so I ran the depmod command by hand from the shell., and saw a "Terminated" error. I figured it might be a memory thing seeing as I only have 128MB on my machine, and top showed depmod using a ton of memory.

I killed off all X processes to free up some memory and re-ran the 'make modules_install' and it worked.