linux-mips
[Top] [All Lists]

Re: glibc cross-compile error

To: Masami Komiya <mkomiya@crossnet.co.jp>
Subject: Re: glibc cross-compile error
From: Ralf Baechle <ralf@uni-koblenz.de>
Date: Fri, 23 Jul 1999 02:04:03 +0200
Cc: linux@cthulhu.engr.sgi.com
In-reply-to: <37946628.F2D5BA61@crossnet.co.jp>; from Masami Komiya on Tue, Jul 20, 1999 at 09:06:00PM +0900
References: <37946628.F2D5BA61@crossnet.co.jp>
Sender: owner-linux@cthulhu.engr.sgi.com
On Tue, Jul 20, 1999 at 09:06:00PM +0900, Masami Komiya wrote:

> I could not cross-compile glibc using Linux/MIPS-2.2.10 sources
> because of asm-mips/timex.h.

> *** timex.h.org       Fri Jun 11 11:18:29 1999
> --- timex.h   Tue Jul 20 20:34:59 1999
> ***************
> *** 31,36 ****
> --- 31,40 ----
>   typedef unsigned int cycles_t;
>   extern cycles_t cacheflush_time;
>   
> + #ifndef __ASM_MIPS_MIPSREGS_H
> + #include <asm/mipsregs.h>
> + #endif
> + 
>   static inline cycles_t get_cycles (void)
>   {
>       return read_32bit_cp0_register(CP0_COUNT);
> 
> I afraid this workarround will be the cause of the another.
> Does anyone has the better solution ?

Wrap all the C-code in that file with #ifdef __KERNEL__ ... #endif.

It's fixed in my development sources.

  Ralf

<Prev in Thread] Current Thread [Next in Thread>