This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCC Search Directory Problem -- crosstool-ng-1.4.0


ng,
Ben,
All,

On Saturday 02 May 2009 00:30:58 ng@piments.com wrote:
> Ben Atkinson wrote:
> > I am using crosstool-ng-1.4.0 to build a cross compiler in the following
> > context:
> > build  = i486-linux-gnu (Ubuntu 8.10)
> > host   = i486-linux-gnu (same)
> > target = arm-unknown-linux-gnueabi (TS-7370 SBC)
[--SNIP--]
> > $ /home/batkinson/x-tools/arm-unknown-linux-gnueabi/arm-unknown-linux-gnueabi/bin/gcc -o Hello Hello.c
> Run file on this gcc and you'll find it's an x86 build.

Yes it is! It is a cross compiler, so it is expected to _run_ on the host.
Only it will _generate_ code for the target.

And in Ben's case, host is i486, so 'gcc' is a x86 binary.

I guess that if you run it with -B, you'll end up having a correct ARM
binary as output.

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]