LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Problems compiling kernel 2.6.8.1 (make bzImage) (http://www.linuxquestions.org/questions/linux-general-1/problems-compiling-kernel-2-6-8-1-make-bzimage-219293/)

omegaworks 08-18-2004 12:06 PM

Problems compiling kernel 2.6.8.1 (make bzImage)
 
Hello everyone. Im trying to follow DrOzz's excellant thread about compiling kernels. Im compiling the 2.6.8.1 kernel from source, all was well until I tryed executing "make bzImage"

Here's what the console gave me:
Code:

debian:/home/src/kernel/linux# make bzImage
  CHK    include/linux/version.h
scripts/kconfig/conf -s arch/i386/Kconfig
#
# using defaults found in .config
#
  SPLIT  include/linux/autoconf.h -> include/config/*
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
  CHK    include/asm-i386/asm_offsets.h
  CC      init/main.o
  CHK    include/linux/compile.h
  CC      init/do_mounts.o
  LD      init/mounts.o
  LD      init/built-in.o
scripts/Makefile.build:13: usr/Makefile: No such file or directory
make[1]: *** No rule to make target `usr/Makefile'.  Stop.
make: *** [usr] Error 2

Im not sure what to do from here.
Replies are appreciated :)

kevinalm 08-18-2004 12:30 PM

I'm guessing here, but I suspect that imported a .config file without subsequently running make oldconfig (or menuconfig,or xconfig). The kernel compile does not directly use .config. .config is input to one of the config tools which creates Makefiles in accord with .config. The make bzImage (and make and make modules_install) use these created Makefiles directly.

omegaworks 08-18-2004 06:41 PM

Quote:

Originally posted by kevinalm
I'm guessing here, but I suspect that imported a .config file without subsequently running make oldconfig (or menuconfig,or xconfig). The kernel compile does not directly use .config. .config is input to one of the config tools which creates Makefiles in accord with .config. The make bzImage (and make and make modules_install) use these created Makefiles directly.
That's odd... I ran make xconfig and chose the options for my kernel. I then went to File > Save As in the xconfig menu, and saved the options as .config (the default, already-imputted, filename) in /home/src/kernel/linux-2.6.8.1 (the default, already-navagated-to directory).

Is there something else I have to do?

kevinalm 08-18-2004 06:54 PM

Well, that shoots down my idea. xconfig should take care of the problem I suggested. It's a rather strange error, not being able to find one of the recursive Makefiles. Something went very badly wrong. Maybe a corrupt download of the kernel source? :confused:


All times are GMT -5. The time now is 05:02 AM.