Gentoo Archives: gentoo-hardened

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-hardened@l.g.o
Subject: Re: [gentoo-hardened] Kernel won't build, but binutils is up to date
Date: Sat, 08 Jan 2011 14:03:06
Message-Id: 4D28611E.1040504@gentoo.org
In Reply to: Re: [gentoo-hardened] Kernel won't build, but binutils is up to date by Cyprien Nicolas
1 On 01/07/2011 03:09 PM, Cyprien Nicolas wrote:
2 > On 01/07/2011 04:39 PM, Brian Davis wrote:
3 >> Here's what happens when I try to build 2.6.36-r6:
4 >>
5 >> # make && make modules_install
6 >> /usr/src/linux-2.6.36-hardened-r6/scripts/gcc-version.sh: line 25: ngcc:
7 >> command not found
8 >> /usr/src/linux-2.6.36-hardened-r6/scripts/gcc-version.sh: line 26: ngcc:
9 >> command not found
10 >> make: ngcc: Command not found
11 >> CHK include/linux/version.h
12 >> CHK include/generated/utsrelease.h
13 >> /usr/src/linux-2.6.36-hardened-r6/arch/x86/Makefile:202: ***
14 >> *** 2.6 PaX kernels no longer build correctly with old versions of binutils.
15 >> *** Please upgrade your binutils to 2.18 or newer. Stop.
16 >
17 > Hm, try first fixing the ngcc thing. I had the same ngcc issue when
18 > moving my office desktop from gentoo-sources 2.6.35 to 2.6.36 using make
19 > oldconfig.
20 >
21 > You might have a CONFIG_CROSS_COMPILE="n" in your .config.
22 > This setting was not used by 2.6.35 and previous versions.
23 > Since 2.6.36 this is the prefix for the cross compiler, so its value is
24 > prepended before 'gcc' during make.
25 >
26 > Setting it to CONFIG_CROSS_COMPILE="" should solve that issue.
27
28 Sorry came to the conversation late. I see you've got it. Let me just
29 comment that CONFIG_CROSS_COMPILE="n" has happened a lot and the
30 solution is to set CONFIG_CROSS_COMPILE="". This crept in during some
31 update (I forget which) in which the meaning of the option changed. This
32 is causing kbuild to interpret the option as a prefix rather than "no I
33 don't have a cross compiler".
34
35 --
36 Anthony G. Basile, Ph.D.
37 Gentoo Developer