cross-gcc : FPU type error
Dimitry Andric
dimitry@andric.com
Wed May 26 02:49:00 GMT 2004
On 2004-05-25 at 20:24:45 Poornachandran, RajeshX wrote:
> [root@adetest1 linux-2.6.5]# make zImage
> CHK include/linux/version.h
> UPD include/linux/version.h
> SYMLINK include/asm -> include/asm-arm
> SPLIT include/linux/autoconf.h -> include/config/*
> HOSTCC scripts/conmakehash
> HOSTCC scripts/kallsyms
> CC scripts/empty.o
> Assembler messages:
> Error: use of old and new-style options to set FPU type
> make[1]: *** [scripts/empty.o] Error 1
> make: *** [scripts] Error 2
When you get such errors, first try building with "make V=1", to get
verbose output. Then you (and we :) can see precisely which command
fails.
Now, as to your specific problem, I guess you need to edit
arch/arm/Makefile, and change:
CFLAGS +=-mapcs-32 $(arch-y) $(tune-y) -mshort-load-bytes -msoft-float -Wa,-mno-fpu -Uarm
AFLAGS +=-mapcs-32 $(arch-y) $(tune-y) -msoft-float -Wa,-mno-fpu
to:
CFLAGS +=-mapcs-32 $(arch-y) $(tune-y) -malignment-traps -msoft-float
AFLAGS +=-mapcs-32 $(arch-y) $(tune-y) -msoft-float
Here I assume that your gcc already passes the correct arguments to
the assembler. (Did you use my gcc 3.4.0 softfloat patch, btw? If you
did, you don't need the -msoft-float flag either.)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 183 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/crossgcc/attachments/20040526/1d9ad6d4/attachment.sig>
More information about the crossgcc
mailing list