On Thu, Mar 25, 2004 at 11:55:31AM -0800, Yacine Filali-Meknassi wrote:
> If you are interested, this error is easy to bypass by just removing
> -march=armv4 from the config file (-Wa,-mxscale is enought for gcc3). You
> will encounter another problem with asm blocks needing \ line endings.
> Something stumped me towards the end of the build but I don't remember
Thank you for your suggestion. By removing the -march=armv4 from the Makefile
I don't get the same error anymore.
But then I get:
blkpg.c: In function `blk_ioctl':
blkpg.c:250: error: asm-specifier for variable `__r1' conflicts with asm clobber list
blkpg.c:250: confused by earlier errors, bailing out
make: *** [blkpg.o] Error 1
make: Leaving directory `/home/berni/zaurus/install/oe/packages/tmp/base/linux-2.4.18-rmk7-pxa3-embedix-r0/linux/drivers/block'
it seems that it does not like the asm("r1"):
#define put_user(x,p) \
const register typeof(*(p)) __r1 asm("r1") = (x); \
on line 120 of file:
if I change the "r1" to "r2" the compiler/assembler does not complain anymore
.. but I don't expect this to work. I have no clue about the xscale internals.
I some how have the feeling that these tweaks only remove the symptoms, but do
not address the root cause ...