Skip navigation
62,232 Views 14 Replies Last post: May 11, 2013 8:46 PM by Thang.Le RSS
fabio.porcedda Contributor 6 posts since
Nov 21, 2012
Currently Being Moderated

Nov 21, 2012 1:54 AM

Sourcery CodeBench Lite 2012.09-64 - Breaks kernel builds

Hi all,

this toolchain is unable to build the linux kernel (i've tried 3.6.6 and 3.7-rc6),

it gives me this error:

 

...

arch/arm/lib/copy_template.S:100: Error: selected processor does not support ARM mode `ldralt ip,[r1],#4'

...

 

The kernel builds fine with the previous release (2012.03) and

with other gcc-4.7 toolchain (ubuntu 12.10 armel-cross).

 

I think it's afflicted by this bug:

http://sourceware.org/bugzilla/show_bug.cgi?id=14575

https://bugzilla.redhat.com/show_bug.cgi?id=869025

 

Do you think there is some hope to have a fixed version?

 

Best regards

Fabio Porcedda

Eman Contributor 5 posts since
Jan 14, 2013
Currently Being Moderated
Jan 16, 2013 1:52 AM in response to: fabio.porcedda
Re: Sourcery CodeBench Lite 2012.09-64 - Breaks kernel builds

Very funny you didn't get any response at all! Eventhough this post have been viewed close to 3000 times!

I have a very similar problem...

 

Some questions for you.

1) What platform / OS are you compiling on?

2) Can you post last few lines using:
           make -w V=1

3) post the content of that file "copy_template.S"

 

Probably you have the wrong -march and SYSROOT combination specified.

-march=... appears several times, and it's **** close to impossible to figure out where they come from.

Eman Contributor 5 posts since
Jan 14, 2013
Currently Being Moderated
Apr 1, 2013 2:17 PM in response to: fabio.porcedda
Re: Sourcery CodeBench Lite 2012.09-64 - Breaks kernel builds

The problem is that the crappy freebie compiler (CodeBench Lite) doesn't supply the correct GLIBC libraries

that are needed to fully support the combination of: "-march=armv5te -mtune=arm9tdmi" or whatever "-mcpu="

you have. In my case, and also probably in yours,  we need "-march=armv7-a". This is only available in their

most expensive version.

 

This is a really dumb and counterproductive marketing failure. If they think that we will buy their expensive product

after seeing their lack of support or interest in getting even the most simple problems resolved,  I seriously doubt

they'll be able to offer much more for a fully paid version. Not understanding that ignoring simple questions here, will

undoubtedly create more work for their fully supported packages.

 

So my only suggestion at this point, is to stay away from Mentor Graphics products

altogether. They create more headaches for beginners, than just compiling your own toolchain.

 

After all, it only took me 20 minutes to download and compile my own set of binutils (as,ar,ld etc), that replaced the

broken ones supplied in the CB Lite edition. Suddenly things started working!

 

Good Luck!

brad_dixon Embedded 11 posts since
Dec 21, 2009
Currently Being Moderated
Jan 21, 2013 10:51 AM in response to: fabio.porcedda
Re: Sourcery CodeBench Lite 2012.09-64 - Breaks kernel builds

Fabio: You may well have an issue with the particular version of binutils and that Linux kernel version. Thanks for the write-up. I'm going to ask some people to look into and get back to you.

brad_dixon Embedded 11 posts since
Dec 21, 2009
Currently Being Moderated
Jan 28, 2013 5:21 AM in response to: brad_dixon
Re: Sourcery CodeBench Lite 2012.09-64 - Breaks kernel builds

As Eman said, yes, its definetly a "bug". We snapped our binutils just prior to this patch getting mainlined so we don't have it in these Lite builds.

 

We update Lite periodically based on sponsor requirements and when a new version is published you'll be able to grab it on the Sourcery Portal.

 

B

Eman Contributor 5 posts since
Jan 14, 2013
Currently Being Moderated
Jan 24, 2013 9:05 AM in response to: fabio.porcedda
Re: Sourcery CodeBench Lite 2012.09-64 - Breaks kernel builds

Definitely a binutils (gas) problem as described HERE:

(The assembler is confusing two different instructions.)

Recompile your own binutils and replace the sorcery executable and you will probably be ok.

Thang.Le Contributor 4 posts since
Apr 25, 2013
Currently Being Moderated
Apr 25, 2013 8:02 PM in response to: fabio.porcedda
Re: Sourcery CodeBench Lite 2012.09-64 - Breaks kernel builds

Hi all,

 

I have same issue. How to fix it ?, I am using Ubuntu 13.03. Previous version has this issue ?

 

Thanks

Thang.Le Contributor 4 posts since
Apr 25, 2013
Currently Being Moderated
Apr 25, 2013 10:40 PM in response to: fabio.porcedda
Re: Sourcery CodeBench Lite 2012.09-64 - Breaks kernel builds

Thanks Fabio Porcedda,

 

I will try to back to this old version. Hope Mentor will fix it soon. This is a very basic error, it should not happen because before delevery a new version, at least they need to check it.

 

@Fabio Porcedda: did you try GCC for ARM, how about it ?

 

Regards

Thang.Le Contributor 4 posts since
Apr 25, 2013
Currently Being Moderated
May 3, 2013 8:23 AM in response to: fabio.porcedda
Re: Sourcery CodeBench Lite 2012.09-64 - Breaks kernel builds

Hi

I mean GNUARM. It's different with Sourcery CodeBench Lite ?

 

Regards

Thang.Le Contributor 4 posts since
Apr 25, 2013
Currently Being Moderated
May 11, 2013 8:46 PM in response to: fabio.porcedda
Re: Sourcery CodeBench Lite 2012.09-64 - Breaks kernel builds

Hi,

Tried with 2013.05. still have few issues when buiding kernel. However, this may be issues from GCC

 

arch/arm/boot/compressed/head.S:565: Warning: (null)
arch/arm/boot/compressed/head.S:676: Warning: (null)
arch/arm/boot/compressed/head.S:698: Warning: (null)

 

 

regards

More Like This

  • Retrieving data ...

Bookmarked By (0)