Gentoo Archives: gentoo-hardened

From: Brian Davis <bridavis@××××.com>
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 04:03:34
Message-Id: SNT123-W449E6AAFAD7495752B323AB30C0@phx.gbl
In Reply to: Re: [gentoo-hardened] Kernel won't build, but binutils is up to date by Cyprien Nicolas
1 Excellent, that worked, thanks!
2
3 ----------------------------------------
4 > Date: Fri, 7 Jan 2011 21:09:12 +0100
5 > From: c.nicolas@×××××.com
6 > To: gentoo-hardened@l.g.o
7 > Subject: Re: [gentoo-hardened] Kernel won't build, but binutils is up to date
8 >
9 > On 01/07/2011 04:39 PM, Brian Davis wrote:
10 > > Here's what happens when I try to build 2.6.36-r6:
11 > >
12 > > # make && make modules_install
13 > > /usr/src/linux-2.6.36-hardened-r6/scripts/gcc-version.sh: line 25: ngcc:
14 > > command not found
15 > > /usr/src/linux-2.6.36-hardened-r6/scripts/gcc-version.sh: line 26: ngcc:
16 > > command not found
17 > > make: ngcc: Command not found
18 > > CHK include/linux/version.h
19 > > CHK include/generated/utsrelease.h
20 > > /usr/src/linux-2.6.36-hardened-r6/arch/x86/Makefile:202: ***
21 > > *** 2.6 PaX kernels no longer build correctly with old versions of binutils.
22 > > *** Please upgrade your binutils to 2.18 or newer. Stop.
23 >
24 > Hm, try first fixing the ngcc thing. I had the same ngcc issue when
25 > moving my office desktop from gentoo-sources 2.6.35 to 2.6.36 using make
26 > oldconfig.
27 >
28 > You might have a CONFIG_CROSS_COMPILE="n" in your .config.
29 > This setting was not used by 2.6.35 and previous versions.
30 > Since 2.6.36 this is the prefix for the cross compiler, so its value is
31 > prepended before 'gcc' during make.
32 >
33 > Setting it to CONFIG_CROSS_COMPILE="" should solve that issue.
34 >