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-1093-garchives=archives.gentoo.org@gentoo.org>)
	id 1G5SNV-0005oB-Rm
	for garchives@archives.gentoo.org; Tue, 25 Jul 2006 19:15:38 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k6PJDwkE016919;
	Tue, 25 Jul 2006 19:13:58 GMT
Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170])
	by robin.gentoo.org (8.13.7/8.13.6) with ESMTP id k6PJDvaZ001119
	for <gentoo-embedded@lists.gentoo.org>; Tue, 25 Jul 2006 19:13:58 GMT
Received: by ug-out-1314.google.com with SMTP id s2so525349uge
        for <gentoo-embedded@lists.gentoo.org>; Tue, 25 Jul 2006 12:13:57 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
        b=CQGRJqAFW3dCBMV9A1YiW9fezpiygxOOcXvzeH2YwfwjRZbrz8ka+hEpl4xkcLZ89PnY7h3lFe50JNUcUzzrwarRUK6cVAGzfN3yShMMMvwUxnIkme9zJURS8GeMX21x6XsXl1dx2MrAb51kMhBzfCizrNC7pL4EE+MqTWTGdIs=
Received: by 10.67.22.2 with SMTP id z2mr5092653ugi;
        Tue, 25 Jul 2006 12:13:57 -0700 (PDT)
Received: by 10.67.30.15 with HTTP; Tue, 25 Jul 2006 12:13:57 -0700 (PDT)
Message-ID: <fdcd80670607251213m2b1e57a4uc0b318b50c8567f5@mail.gmail.com>
Date: Tue, 25 Jul 2006 21:13:57 +0200
From: "Derick Swanepoel" <dswanepoel@gmail.com>
To: gentoo-embedded@lists.gentoo.org
Subject: Re: [gentoo-embedded] can't resolve symbol '__divsi3' on armv5tel-softfloat-linux-uclibc
In-Reply-To: <b7ac62250607251116u2ff3f935ofea74c6267e499b1@mail.gmail.com>
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
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <b7ac62250607251116u2ff3f935ofea74c6267e499b1@mail.gmail.com>
X-Archives-Salt: 5455e301-44a8-4d0d-8e64-b2a7b2c5e1af
X-Archives-Hash: ace595077a62e8d34611162b61f17ff8

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
-- 
gentoo-embedded@gentoo.org mailing list