* glibc cross-compile error
@ 1999-07-20 12:06 Masami Komiya
1999-07-23 0:04 ` Ralf Baechle
0 siblings, 1 reply; 2+ messages in thread
From: Masami Komiya @ 1999-07-20 12:06 UTC (permalink / raw)
To: linux
I could not cross-compile glibc using Linux/MIPS-2.2.10 sources
because of asm-mips/timex.h.
My workarround is
*** 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 ?
Masami Komiya
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: glibc cross-compile error
1999-07-20 12:06 glibc cross-compile error Masami Komiya
@ 1999-07-23 0:04 ` Ralf Baechle
0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 1999-07-23 0:04 UTC (permalink / raw)
To: Masami Komiya; +Cc: linux
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-07-23 0:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-07-20 12:06 glibc cross-compile error Masami Komiya
1999-07-23 0:04 ` Ralf Baechle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox