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: [CT_NG] build fixes for glibc-2.3.6 and old systems


Hello again!

On Saturday 10 May 2008 15:55:54 Willy Tarreau wrote:
> When installing libc headers, the wrong compiler is used (CT_TARGET)
> instead of CT_BUILD, resulting in the headers not being built :

You're not going with linuxthreads, are you?

Building linuxthreads-based glibc is broken, as you just pointed out. Only
NPTL works (or should work) with glibc. It's a crosstool-NG limitation so
far.

In the case of NPTL, a cross-compiler, C-only, bare compiler is built before
the C library headers get installed. So we have a cross-compiler by that
time.

But in the case of linuxthreads, that X-compiler is not built. So we can't use
it to build necessary C library. Where it becomes quite strange (IMPOV) is that
linuxthreads *should* *not* require that compiler. Anyway, it didn't when
crosstool-NG didn't support building NPTL. Since the time I introduced NPTL
support, the linuxthreads builds broke.

Seems you just pointed me at the correct line, here! :-)

> I fixed it with the following patch :
> -    cross_cc=`CT_Which "${CT_TARGET}-gcc"`
> +    cross_cc=`CT_Which "${CT_BUILD}-gcc"`

Will be a bit more complex than just that, we'll just test wether we're
going NPTL or linuxthreads, and set the compiler accordingly.

This will have to wait a little bit, I have other, ARM-BE-EABI-uClibc problems
ATM.

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    |  """  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]