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: [PATCH 1/5] Force gmp to use build tool.


Arnaud, All,

On Thursday 08 April 2010 00:09:24 Arnaud Lacombe wrote:
> On Wed, Apr 7, 2010 at 5:08 PM, Yann E. MORIN
> <yann.morin.1998@anciens.enib.fr> wrote:
> > Well, in fact, we want to use the host compiler, not the build one.
> > GMP will run on the host machine, not the build machine.

> In that case, I want the build compiler to build `gmp', not the host
> one (well, I want my build compiler, ie the one specified by
> ${CT_BUILD_PREFIX},  to be considered as the host one). Using the true
> host compiler would pollute the final library with symbol I don't
> want:

In that case, you break canadian crosses. For example, if I build a
toolchain on my PC (x86_64), but want it to run on my BeagleBord (arm)
and generate code for my router (mips), then using the build compiler
to build GMP is not good, as GMP would end up being x86_64 code, while
it is expected to run on ARM, so it will not be possible to link gcc
against that libgmp.

And your previous message just makes me think:
  "Oh! He wants a canadian cross, in fact!"

Becasue that's what you are trying to achieve:
- build a toolchain on your current system (x86* with glibc-2.10)
- run it on another system (x86* with glibc-2.3.6)
- generate code for [whatever]

This is a type of canadian cross, in fact. The build machine and the host
machine are different, not in the architecture or the 'kernel', but in
the 'system' part, because it's not the same version of the C library.

> This should be transparent to the lambda user as by default build tool
> are the host tool. And building the toolchain with specific build tool 
> has to be compatible with the building architecture anyway

Not for canadian crosses... See docs/overview.txt, there's a section
about that.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  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]