Compilation error with grsecurity-2.1.9-2.6.19.1-20061212185

Discuss usability issues, general maintenance, and general support issues for a grsecurity-enabled system.

Compilation error with grsecurity-2.1.9-2.6.19.1-20061212185

Postby aldee » Sat Dec 16, 2006 10:08 pm

Facing the same problem as Hal9000 in this thread. Just following up with the suggestion to start a new thread ...

I'm compiling with make-kpkg, the process ultimately fails with
Code: Select all
[..]
make[3]: *** [arch/i386/boot/compressed/vmlinux.bin] Error 153
make[2]: *** [arch/i386/boot/compressed/vmlinux] Error 2
make[1]: *** [bzImage] Error 2
make[1]: Leaving directory `/usr/local/src/linux-2.6.19.1'
make: *** [stamp-build] Error 2
Full log
Kernel config

Edit: links removed

No problems with grsecurity-2.1.9-2.6.18.1-200610281533 or prior and identical configuration (chose defaults with make oldconfig).

Insights, anybody?
Last edited by aldee on Fri Jan 05, 2007 5:10 pm, edited 1 time in total.
aldee
 
Posts: 25
Joined: Tue Aug 15, 2006 11:41 am

Postby drAke » Sun Dec 17, 2006 9:52 am

Hi,
Code: Select all
  LD      vmlinux
ld: vmlinux: warning: allocated section `.text.align' not in segment
ld: vmlinux: warning: allocated section `.module.text' not in segment

I got the same warnings.
Code: Select all
  OBJCOPY arch/i386/boot/compressed/vmlinux.bin

I had the build fail at the same point.
In my case upgrading binutils helped. (Not sure to which version - says here that 2.17 is needed, but 2.16.1 from Gentoo works fine and 2.15.92.0.2 from Slackware does not).

Hope this helps.
drAke
 
Posts: 2
Joined: Wed Apr 05, 2006 6:42 am

Postby aldee » Sun Dec 17, 2006 11:55 am

Running Debian sarge here ... and frankly, I'm not in the mood to install backports or custom packages unless must be. Thanks for your help. Looks like I'll have to hold on until etch is declared stable ;-).
aldee
 
Posts: 25
Joined: Tue Aug 15, 2006 11:41 am

Postby Hal9000 » Wed Dec 20, 2006 6:27 am

i had the same problem.
problem was that i just copied over the .config file from 2.6.17 (or .18 dont remember), ran make menuconfig and had it save the config file.
well, this seems to break something and compilation goes wrong.
so i copied the .config from my earlier kernel again, then started compiling right away and answered the new questions interactivelly on console. this worked fine.
hal
Hal9000
 
Posts: 78
Joined: Wed Jun 16, 2004 2:40 am

Postby aldee » Wed Dec 20, 2006 6:43 am

Well, I did run make oldconfig after copying over the .config and was still experiencing the very same error ...
aldee
 
Posts: 25
Joined: Tue Aug 15, 2006 11:41 am

Postby PaX Team » Thu Dec 21, 2006 11:14 am

aldee wrote:Well, I did run make oldconfig after copying over the .config and was still experiencing the very same error ...
try make V=1 for more verbose messages, but it does look like you need a more recent binutils. i know that 2.17 works fine here.
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm

Postby aldee » Thu Dec 21, 2006 11:59 am

PaX Team wrote:
aldee wrote:Well, I did run make oldconfig after copying over the .config and was still experiencing the very same error ...
try make V=1 for more verbose messages, but it does look like you need a more recent binutils. i know that 2.17 works fine here.
Thanks. I'll try this if it still fails after upgrading to etch in January (I don't think it will, though :-).
aldee
 
Posts: 25
Joined: Tue Aug 15, 2006 11:41 am

Postby aldee » Fri Jan 05, 2007 4:47 pm

JFTR: as expected, binutils 2.17 took care of it (2.15 worked up to 2.6.18-grsec). Thanks again.
aldee
 
Posts: 25
Joined: Tue Aug 15, 2006 11:41 am


Return to grsecurity support

cron