From: rabin@rab.in (Rabin Vincent)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: fix build error with GCC 4.5.0
Date: Fri, 5 Nov 2010 00:26:42 +0530 [thread overview]
Message-ID: <1288897002-24073-1-git-send-email-rabin@rab.in> (raw)
Fix the following error which occurs when building an ARM kernel with
GCC 4.5.0:
arm-linux-gcc -Wp,-MD,kernel/.bounds.s.d -nostdinc
[command line edited to remove paths]
-D__KERNEL__ -mlittle-endian
-Wall -Wundef
-Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common
-Werror-implicit-function-declaration -Wno-format-security
-fno-delete-null-pointer-checks -Os -marm -fno-dwarf2-cfi-asm
-mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -D__LINUX_ARM_ARCH__=5
-march=armv5te -mtune=arm9tdmi -msoft-float -Uarm -fomit-frame-pointer -g
-DCC_HAVE_ASM_GOTO -D"KBUILD_STR(s)=#s"
-D"KBUILD_BASENAME=KBUILD_STR(bounds)" -D"KBUILD_MODNAME=KBUILD_STR(bounds)"
-fverbose-asm -S -o kernel/bounds.s kernel/bounds.c
kernel/bounds.c:1:0: error: FPA is unsupported in the AAPCS
Signed-off-by: Rabin Vincent <rabin@rab.in>
---
Seen with this compiler:
http://kernel.org/pub/tools/crosstool/files/bin/x86_64/4.5.0/x86_64-gcc-4.5.0-nolibc_arm-linux.tar.bz2
arch/arm/Makefile | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index b87aed0..c06d9ed 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -91,7 +91,7 @@ tune-$(CONFIG_CPU_FEROCEON) :=$(call cc-option,-mtune=marvell-f,-mtune=xscale)
tune-$(CONFIG_CPU_V6) :=$(call cc-option,-mtune=arm1136j-s,-mtune=strongarm)
ifeq ($(CONFIG_AEABI),y)
-CFLAGS_ABI :=-mabi=aapcs-linux -mno-thumb-interwork
+CFLAGS_ABI :=-mabi=aapcs-linux -mno-thumb-interwork -mfpu=vfp
else
CFLAGS_ABI :=$(call cc-option,-mapcs-32,-mabi=apcs-gnu) $(call cc-option,-mno-thumb-interwork,)
endif
--
1.7.2.3
next reply other threads:[~2010-11-04 18:56 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-04 18:56 Rabin Vincent [this message]
2010-11-04 20:38 ` [PATCH] ARM: fix build error with GCC 4.5.0 Måns Rullgård
2010-11-04 21:21 ` Mikael Pettersson
2010-11-05 0:36 ` Måns Rullgård
2010-11-05 2:47 ` Rabin Vincent
2010-11-05 9:31 ` Mikael Pettersson
2010-11-05 14:53 ` Rabin Vincent
2010-11-05 18:51 ` Mikael Pettersson
2010-11-06 1:36 ` Tony Breeds
2010-11-12 4:45 ` Tony Breeds
2010-11-12 8:15 ` Mikael Pettersson
2010-11-16 3:17 ` Tony Breeds
2010-11-25 0:02 ` Cross compilers available on kernel.org Tony Breeds
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1288897002-24073-1-git-send-email-rabin@rab.in \
--to=rabin@rab.in \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).