On 01/07/2011 03:09 PM, Cyprien Nicolas wrote: > On 01/07/2011 04:39 PM, Brian Davis wrote: >> Here's what happens when I try to build 2.6.36-r6: >> >> # make && make modules_install >> /usr/src/linux-2.6.36-hardened-r6/scripts/gcc-version.sh: line 25: ngcc: >> command not found >> /usr/src/linux-2.6.36-hardened-r6/scripts/gcc-version.sh: line 26: ngcc: >> command not found >> make: ngcc: Command not found >> CHK include/linux/version.h >> CHK include/generated/utsrelease.h >> /usr/src/linux-2.6.36-hardened-r6/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. > > Hm, try first fixing the ngcc thing. I had the same ngcc issue when > moving my office desktop from gentoo-sources 2.6.35 to 2.6.36 using make > oldconfig. > > You might have a CONFIG_CROSS_COMPILE="n" in your .config. > This setting was not used by 2.6.35 and previous versions. > Since 2.6.36 this is the prefix for the cross compiler, so its value is > prepended before 'gcc' during make. > > Setting it to CONFIG_CROSS_COMPILE="" should solve that issue.
Sorry came to the conversation late. I see you've got it. Let me just comment that CONFIG_CROSS_COMPILE="n" has happened a lot and the solution is to set CONFIG_CROSS_COMPILE="". This crept in during some update (I forget which) in which the meaning of the option changed. This is causing kbuild to interpret the option as a prefix rather than "no I don't have a cross compiler". -- Anthony G. Basile, Ph.D. Gentoo Developer
