From: Guenter Roeck <private@roeck-us.net>
To: Vineet Gupta <Vineet.Gupta1@synopsys.com>,
"linux-next@vger.kernel.org" <linux-next@vger.kernel.org>
Cc: "arc-linux-dev@synopsys.com" <arc-linux-dev@synopsys.com>
Subject: Re: arc build failures in -next due to ARCv2 patch
Date: Sat, 27 Jun 2015 07:16:23 -0700 [thread overview]
Message-ID: <558EB037.1030308@roeck-us.net> (raw)
In-Reply-To: <C2D7FE5348E1B147BCA15975FBA23075665A8A84@IN01WEMBXB.internal.synopsys.com>
Hi Vineet,
On 06/27/2015 04:42 AM, Vineet Gupta wrote:
> hi,
>
> Sorry for top posting / html - web client access from home.
Another Microsoft victim ? That is why I dislike sending e-mail
from my company account.
> 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).
Not that old, really, it just isn't configured for ARCv2. Question is if I need two
separate compilers or if I can configure it to support both v1 and v2.
> This slipped thru the cracks as newer gcc for legacy ARCompact can still tolerate the new toggles.
Something like the following would avoid the ifdef in the Makefile and also check if the option
is supported by the compiler.
config ARC_NO_LL64
default y
depends on !ARC_HAS_LL64 && ISA_ARCV2
...
cflags-$(CONFIG_ARC_NO_LL64) += $(call cc-option, -mno-ll64)
Your patch uses ${} instead of $() - does the make command accept/understand that ?
> 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.
Looking forward to it, though I hope I can just built a toolchain for HS38.
After applying your patch, I get
arch/arc/kernel/process.c: In function ‘arch_cpu_idle’:
arch/arc/kernel/process.c:51:26: error: ‘ARCV2_IRQ_DEF_PRIO’ undeclared (first use in this function)
const int arg = 0x10 | ARCV2_IRQ_DEF_PRIO;
^
Thanks,
Guenter
> Thx,
> -Vineet
> ________________________________________
> From: Guenter Roeck [private@roeck-us.net]
> Sent: Saturday, June 27, 2015 5:28 AM
> To: linux-next@vger.kernel.org
> 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
>
next prev parent reply other threads:[~2015-06-27 14:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-26 23:58 arc build failures in -next due to ARCv2 patch Guenter Roeck
2015-06-27 11:42 ` Vineet Gupta
2015-06-27 14:16 ` Guenter Roeck [this message]
2015-06-28 15:16 ` Vineet Gupta
2015-08-31 10:35 ` ARCv2 testing exposure (Re: arc build failures in -next due to ARCv2 patch) Vineet Gupta
2015-08-31 13:58 ` Guenter Roeck
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=558EB037.1030308@roeck-us.net \
--to=private@roeck-us.net \
--cc=Vineet.Gupta1@synopsys.com \
--cc=arc-linux-dev@synopsys.com \
--cc=linux-next@vger.kernel.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