yann@1: http://www.spinics.net/lists/arm/msg08012.html yann@1: yann@1: To: Dimitry Andric yann@1: Subject: Re: Kernel Compile Error: use of old and new-style options to set FPU type yann@1: From: Marc Britten yann@1: Date: Wed, 16 Jun 2004 03:03:15 -0400 yann@1: Cc: linux-arm@xxxxxxxxxxxxxxxxxxxxxx yann@1: In-reply-to: <1525495613.20040615202902@andric.com> yann@1: yann@1: Dimitry Andric wrote: yann@1: yann@1: >>Assembler messages: yann@1: >>Error: use of old and new-style options to set FPU type yann@1: > Try removing -Wa,-mno-fpu from CFLAGS (and possibly AFLAGS, but I'm yann@1: > not sure, depends on what your compiler generates by default) in yann@1: > arch/arm/Makefile. yann@1: yann@1: Just to let people know, this was successful. yann@1: yann@1: Thanks, yann@1: yann@1: Marc Britten yann@1: yann@1: -------- yann@1: yann@1: Fixes error yann@1: yann@1: ... yann@1: make -f scripts/Makefile.build obj=scripts/mod yann@1: /opt/crosstool/arm-unknown-linux-gnu/gcc-3.4.1-glibc-2.3.3/bin/arm-unknown-linux-gnu-gcc -Wp,-MD,scripts/mod/.empty.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fno-omit-frame-pointer -mapcs -mno-sched-prolog -mlittle-endian -mapcs-32 -malignment-traps -msoft-float -Wa,-mno-fpu -Uarm -Os -Wdeclaration-after-statement -DKBUILD_BASENAME=empty -DKBUILD_MODNAME=empty -c -o scripts/mod/empty.o scripts/mod/empty.c yann@1: Assembler messages: yann@1: Error: use of old and new-style options to set FPU type yann@1: make[2]: *** [scripts/mod/empty.o] Error 1 yann@1: make[1]: *** [scripts/mod] Error 2 yann@1: make: *** [scripts] Error 2 yann@1: yann@1: yann@1: --- linux-2.6.8/arch/arm/Makefile.old 2004-09-01 21:27:07.000000000 -0700 yann@1: +++ linux-2.6.8/arch/arm/Makefile 2004-09-01 21:27:31.000000000 -0700 yann@1: @@ -55,8 +55,8 @@ yann@1: tune-$(CONFIG_CPU_V6) :=-mtune=strongarm yann@1: yann@1: # Need -Uarm for gcc < 3.x yann@1: -CFLAGS +=-mapcs-32 $(arch-y) $(tune-y) $(call check_gcc,-malignment-traps,-mshort-load-bytes) -msoft-float -Wa,-mno-fpu -Uarm yann@1: -AFLAGS +=-mapcs-32 $(arch-y) $(tune-y) -msoft-float -Wa,-mno-fpu yann@1: +CFLAGS +=-mapcs-32 $(arch-y) $(tune-y) $(call check_gcc,-malignment-traps,-mshort-load-bytes) -msoft-float -Uarm yann@1: +AFLAGS +=-mapcs-32 $(arch-y) $(tune-y) -msoft-float yann@1: yann@1: CHECK := $(CHECK) -D__arm__=1 yann@1: