View previous topic :: View next topic |
Author |
Message |
antocuni n00b
Joined: 08 Jan 2005 Posts: 3
|
Posted: Sat Jan 08, 2005 7:54 pm Post subject: Cannot make kernel |
|
|
Hi,
I don't know what I've done, but I can no longer make 2.6 kernels.
I tried to unpack a vanilla source tree, then 'make xconfig':
Code: |
anto linux-2.6.10 # make xconfig
HOSTCC scripts/basic/fixdep
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
|
The strange thing is that compilation is done successfully, but make stop to work. Next invocations of make will compile other files:
Code: |
anto linux-2.6.10 # make xconfig
HOSTCC scripts/basic/split-include
make[1]: *** [scripts/basic/split-include] Error 1
make: *** [scripts_basic] Error 2
anto linux-2.6.10 # make xconfig
HOSTCC scripts/basic/docproc
make[1]: *** [scripts/basic/docproc] Error 1
make: *** [scripts_basic] Error 2
|
After a bit of invocations xconfig runs and I can configure my kernel. The problem is that 'make bzImage' doesn't compile (better: it compiles, but make thinks not). By running make several times I can compile all modules, but it seems it cannot do the final step:
Code: |
anto linux-2.6.10 # make bzImage
CHK include/linux/version.h
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
CHK include/linux/compile.h
UPD include/linux/compile.h
CC init/version.o
make[1]: *** [init/version.o] Error 1
make: *** [init] Error 2
anto linux-2.6.10 # make bzImage
CHK include/linux/version.h
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
CHK include/linux/compile.h
LD init/built-in.o
GEN .version
make: *** [.tmp_vmlinux1] Error 1
|
I have no idea how to resolve. Either 2.4 kernels and others applications compile cleanly, but 2.6 kernels don't. I tried with 2.6.7, 2.6.9 and 2.6.10 kernel and nothing works!
Please notice that I already compiled 2.6.7 and 2.6.9 on my machine, and now it suddently stopped to work.
I remember that a couple of days before trying to compile 2.6.10 I updated the portage tree, then I upgraded portage to 2.0.51-r3 and I changed make.profile to 2004.3: can the cause be one of those?
Thanks
Anto |
|
Back to top |
|
|
Optimus' Apprentice
Joined: 01 Jul 2004 Posts: 209
|
Posted: Sat Jan 08, 2005 8:03 pm Post subject: |
|
|
I'm not an expert sorry, but could you try run:
#cd /usr/src/linux
#make clean |
|
Back to top |
|
|
CptPajamas Tux's lil' helper
Joined: 02 Apr 2004 Posts: 77 Location: Santa Fe, NM
|
Posted: Sat Jan 08, 2005 11:28 pm Post subject: |
|
|
I don't know why this flashed into my head, but make sure your make.conf didn't get overwritten by doing any kind of a system update after your emerge sync or what not. _________________ =[ Nate Metheny
=[ Director of Technology
=[ Santa Fe Institute |
|
Back to top |
|
|
dsd Developer
Joined: 30 Mar 2003 Posts: 2162 Location: nr London
|
Posted: Sat Jan 08, 2005 11:46 pm Post subject: |
|
|
make.conf is not used during kernel compilation
try getting some more output:
KBUILD_VERBOSE=1 make xconfig _________________ http://dev.gentoo.org/~dsd |
|
Back to top |
|
|
antocuni n00b
Joined: 08 Jan 2005 Posts: 3
|
Posted: Sun Jan 09, 2005 9:41 am Post subject: |
|
|
dsd wrote: |
try getting some more output:
KBUILD_VERBOSE=1 make xconfig |
It doesn't seem to report anything significative:
Code: |
anto linux-2.6.10 # KBUILD_VERBOSE=1 make xconfig
make -f scripts/Makefile.build obj=scripts/basic
gcc -Wp,-MD,scripts/basic/.fixdep.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/basic/fixdep scripts/basic/fixdep.c
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
|
|
|
Back to top |
|
|
|