Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1452234 > unrolled thread

Build failure in linux mainline when building arcv2 images

Started byGuenter Roeck <linux@roeck-us.net>
First post2016-07-29 05:30 +0200
Last post2016-08-01 12:00 +0200
Articles 8 — 4 participants

Back to article view | Back to linux.kernel


Contents

  Build failure in linux mainline when building arcv2 images Guenter Roeck <linux@roeck-us.net> - 2016-07-29 05:30 +0200
    Re: Build failure in linux mainline when building arcv2 images Vineet Gupta <vgupta@synopsys.com> - 2016-07-29 07:30 +0200
      Re: Build failure in linux mainline when building arcv2 images Guenter Roeck <linux@roeck-us.net> - 2016-07-29 15:50 +0200
        Re: Build failure in linux mainline when building arcv2 images Vineet Gupta <Vineet.Gupta1@synopsys.com> - 2016-07-29 22:10 +0200
          Re: Build failure in linux mainline when building arcv2 images Guenter Roeck <linux@roeck-us.net> - 2016-07-29 23:50 +0200
            Re: Build failure in linux mainline when building arcv2 images Vineet Gupta <Vineet.Gupta1@synopsys.com> - 2016-07-30 00:50 +0200
              Re: Build failure in linux mainline when building arcv2 images Guenter Roeck <linux@roeck-us.net> - 2016-07-30 06:30 +0200
                Re: Build failure in linux mainline when building arcv2 images Alexey Brodkin <Alexey.Brodkin@synopsys.com> - 2016-08-01 12:00 +0200

#1452234 — Build failure in linux mainline when building arcv2 images

FromGuenter Roeck <linux@roeck-us.net>
Date2016-07-29 05:30 +0200
SubjectBuild failure in linux mainline when building arcv2 images
Message-ID<s06EO-7sn-5@gated-at.bofh.it>
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

[toc] | [next] | [standalone]


#1452263

FromVineet Gupta <vgupta@synopsys.com>
Date2016-07-29 07:30 +0200
Message-ID<s08wV-mF-1@gated-at.bofh.it>
In reply to#1452234
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

[toc] | [prev] | [next] | [standalone]


#1452415

FromGuenter Roeck <linux@roeck-us.net>
Date2016-07-29 15:50 +0200
Message-ID<s0gkN-5iX-9@gated-at.bofh.it>
In reply to#1452263
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

[toc] | [prev] | [next] | [standalone]


#1452546

FromVineet Gupta <Vineet.Gupta1@synopsys.com>
Date2016-07-29 22:10 +0200
Message-ID<s0mgx-Yp-13@gated-at.bofh.it>
In reply to#1452415
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

[toc] | [prev] | [next] | [standalone]


#1452587

FromGuenter Roeck <linux@roeck-us.net>
Date2016-07-29 23:50 +0200
Message-ID<s0nPk-1RL-3@gated-at.bofh.it>
In reply to#1452546
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

[toc] | [prev] | [next] | [standalone]


#1452610

FromVineet Gupta <Vineet.Gupta1@synopsys.com>
Date2016-07-30 00:50 +0200
Message-ID<s0oLo-2v7-11@gated-at.bofh.it>
In reply to#1452587
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

[toc] | [prev] | [next] | [standalone]


#1452652

FromGuenter Roeck <linux@roeck-us.net>
Date2016-07-30 06:30 +0200
Message-ID<s0u4p-675-3@gated-at.bofh.it>
In reply to#1452610
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

[toc] | [prev] | [next] | [standalone]


#1453095

FromAlexey Brodkin <Alexey.Brodkin@synopsys.com>
Date2016-08-01 12:00 +0200
Message-ID<s1iaS-4Cd-43@gated-at.bofh.it>
In reply to#1452652
Hi Vineet,+AKA-Guenter,

On Fri, 2016-07-29 at 21:27 -0700, Guenter Roeck wrote:
+AD4- On 07/29/2016 03:46 PM, Vineet Gupta wrote:
+AD4- 
+AD4- +AD4- 
+AD4- +AD4- What you want is
+AD4- +AD4- 2016-05-19 09439560b9f9 toolchain: bump ARC tools to arc-2016.03 release
+AD4- +AD4- 
+AD4- +AD4- which seems to be present in released 2016.05, but when I checkout 2016.05 tag (or
+AD4- +AD4- aa6fd11feebff) that patch is not there +ACE-
+AD4- +AD4- 
+AD4- 
+AD4- 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

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web