/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
Can you post your kernel config file.
(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.
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)
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 ***
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!