Skip to contentSkip to conversation

drivers/mtd/nand/orion_nand.c build failure with old ABI

DISCUSSION Martin Michlmayr 3 participants 3 messages Nov 11, 2009 – Nov 12, 2009

lore
Share & tools
lore
#0 lore raw

drivers/mtd/nand/orion_nand.c fails to build when EABI is not set:

CC drivers/mtd/nand/orion_nand.o
/tmp/ccDFyfwN.s: Assembler messages:
/tmp/ccDFyfwN.s:120: Error: first destination register must be even -- `ldrd r3,[ip]' make[3]: *** [drivers/mtd/nand/orion_nand.o] Error 1
make[2]: *** [drivers/mtd/nand] Error 2

Signature · 2 lines
Martin Michlmayr
http://www.cyrius.com/
#1 lore raw
Quoted 7 lines · Martin Michlmayr

drivers/mtd/nand/orion_nand.c fails to build when EABI is not set:

CC drivers/mtd/nand/orion_nand.o
/tmp/ccDFyfwN.s: Assembler messages:
/tmp/ccDFyfwN.s:120: Error: first destination register must be even -- `ldrd r3,[ip]' make[3]: *** [drivers/mtd/nand/orion_nand.o] Error 1
make[2]: *** [drivers/mtd/nand] Error 2

Grrrrr. Let me think of a workaround.

Nicolas

#2 lore raw
Quoted 11 lines · On Wed, 11 Nov 2009 10:55:43 -0500 (EST) Nicolas Pitre <[email protected]> wrote:
Quoted 7 lines · Martin Michlmayr

drivers/mtd/nand/orion_nand.c fails to build when EABI is not set:

CC drivers/mtd/nand/orion_nand.o
/tmp/ccDFyfwN.s: Assembler messages:
/tmp/ccDFyfwN.s:120: Error: first destination register must be even -- `ldrd r3,[ip]' make[3]: *** [drivers/mtd/nand/orion_nand.o] Error 1
make[2]: *** [drivers/mtd/nand] Error 2

Grrrrr. Let me think of a workaround.

Interesting problem. I looked in the GCC manual for a matching constraint to satisfy this, but didn't find anything that seems to fit right away. SPARC has the

`U' Even register

constraint, and perhaps it would be make good sense to have the same for ARM. Not that it helps right the current situation, but anyway :-)

// Simon