linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Build failure in linux mainline when building arcv2 images
@ 2016-07-29  3:23 Guenter Roeck
  2016-07-29  5:20 ` Vineet Gupta
  0 siblings, 1 reply; 8+ messages in thread
From: Guenter Roeck @ 2016-07-29  3:23 UTC (permalink / raw)
  To: Vineet Gupta; +Cc: linux-snps-arc, linux-kernel, Jeff Moyer

Hi Vineet,

Mainline fails to build arcv2 images with the following error.

{standard input}: Assembler messages:
{standard input}:19174: Error: Instruction with long immediate data in delay slot
make[2]: *** [block/cfq-iosched.o] Error 1

Bisect points to commit 9a7f38c42c2 ("cfq-iosched: Convert from jiffies to nanoseconds"),
but I don't really hold it responsible. It looks more like a compiler / binutils problem
to me.

I am using a toolchain built with buildroot (gcc 4.8.3). Is there a more recent toolchain
than the one in buildroot available, by any chance ? If yes, where do I find it ?

Thanks,
Guenter

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Build failure in linux mainline when building arcv2 images
  2016-07-29  3:23 Build failure in linux mainline when building arcv2 images Guenter Roeck
@ 2016-07-29  5:20 ` Vineet Gupta
  2016-07-29 13:43   ` Guenter Roeck
  0 siblings, 1 reply; 8+ messages in thread
From: Vineet Gupta @ 2016-07-29  5:20 UTC (permalink / raw)
  To: Guenter Roeck; +Cc: linux-snps-arc, linux-kernel, Jeff Moyer, Alexey Brodkin

Hi Guenter,

On 07/28/2016 08:23 PM, Guenter Roeck wrote:
> Hi Vineet,
> 
> Mainline fails to build arcv2 images with the following error.
> 
> {standard input}: Assembler messages:
> {standard input}:19174: Error: Instruction with long immediate data in delay slot
> make[2]: *** [block/cfq-iosched.o] Error 1
> 
> Bisect points to commit 9a7f38c42c2 ("cfq-iosched: Convert from jiffies to
> nanoseconds"),
> but I don't really hold it responsible. It looks more like a compiler / binutils
> problem
> to me.

Indeed - triggers a latent bug in ARC gcc !

> I am using a toolchain built with buildroot (gcc 4.8.3). Is there a more recent
> toolchain
> than the one in buildroot available, by any chance ? If yes, where do I find it ?

Yeah there's a 4.8.5 based one (referred to as GNU 2016.03) - will prebuilt
toolchain suffice or would you prefer building on your own. Prebuilt could be
found below.

https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/releases/tag/arc-2016.03

For building on your own, Alexey can point to upstream buildroot which enabled
2016.03 tools.

Thx,
-Vineet

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Build failure in linux mainline when building arcv2 images
  2016-07-29  5:20 ` Vineet Gupta
@ 2016-07-29 13:43   ` Guenter Roeck
  2016-07-29 20:03     ` Vineet Gupta
  0 siblings, 1 reply; 8+ messages in thread
From: Guenter Roeck @ 2016-07-29 13:43 UTC (permalink / raw)
  To: Vineet Gupta; +Cc: linux-snps-arc, linux-kernel, Jeff Moyer, Alexey Brodkin

