crosstool-ng, armv7 and GCC-4.3.3

View: New views
4 Messages — Rating Filter:   Alert me  

crosstool-ng, armv7 and GCC-4.3.3

by gisfri@tin.it :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
I'm trying to build a toolchain for armv7-a with crosstool-ng 1.4.2

with GCC-4.3.3, but the process fails in compiler stage, with

Unknown
arch used in --with-arch=armv7-a

(maybe because support for armv7 was
added with GCC-4.4.0?)
But on ct-ng site I read of a successful build
for this arch,
and also OpenEmbedded uses GCC-4.3.3 for armv7.
Is there
somewhere a patch for adding armv7 support on GCC-4.3.3?

Regards,

Fabio

 

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Re: crosstool-ng, armv7 and GCC-4.3.3

by martinwguy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 9/9/09, gisfri@... <gisfri@...> wrote:
>  I'm trying to build a toolchain for armv7-a with crosstool-ng 1.4.2
>  with GCC-4.3.3, but the process fails in compiler stage, with
>  Unknown arch used in --with-arch=armv7-a
>
>  (maybe because support for armv7 was
>  added with GCC-4.4.0?)

man gcc-4.3 says -march=name ... armv7, armv7-a, armv7-r, armv7-m
so it "should just work".

I suggest you dig down to find out exactly which script is emitting
that error message, and go from there

    M

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Parent Message unknown Re: crosstool-ng, armv7 and GCC-4.3.3

by gisfri@tin.it :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>man gcc-4.3 says -march=name ... armv7, armv7-a, armv7-r, armv7-m
>so
it "should just work".

>I suggest you dig down to find out exactly
which script is emitting
>that error message, and go from there


After
some trials I've added in gcc-4.3.3/gcc/config.gcc the armv7 option.
Now it works.
Thanks.

Fabio

 

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Re: crosstool-ng, armv7 and GCC-4.3.3

by Yann E. MORIN :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Fabio, Martin,
All,

On Friday 11 September 2009 12:25:21 Martin Guy wrote:
> On 9/9/09, gisfri@... <gisfri@...> wrote:
> >  I'm trying to build a toolchain for armv7-a with crosstool-ng 1.4.2
> >  with GCC-4.3.3, but the process fails in compiler stage, with
> >  Unknown arch used in --with-arch=armv7-a
> >  (maybe because support for armv7 was
> >  added with GCC-4.4.0?)
>
> man gcc-4.3 says -march=name ... armv7, armv7-a, armv7-r, armv7-m
> so it "should just work".

Yes, it should. But it does not: ./configure does not accept the same
--with-arch= values as -march= accepts. :-(

> I suggest you dig down to find out exactly which script is emitting
> that error message, and go from there

Or use gcc-4.4, which knows about armv7-a at ./configure time.
This requires that you use crosstool-NG from the development tree.

Regards,
Yann E. MORIN.

--
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| --==< ^_^ >==-- `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
`------------------------------^-------^------------------^--------------------'



--
For unsubscribe information see http://sourceware.org/lists.html#faq