linux-mips
[Top] [All Lists]

Re: undefined reference to `__lshrdi3' error with GCC 4.0

To: Ralf Baechle <ralf@linux-mips.org>
Subject: Re: undefined reference to `__lshrdi3' error with GCC 4.0
From: "P. Christeas" <p_christ@hol.gr>
Date: Tue, 17 Jan 2006 17:50:20 +0200
Cc: Martin Michlmayr <tbm@cyrius.com>, linux-mips@linux-mips.org
In-reply-to: <20060117151449.GF3336@linux-mips.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20060117134838.GJ27047@deprecation.cyrius.com> <200601171617.16147.p_christ@hol.gr> <20060117151449.GF3336@linux-mips.org>
Sender: linux-mips-bounce@linux-mips.org
User-agent: KMail/1.9
On Tuesday 17 January 2006 5:14 pm, Ralf Baechle wrote:
> On Tue, Jan 17, 2006 at 04:17:14PM +0200, P. Christeas wrote:
> > On Tuesday 17 January 2006 3:48 pm, Martin Michlmayr wrote:
> > > Has anyone else seen the following error when compiling a kernel with
> > > GCC 4.0 (GCC 3.3 works) and knows what to do about it?
> > >
> > > arch/mips/kernel/built-in.o: In function `time_init':
> > > : undefined reference to `__lshrdi3'
> >
> > I think I've solved it by copying the files
> > ashldi3.c ashrdi3.c lshrdi3.c
> > from arch/ppc/lib to arch/mips/lib
>
> No such files in arch/ppc/lib?  Oh well, doesn't matter.
It was from m68k  :S 

>
> > The patch for 2.6 is:
>
> struct DIstruct seems broken for little endian.
What consequences does that have?

>
>   Ralf

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