Re: arm build failures (Was: linux-next: triage for March 13, 2012)
From: Tony Breeds
Date: Wed Mar 14 2012 - 00:29:47 EST
On Wed, Mar 14, 2012 at 11:41:15AM +1100, Stephen Rothwell wrote:
> On Tue, 13 Mar 2012 19:47:07 -0400 Paul Gortmaker <paul.gortmaker@xxxxxxxxxxxxx> wrote:
> >
> > ARM:netx_defconfig,pnx4008_defconfig
> > when: Mar 14, 02:43
> > why: net/core/pktgen.c: can't find a register in class 'GENERAL_REGS'
> > status:
> > fix:
> > ref: http://kisskb.ellerman.id.au/kisskb/buildresult/5869486/
>
> This is this:
>
> net/core/pktgen.c:682:2775: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm'
> net/core/pktgen.c:682:3153: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm'
> net/core/pktgen.c:682:2775: error: 'asm' operand has impossible constraints
> net/core/pktgen.c:682:3153: error: 'asm' operand has impossible constraints
>
> Which is a do_div() call. The relevant code does not appear to have
> changed, so this may well be a result of our toolchain changing from
> "arm-linux-gcc (GCC) 4.4.0, GNU ld (GNU Binutils) 2.19.1" to
> "arm-unknown-linux-gnueabi-gcc (GCC) 4.6.3, GNU ld (GNU Binutils) 2.22".
Just for reference I build that code with:
arm-unknown-linux-gnueabi-gcc (GCC) 4.5.2, GNU ld (GNU Binutils) 2.21
and it was fine so I don't think it's to do with the switch from
arm-linux-gcc to arm-unknown-linux-gnueabi-gcc[1]
Yours Tony
[1] This switchwas done as a result off the discussion at: http://lists.infradead.org/pipermail/linux-arm-kernel/2010-November/030627.html
Attachment:
pgp00000.pgp
Description: PGP signature