linux-mips
[Top] [All Lists]

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

To: "P. Christeas" <p_christ@hol.gr>
Subject: Re: undefined reference to `__lshrdi3' error with GCC 4.0
From: Ralf Baechle <ralf@linux-mips.org>
Date: Tue, 17 Jan 2006 15:14:49 +0000
Cc: Martin Michlmayr <tbm@cyrius.com>, linux-mips@linux-mips.org
In-reply-to: <200601171617.16147.p_christ@hol.gr>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20060117134838.GJ27047@deprecation.cyrius.com> <200601171617.16147.p_christ@hol.gr>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.4.2.1i
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.

> The patch for 2.6 is:

struct DIstruct seems broken for little endian.

  Ralf

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