Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 344711 - hardened-sources-2.6.36 (PAX) has a bad binutils test during compilation
Summary: hardened-sources-2.6.36 (PAX) has a bad binutils test during compilation
Status: RESOLVED DUPLICATE of bug 345417
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: The Gentoo Linux Hardened Kernel Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-08 18:15 UTC by 7v5w7go9ub0o
Modified: 2010-11-17 02:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
.config and emerge --info files. thanks. (wle,78.35 KB, text/plain)
2010-11-16 22:11 UTC, 7v5w7go9ub0o
Details

Note You need to log in before you can comment on or make changes to this bug.
Description 7v5w7go9ub0o 2010-11-08 18:15:10 UTC
/usr/src/linux-2.6.36-hardened/arch/x86/Makefile:81: stack protector enabled but no compiler support
make: ngcc: Command not found
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
/usr/src/linux-2.6.36-hardened/arch/x86/Makefile:202: *** 
*** 2.6 PaX kernels no longer build correctly with old versions of binutils.
*** Please upgrade your binutils to 2.18 or newer.  Stop.

I had this failure with both binutils 2.20.1-r1 and 2.18-r3

(eix -i binutils:  2.20.1-r1(13:03:57 11/08/10)(-multislot -multitarget -nls -test -vanilla) )

Reproducible: Always
Comment 1 Anthony Basile gentoo-dev 2010-11-16 00:24:47 UTC
Can you post your kernel config file.
Comment 2 Anthony Basile gentoo-dev 2010-11-16 01:00:24 UTC
(In reply to comment #1)
> Can you post your kernel config file.
> 

Actually, now that I think of it, I'd better see your emerge --info too.
Comment 3 7v5w7go9ub0o 2010-11-16 22:11:52 UTC
Created attachment 254553 [details]
.config and emerge --info files. thanks.


Here 'tis, as an attachment.

It has happened again with r1. THANKS for looking into this.

(p.s. I'm pretty much a newbie; if you notice anything questionable, PLEASE ask or comment)
Comment 4 Anthony Basile gentoo-dev 2010-11-17 00:46:35 UTC
Okay a couple of things:

1) your problem is happing because you have CONFIG_CROSS_COMPILE=n.  I should be #CONFIG_CROSS_COMPILE not set.  That's adding the n in front of gcc which makes it fail: make: ngcc: Command not found.  The problem has nothing to do with hardening.

This was also hit in bug #345417.

2) Unrelated to the bug but a problem on your system.  If your using the hardened profile, you should emerge the stable gcc which is currently gcc-4.4.4-r2 and use gcc-config to choose the default compiler, x86_64-pc-linux-gnu-4.4.4.  Make sure to emerge -e world with that compiler to get full hardening.


*** This bug has been marked as a duplicate of bug 345417 ***
Comment 5 7v5w7go9ub0o 2010-11-17 02:14:58 UTC
Yep.......  vim .config; change CONFIG_CROSS_COMPILE="" fixed it.  

The PAX comment made me think it was hardened; now I guess that is where it was when it came across the ngcc.

Thanks for your quick reply; thanks for the comments about gcc version!