On 07/28/2016 10:20 PM, Vineet Gupta wrote:
> Hi Guenter,
>
> On 07/28/2016 08:23 PM, Guenter Roeck wrote:
>> Hi Vineet,
>>
>> Mainline fails to build arcv2 images with the following error.
>>
>> {standard input}: Assembler messages:
>> {standard input}:19174: Error: Instruction with long immediate data in delay slot
>> make[2]: *** [block/cfq-iosched.o] Error 1
>>
>> Bisect points to commit 9a7f38c42c2 ("cfq-iosched: Convert from jiffies to
>> nanoseconds"),
>> but I don't really hold it responsible. It looks more like a compiler / binutils
>> problem
>> to me.
>
> Indeed - triggers a latent bug in ARC gcc !
>
>> I am using a toolchain built with buildroot (gcc 4.8.3). Is there a more recent
>> toolchain
>> than the one in buildroot available, by any chance ? If yes, where do I find it ?
>
> Yeah there's a 4.8.5 based one (referred to as GNU 2016.03) - will prebuilt
> toolchain suffice or would you prefer building on your own. Prebuilt could be
> found below.
>
> https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/releases/tag/arc-2016.03
>
> For building on your own, Alexey can point to upstream buildroot which enabled
> 2016.03 tools.
>

Unfortunately, I get the same error when using "arc-linux-gcc.br_real (Buildroot 2016.05) 4.8.5".

Guenter

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Build failure in linux mainline when building arcv2 images
  2016-07-29 13:43   ` Guenter Roeck
@ 2016-07-29 20:03     ` Vineet Gupta
  2016-07-29 21:48       ` Guenter Roeck
  0 siblings, 1 reply; 8+ messages in thread
From: Vineet Gupta @ 2016-07-29 20:03 UTC (permalink / raw)
  To: Guenter Roeck; +Cc: linux-snps-arc, linux-kernel, Jeff Moyer, Alexey Brodkin

On 07/29/2016 06:43 AM, Guenter Roeck wrote:
> On 07/28/2016 10:20 PM, Vineet Gupta wrote:
>> Hi Guenter,
>>
>> On 07/28/2016 08:23 PM, Guenter Roeck wrote:
>>> Hi Vineet,
>>>
>>> Mainline fails to build arcv2 images with the following error.
>>>
>>> {standard input}: Assembler messages:
>>> {standard input}:19174: Error: Instruction with long immediate data in delay slot
>>> make[2]: *** [block/cfq-iosched.o] Error 1
>>>
>>> Bisect points to commit 9a7f38c42c2 ("cfq-iosched: Convert from jiffies to
>>> nanoseconds"),
>>> but I don't really hold it responsible. It looks more like a compiler / binutils
>>> problem
>>> to me.
>>
>> Indeed - triggers a latent bug in ARC gcc !
>>
>>> I am using a toolchain built with buildroot (gcc 4.8.3). Is there a more recent
>>> toolchain
>>> than the one in buildroot available, by any chance ? If yes, where do I find it ?
>>
>> Yeah there's a 4.8.5 based one (referred to as GNU 2016.03) - will prebuilt
>> toolchain suffice or would you prefer building on your own. Prebuilt could be
>> found below.
>>
>> https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/releases/tag/arc-2016.03
>>
>>
>> For building on your own, Alexey can point to upstream buildroot which enabled
>> 2016.03 tools.
>>
> 
> Unfortunately, I get the same error when using "arc-linux-gcc.br_real (Buildroot
> 2016.05) 4.8.5".

Weird - I don't see this when building mainline of now using prebuilt 2016.03
tools on github . I'm building axs103_smp_defconfig.

What exact buildroot commit did u use to build your tools BTW - I can try and
replicate that here !

Thx,
-Vineet

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Build failure in linux mainline when building arcv2 images
  2016-07-29 20:03     ` Vineet Gupta
@ 2016-07-29 21:48       ` Guenter Roeck
  2016-07-29 22:46         ` Vineet Gupta
  0 siblings, 1 reply; 8+ messages in thread
From: Guenter Roeck @ 2016-07-29 21:48 UTC (permalink / raw)
  To: Vineet Gupta; +Cc: linux-snps-arc, linux-kernel, Jeff Moyer, Alexey Brodkin

On Fri, Jul 29, 2016 at 01:03:56PM -0700, Vineet Gupta wrote:
> On 07/29/2016 06:43 AM, Guenter Roeck wrote:
> > On 07/28/2016 10:20 PM, Vineet Gupta wrote:
> >> Hi Guenter,
> >>
> >> On 07/28/2016 08:23 PM, Guenter Roeck wrote:
> >>> Hi Vineet,
> >>>
> >>> Mainline fails to build arcv2 images with the following error.
> >>>
> >>> {standard input}: Assembler messages:
> >>> {standard input}:19174: Error: Instruction with long immediate data in delay slot
> >>> make[2]: *** [block/cfq-iosched.o] Error 1
> >>>
> >>> Bisect points to commit 9a7f38c42c2 ("cfq-iosched: Convert from jiffies to
> >>> nanoseconds"),
> >>> but I don't really hold it responsible. It looks more like a compiler / binutils
> >>> problem
> >>> to me.
> >>
> >> Indeed - triggers a latent bug in ARC gcc !
> >>
> >>> I am using a toolchain built with buildroot (gcc 4.8.3). Is there a more recent
> >>> toolchain
> >>> than the one in buildroot available, by any chance ? If yes, where do I find it ?
> >>
> >> Yeah there's a 4.8.5 based one (referred to as GNU 2016.03) - will prebuilt
> >> toolchain suffice or would you prefer building on your own. Prebuilt could be
> >> found below.
> >>
> >> https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/releases/tag/arc-2016.03
> >>
> >>
> >> For building on your own, Alexey can point to upstream buildroot which enabled
> >> 2016.03 tools.
> >>
> > 
> > Unfortunately, I get the same error when using "arc-linux-gcc.br_real (Buildroot
> > 2016.05) 4.8.5".
> 
> Weird - I don't see this when building mainline of now using prebuilt 2016.03
> tools on github . I'm building axs103_smp_defconfig.
> 
What exactly is prebuilt 2016.03 based on ? The arc tree on github only has an
arc-2016.02 branch. I tried it, but it reports the same error. I also tried
abrodkin-arc-2016.03, but it doesn't build for me.

> What exact buildroot commit did u use to build your tools BTW - I can try and
> replicate that here !
> 
I used buildroot 2016.05.

Guenter

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Build failure in linux mainline when building arcv2 images
  2016-07-29 21:48       ` Guenter Roeck
@ 2016-07-29 22:46         ` Vineet Gupta
  2016-07-30  4:27           ` Guenter Roeck
  0 siblings, 1 reply; 8+ messages in thread
From: Vineet Gupta @ 2016-07-29 22:46 UTC (permalink / raw)
  To: Guenter Roeck; +Cc: linux-snps-arc, linux-kernel, Jeff Moyer, Alexey Brodkin

On 07/29/2016 02:48 PM, Guenter Roeck wrote:
>>>> Yeah there's a 4.8.5 based one (referred to as GNU 2016.03) - will prebuilt
>>>> toolchain suffice or would you prefer building on your own. Prebuilt could be
>>>> found below.
>>>>
>>>> https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/releases/tag/arc-2016.03
>>>>
>>>>
>>>> For building on your own, Alexey can point to upstream buildroot which enabled
>>>> 2016.03 tools.
>>>>
>>>
>>> Unfortunately, I get the same error when using "arc-linux-gcc.br_real (Buildroot
>>> 2016.05) 4.8.5".
>>
>> Weird - I don't see this when building mainline of now using prebuilt 2016.03
>> tools on github . I'm building axs103_smp_defconfig.
>>
> What exactly is prebuilt 2016.03 based on ? 

GNU 2016.03 based tools - but not built with BR, but with our internal scripts
(toolchain repo on github) - although it doesn't really matter,

> The arc tree on github only has an
> arc-2016.02 branch. I tried it, but it reports the same error. I also tried
> abrodkin-arc-2016.03, but it doesn't build for me.

I think github buildroot repo for ARC is kind of stale - Alexey would know more.

>> What exact buildroot commit did u use to build your tools BTW - I can try and
>> replicate that here !
>>
> I used buildroot 2016.05.

So I'm looking at upstream buildroot but something is weird is happening - friday
woes maybe.

What you want is
2016-05-19 09439560b9f9 toolchain: bump ARC tools to arc-2016.03 release

which seems to be present in released 2016.05, but when I checkout 2016.05 tag (or
aa6fd11feebff) that patch is not there !

Sorry we would have to defer this to next week or when Alexey takes a look.

-Vineet

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Build failure in linux mainline when building arcv2 images
  2016-07-29 22:46         ` Vineet Gupta
@ 2016-07-30  4:27           ` Guenter Roeck
  2016-08-01  9:53             ` Alexey Brodkin
  0 siblings, 1 reply; 8+ messages in thread
From: Guenter Roeck @ 2016-07-30  4:27 UTC (permalink / raw)
  To: Vineet Gupta; +Cc: linux-snps-arc, linux-kernel, Jeff Moyer, Alexey Brodkin

On 07/29/2016 03:46 PM, Vineet Gupta wrote:

> What you want is
> 2016-05-19 09439560b9f9 toolchain: bump ARC tools to arc-2016.03 release
>
> which seems to be present in released 2016.05, but when I checkout 2016.05 tag (or
> aa6fd11feebff) that patch is not there !
>

A toolchain build off SHA 09439560b9f9 works.

Thanks!

Guenter

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Build failure in linux mainline when building arcv2 images
  2016-07-30  4:27           ` Guenter Roeck
@ 2016-08-01  9:53             ` Alexey Brodkin
  0 siblings, 0 replies; 8+ messages in thread
From: Alexey Brodkin @ 2016-08-01  9:53 UTC (permalink / raw)
  To: linux; +Cc: linux-kernel, jmoyer, Vineet Gupta, linux-snps-arc

Hi Vineet, Guenter,

On Fri, 2016-07-29 at 21:27 -0700, Guenter Roeck wrote:
> On 07/29/2016 03:46 PM, Vineet Gupta wrote:
> 
> > 
> > What you want is
> > 2016-05-19 09439560b9f9 toolchain: bump ARC tools to arc-2016.03 release
> > 
> > which seems to be present in released 2016.05, but when I checkout 2016.05 tag (or
> > aa6fd11feebff) that patch is not there !
> > 
> 
> A toolchain build off SHA 09439560b9f9 works.

Indeed we were a little-bit too late for BR 2016.05 release with
our toolchain bump so the patch in question only made its way in BR repo
right after BR release.

Anyways good to know your issue is resolved now.

Note with arc-2016.03 we still see a lot of issues here and there
because that's the first version that uses our rewritten from scratch binutils
(the base for binutils port upstreaming for ARC). And so in BR we continue to
update ARC tools to so-called engineering builds of our current development
branches of gcc and binutils. That information might be useful if you face any
other issues building stuff for ARC.

Or don't hesitate to email us so we'll try to point you to something that
should work :)

-Alexey

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-08-01  9:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-29  3:23 Build failure in linux mainline when building arcv2 images Guenter Roeck
2016-07-29  5:20 ` Vineet Gupta
2016-07-29 13:43   ` Guenter Roeck
2016-07-29 20:03     ` Vineet Gupta
2016-07-29 21:48       ` Guenter Roeck
2016-07-29 22:46         ` Vineet Gupta
2016-07-30  4:27           ` Guenter Roeck
2016-08-01  9:53             ` Alexey Brodkin

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).