[Buildroot] Sparc Leon support in Buildroot

Andreas Larsson andreas at gaisler.com
Wed Sep 3 15:14:37 UTC 2014


On 2014-09-03 16:45, Thomas Petazzoni wrote:
> Dear Andreas Larsson,
>
> On Wed, 03 Sep 2014 16:13:24 +0200, Andreas Larsson wrote:
>
>>> Great, thanks! Also, currently, we don't have any Sparc toolchain in
>>> our autobuilder testing. Normally, we try to have all architectures we
>>> support tested in our autobuilders. If we were to add the Sparc
>>> architecture to our testing infrastructure, would you be willing to
>>> look at the potential build failures that may result from this testing?
>>> (Look at http://autobuild.buildroot.org to see what the results look
>>> like for other architectures).
>>
>> If that would be set up, it is something I could keep an eye on.
>> However, I do not have the possibility to take responsibility for broken
>> packages.
>
> Well, it's not really a "responsibility": most of the Buildroot
> contributors are volunteers so there are no obligations. But if you can
> give some help from time to time for some SPARC specific issues, that
> would be nice.
>
> Have you had some time to look at the toolchain components? As I said
> earlier, we are currently keeping gcc 4.4.x only for SPARC Leon, so if
> you could test if gcc 4.8.x and/or 4.9.x work fine for Leon, it would
> allow us to get rid of the support for gcc 4.4.

gcc 4.8.x and 4.9.x produces a bug that seems to be due to memset 
optimizations and a surprising memset behavior in sparc Linux. I have 
submitted a kernel patch to fix this 
(https://lkml.org/lkml/2014/8/29/333). This (or some other fix to the 
problem) should go into mainline and stable branches before claiming gcc 
4.8/4.9 working for leon in my opinion. I'll have to test more if there 
are other problems with the newer gcc:s as well.

Cheers,
Andreas


More information about the buildroot mailing list