hi, Sorry for top posting / html - web client access from home. Thx for reporting the issue - I have pushed a fix (also attached) which shd cure it (don't have exactly similar oldish gcc at hand). This slipped thru the cracks as newer gcc for legacy ARCompact can still tolerate the new toggles. I will get back to you on Monday about how to go about including support for a newer gcc for ARCv2 build test as well. Thx, -Vineet ________________________________________ From: Guenter Roeck [private@xxxxxxxxxxxx] Sent: Saturday, June 27, 2015 5:28 AM To: linux-next@xxxxxxxxxxxxxxx Cc: Vineet Gupta Subject: arc build failures in -next due to ARCv2 patch Hi, my arc test builds in -next now fail with cc1: error: unrecognized command line option "-mno-ll64" make[2]: *** [scripts/mod/empty.o] Error 1 make[1]: *** [scripts/mod] Error 2 make[1]: *** Waiting for unfinished jobs.... cc1: error: unrecognized command line option "-mno-ll64" make[1]: *** [kernel/bounds.s] Error 1 due to commit 'ARCv2: Support for ARCv2 ISA and HS38x cores'. This is with gcc 4.8.3 built from buildroot. Do I now need a new compiler / toolchain to build the kernel ? Any chance to make this change compatible to work with older compilers ? Thanks, Guenter
From 21000721af5bd65a2d77725c0d7ffc9ef62c0e3b Mon Sep 17 00:00:00 2001 From: Vineet Gupta <vgupta@xxxxxxxxxxxx> Date: Sat, 27 Jun 2015 16:56:41 +0530 Subject: [PATCH] ARCv2: Allow older gcc to cope with new regime of ARCv2/ARCompact support -no-ll64 is specific to ARCv2 ISA, and is obviously not supported by older ARC gcc - in this case the one hosted by linux-next sanity build service. Ensure that toggle only gets included for ISA_ARCOMPACT which is default for now. Reported-by: Guenter Roeck <private@xxxxxxxxxxxx> Signed-off-by: Vineet Gupta <vgupta@xxxxxxxxxxxx> --- arch/arc/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arc/Makefile b/arch/arc/Makefile index bf68dc5a08be..dfcf2569966c 100644 --- a/arch/arc/Makefile +++ b/arch/arc/Makefile @@ -37,7 +37,7 @@ cflags-$(CONFIG_ARC_HAS_LLSC) += -mlock cflags-$(CONFIG_ARC_HAS_SWAPE) += -mswape ifndef CONFIG_ARC_HAS_LL64 -cflags-y += -mno-ll64 +cflags-${CONFIG_ISA_ARCV2} += -mno-ll64 endif cflags-$(CONFIG_ARC_DW2_UNWIND) += -fasynchronous-unwind-tables -- 1.9.1