Skip to contentSkip to conversation

Impossible constraint in 'asm' in 2.6.35 build

DISCUSSION Fabio Estevam 2 participants 4 messages Aug 6, 2010

lore
Share & tools
lore
#0 lore raw

Hi,

I am trying to build a 2.6.35 kernel for i.MX31 and I am getting the following error:

  CC      arch/arm/plat-mxc/audmux-v2.o
  CC      arch/arm/plat-mxc/3ds_debugboard.o
  CC      arch/arm/plat-mxc/devices/platform-imx-i2c.o
  CC      arch/arm/plat-mxc/devices/platform-imx-uart.o
  CC      arch/arm/plat-mxc/devices/platform-mxc_nand.o
  CC      arch/arm/plat-mxc/devices/platform-spi_imx.o
  LD      arch/arm/plat-mxc/devices/built-in.o
  LD      arch/arm/plat-mxc/built-in.o
  CC      arch/arm/vfp/vfpmodule.o
  AS      arch/arm/vfp/entry.o
  AS      arch/arm/vfp/vfphw.o
  LD      arch/arm/vfp/vfp.o
  LD      arch/arm/vfp/built-in.o
  CC      kernel/sched.o

kernel/sched_idletask.c: In function 'pick_next_task_idle':
/home/fabio/pengutronix/linux-2.6/arch/arm/include/asm/atomic.h:42: error: impossible constraint in 'asm' make[1]: *** [kernel/sched.o] Error 1
make: *** [kernel] Error 2

I tried GCC4.3 and 4.4 and the result is the same. I haven't faced this issue when building 2.6.34.

Does anyone have any suggestion?

Thanks,

Fabio Estevam

#1 lore raw

Fabio,

It is due to this commit and using gcc 4.1.2:

commit 398aa66827155ef52bab58bebd24597d90968929

Author: Will Deacon <[email protected]>
Date:   Thu Jul 8 10:59:16 2010 +0100

ARM: 6212/1: atomic ops: add memory constraints to inline asm

It works fine for me with CS 4.3.3 toolchain.

Rob

Quoted 42 lines · Fabio Estevam

Hi,

I am trying to build a 2.6.35 kernel for i.MX31 and I am getting the following error:

?CC ? ? ?arch/arm/plat-mxc/audmux-v2.o
?CC ? ? ?arch/arm/plat-mxc/3ds_debugboard.o
?CC ? ? ?arch/arm/plat-mxc/devices/platform-imx-i2c.o
?CC ? ? ?arch/arm/plat-mxc/devices/platform-imx-uart.o
?CC ? ? ?arch/arm/plat-mxc/devices/platform-mxc_nand.o
?CC ? ? ?arch/arm/plat-mxc/devices/platform-spi_imx.o
?LD ? ? ?arch/arm/plat-mxc/devices/built-in.o
?LD ? ? ?arch/arm/plat-mxc/built-in.o
?CC ? ? ?arch/arm/vfp/vfpmodule.o
?AS ? ? ?arch/arm/vfp/entry.o
?AS ? ? ?arch/arm/vfp/vfphw.o
?LD ? ? ?arch/arm/vfp/vfp.o
?LD ? ? ?arch/arm/vfp/built-in.o
?CC ? ? ?kernel/sched.o
kernel/sched_idletask.c: In function 'pick_next_task_idle':
/home/fabio/pengutronix/linux-2.6/arch/arm/include/asm/atomic.h:42: error: impossible constraint in 'asm' make[1]: *** [kernel/sched.o] Error 1
make: *** [kernel] Error 2

I tried GCC4.3 and 4.4 and the result is the same. I haven't faced this issue when building 2.6.34.

Does anyone have any suggestion?

Thanks,

Fabio Estevam

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#2 lore raw

Rob,

Quoted 9 lines · Rob Herring

From: Rob Herring <[email protected]>
Subject: Re: Impossible constraint in 'asm' in 2.6.35 build
To: "Fabio Estevam" <[email protected]>
Cc: linux-arm-kernel at lists.infradead.org
Date: Friday, August 6, 2010, 3:14 PM
Fabio,

It is due to this commit and using gcc 4.1.2:

Quoted 8 lines

commit 398aa66827155ef52bab58bebd24597d90968929
Author: Will Deacon <[email protected]>
Date:???Thu Jul 8 10:59:16 2010 +0100

? ? ARM: 6212/1: atomic ops: add memory
constraints to inline asm

It works fine for me with CS 4.3.3 toolchain.

I could get it to build in origin/master branch, but it fails for me in Sascha's origin/imx-for-2.6.36 branch.

Will use origin/master for now.

Regards,

Fabio Estevam

#3 lore raw
Quoted 27 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>
Subject: Re: Impossible constraint in 'asm' in 2.6.35 build
To: "Rob Herring" <[email protected]>
Cc: linux-arm-kernel at lists.infradead.org
Date: Friday, August 6, 2010, 3:34 PM
Rob,

--- On Fri, 8/6/10, Rob Herring <[email protected]>

Quoted 2 lines · wrote:

From: Rob Herring <[email protected]>
Subject: Re: Impossible constraint in 'asm' in 2.6.35

build

Quoted 14 lines

To: "Fabio Estevam" <[email protected]>
Cc: linux-arm-kernel at lists.infradead.org
Date: Friday, August 6, 2010, 3:14 PM Fabio,

It is due to this commit and using gcc 4.1.2:

commit 398aa66827155ef52bab58bebd24597d90968929
Author: Will Deacon <[email protected]> Date:???Thu Jul 8 10:59:16 2010 +0100

? ? ARM: 6212/1: atomic ops: add memory constraints to inline asm

Quoted 6 lines
Quoted 1 line

It works fine for me with CS 4.3.3 toolchain.

I could get it to build in origin/master branch, but it fails for me in Sascha's origin/imx-for-2.6.36 branch.

Will use origin/master for now.

I made a mistake when upgrading the toolchain. origin/imx-for-2.6.36 branch builds fine now with arm-2010q1 toolchain.

Regards,

Fabio Estevam