public inbox for crossgcc@sourceware.org
 help / color / mirror / Atom feed
* crosstool-ng, armv7 and GCC-4.3.3
@ 2009-09-09 19:12 gisfri
  2009-09-11 10:25 ` Martin Guy
  0 siblings, 1 reply; 4+ messages in thread
From: gisfri @ 2009-09-09 19:12 UTC (permalink / raw)
  Cc: crossgcc

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

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

* Re: crosstool-ng, armv7 and GCC-4.3.3
  2009-09-09 19:12 crosstool-ng, armv7 and GCC-4.3.3 gisfri
@ 2009-09-11 10:25 ` Martin Guy
  2009-09-12  8:12   ` Yann E. MORIN
  0 siblings, 1 reply; 4+ messages in thread
From: Martin Guy @ 2009-09-11 10:25 UTC (permalink / raw)
  To: gisfri; +Cc: crossgcc

On 9/9/09, gisfri@tin.it <gisfri@tin.it> 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

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

* Re: crosstool-ng, armv7 and GCC-4.3.3
  2009-09-11 10:25 ` Martin Guy
@ 2009-09-12  8:12   ` Yann E. MORIN
  0 siblings, 0 replies; 4+ messages in thread
From: Yann E. MORIN @ 2009-09-12  8:12 UTC (permalink / raw)
  To: crossgcc; +Cc: Martin Guy, gisfri

Fabio, Martin,
All,

On Friday 11 September 2009 12:25:21 Martin Guy wrote:
> On 9/9/09, gisfri@tin.it <gisfri@tin.it> 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

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

* Re: crosstool-ng, armv7 and GCC-4.3.3
@ 2009-09-11 23:20 gisfri
  0 siblings, 0 replies; 4+ messages in thread
From: gisfri @ 2009-09-11 23:20 UTC (permalink / raw)
  To: martinwguy; +Cc: crossgcc

>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

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

end of thread, other threads:[~2009-09-12  8:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-09 19:12 crosstool-ng, armv7 and GCC-4.3.3 gisfri
2009-09-11 10:25 ` Martin Guy
2009-09-12  8:12   ` Yann E. MORIN
2009-09-11 23:20 gisfri

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 read-only IMAP folder(s) and NNTP newsgroup(s).