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: [crosstool-ng] problem building glibc


Chuck,
All,

On Monday 19 January 2009 20:18:15 Chuck Tuffli wrote:
> I have version 1.3.1 of ct-ng and am trying to build an ARM EABI tool
> chain with:
> binutils 2.19
> gcc 4.1.2
> glibc 2.5 + linuxthreads
> 
> but get a configuration error in glibc:
> [ERROR]    checking sysdep dirs... configure: error: The arm is not supported.

You need the "ports" addon. Available in the "C library" sub-menu.

> Changing line 412 of glibc.sh from
>         --host=${CT_TARGET}
> to
>         --target=${CT_TARGET}

That's wrong: for the C library, there is no idea of "target". You only
have to care about:
- the machine the C library is _built_ on, set with --build=...
- the machine the library will _execute_, set with --host=...

The idea of "target" is only meaningful for the compiler (and assembler...),
and means:
- the machine the tools _generate_ code for, set with --target=...

Alternatively, for a debugger or a disassembler, the "target" is described
as:
- the machine the tools _interpret_ code of, also set with --target=...

> Sure enough, I can't find crt1.o either (but did find other crt*.o
> files). Was the --target change the wrong fix or is the missing file
> another problem? Thanks!

I guess the answer is above :-)

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]