Page 1 of 1

Problem compiling kernel 2.6.20.4

PostPosted: Mon Apr 09, 2007 9:45 am
by g0dkiller
I have lots of warning: missing initializer errors
I installed binutils 2.17 but i get the same errors

At the end
Code: Select all
  LD      drivers/media/video/bt8xx/bttv.o
  LD      drivers/media/video/bt8xx/built-in.o
  LD      drivers/media/video/built-in.o
  LD      drivers/media/built-in.o
  LD      drivers/built-in.o
  LD      net/unix/unix.o
  LD      net/unix/built-in.o
  LD      net/ipv4/netfilter/built-in.o
  LD      net/ipv4/built-in.o
  LD      net/xfrm/built-in.o
  LD      net/built-in.o
  GEN     .version
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      vmlinux
ld: vmlinux: section `.init.text' can't be allocated in segment 0
ld: final link failed: Bad value
make: *** [vmlinux] Error 1


I am using slackware 11.0
[/url]

Re: Problem compiling kernel 2.6.20.4

PostPosted: Wed Apr 11, 2007 9:10 am
by saidone
I'm experimenting the same error... let's see what could be wrong.

PostPosted: Wed Apr 11, 2007 1:14 pm
by g0dkiller
How did you install binutils ? I think it's a problem there. If you overwrite the files in /usr/local/binutils-2.17 on the ones in / then the kernel will compile but crashes at boot.

PostPosted: Wed Apr 11, 2007 2:52 pm
by saidone
I simply upgraded the package with the 2.17 in slackware-current.

PostPosted: Wed Apr 11, 2007 4:14 pm
by g0dkiller
Try upgrading it manualy from sources.That does the job :) but set the prefix "/"

PostPosted: Thu Apr 12, 2007 12:32 pm
by saidone
Yep, it works, but I cannot figure out why!

PostPosted: Thu Apr 12, 2007 2:17 pm
by stanojr
what version of binutils did you install from source ?
2.17 from http://ftp.gnu.org/gnu/binutils/ or
2.17.50.0.14 from http://www.kernel.org/pub/linux/devel/binutils/ ?

PostPosted: Thu Apr 12, 2007 3:52 pm
by saidone
[quote="stanojr"]what version of binutils did you install from source ?
2.17 from http://ftp.gnu.org/gnu/binutils/ or
2.17.50.0.14 from http://www.kernel.org/pub/linux/devel/binutils/ ?[/quote]

The last one, the release on gnu.org seems quite outdated. The strangest thing is that this version matches the last on slackware-current repository, but seems like to have different behaviours.

Saidone