Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot make kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
antocuni
n00b
n00b


Joined: 08 Jan 2005
Posts: 3

PostPosted: Sat Jan 08, 2005 7:54 pm    Post subject: Cannot make kernel Reply with quote

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
View user's profile Send private message
Optimus'
Apprentice
Apprentice


Joined: 01 Jul 2004
Posts: 209

PostPosted: Sat Jan 08, 2005 8:03 pm    Post subject: Reply with quote

I'm not an expert sorry, but could you try run:

#cd /usr/src/linux
#make clean
Back to top
View user's profile Send private message
CptPajamas
Tux's lil' helper
Tux's lil' helper


Joined: 02 Apr 2004
Posts: 77
Location: Santa Fe, NM

PostPosted: Sat Jan 08, 2005 11:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
dsd
Developer
Developer


Joined: 30 Mar 2003
Posts: 2162
Location: nr London

PostPosted: Sat Jan 08, 2005 11:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
antocuni
n00b
n00b


Joined: 08 Jan 2005
Posts: 3

PostPosted: Sun Jan 09, 2005 9:41 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum