From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org)
	by nuthatch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-embedded+bounces-1094-garchives=archives.gentoo.org@gentoo.org>)
	id 1G5TTI-00055s-Qp
	for garchives@archives.gentoo.org; Tue, 25 Jul 2006 20:25:41 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k6PKNxuR006464;
	Tue, 25 Jul 2006 20:23:59 GMT
Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.196])
	by robin.gentoo.org (8.13.7/8.13.6) with ESMTP id k6PKNwBX008703
	for <gentoo-embedded@lists.gentoo.org>; Tue, 25 Jul 2006 20:23:58 GMT
Received: by wx-out-0102.google.com with SMTP id s18so984665wxc
        for <gentoo-embedded@lists.gentoo.org>; Tue, 25 Jul 2006 13:23:58 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding;
        b=iW5eN/yXhT8AAVb/D7mYPwSk6vmC9saLeJTxCnrPy7aqvrWu9iPHqLkBunxKsgy4tGi6nDa9J4OSpLKVzScykIoCdqhwAQh0pzrdZws/td6ycxSgUyTKitYPXw4s+sjLMzJlWlo32U5QcfTsOoqqS3wyutM8LgkcSX2+cLPsWEQ=
Received: by 10.70.36.1 with SMTP id j1mr7077208wxj;
        Tue, 25 Jul 2006 13:23:57 -0700 (PDT)
Received: from ?192.168.1.2? ( [66.202.34.162])
        by mx.gmail.com with ESMTP id h14sm8771726wxd.2006.07.25.13.23.56;
        Tue, 25 Jul 2006 13:23:56 -0700 (PDT)
Message-ID: <44C67DB6.3050602@gmail.com>
Date: Tue, 25 Jul 2006 16:23:18 -0400
From: Anish Patel <anish.mailing.list@gmail.com>
User-Agent: Thunderbird 1.5.0.4 (Windows/20060516)
Precedence: bulk
List-Post: <mailto:gentoo-embedded@lists.gentoo.org>
List-Help: <mailto:gentoo-embedded+help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-embedded+unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-embedded+subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-embedded.gentoo.org>
X-BeenThere: gentoo-embedded@gentoo.org
Reply-to: gentoo-embedded@lists.gentoo.org
MIME-Version: 1.0
To: gentoo-embedded@lists.gentoo.org
Subject: Re: [gentoo-embedded] can't resolve symbol '__divsi3' on armv5tel-softfloat-linux-uclibc
References: <b7ac62250607251116u2ff3f935ofea74c6267e499b1@mail.gmail.com> <fdcd80670607251213m2b1e57a4uc0b318b50c8567f5@mail.gmail.com>
In-Reply-To: <fdcd80670607251213m2b1e57a4uc0b318b50c8567f5@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Archives-Salt: 06c90538-9f11-459a-80a5-73bd0aa215d1
X-Archives-Hash: 563031755d10f2f3d31839dd26f687ed

Derick Swanepoel wrote:
> On 25/07/06, KiberGus <kibergus@gmail.com> wrote:
>> I'm trying to install gentoo on my PDA. And I have found that some 
>> programms
>> (such as nano, python, nm) fail with srting like this:
>> nano: can't resolve symbol '__divsi3'
>> python: can't resolve symbol '__udivsi3'
>>
>>  I can't underrstand, how to fix this. Math libraries work OK, my simple
>> test application, which uses floating point operation work fine. Does any
>> body know, what operation __udivsi3 performs? It is clearly, that it is
>> divide, but what type it's arguments have?
>> Thanks.
> 
> I have the same problem on armeb-softfloat-linux-uclibc. I also have
> apps that fail with __fixdfsi. Many of the busybox applets fail with
> __udivsi3 (e.g. awk, ping, top, df, netstat, fdisk) - basically
> anything that does a certain kind of floating point divide. They only
> fail when that specific instruction is reached, so for example ash
> would only fail if mod or div is used e.g. "echo $((5 % 2))" or "echo
> $((16 / 4))".
> 
> So far I have been unable to construct a test case - my own test app
> that does floating point div also works.
> 
> I suspect that it is a bug in gcc and the way it generates code on ARM
> softfloat targets, but I have no idea how to find out.
> 
> Derick
i have also had the same problem with some Intel CSR stuff and the newer 
  kernels, with 2.6.12 i don't have problems armeb-unknown-linux-gnu or 
anything else.

Anish

-- 
gentoo-embedded@gentoo.org mailing list