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 ) 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 ; Tue, 25 Jul 2006 19:13:58 GMT Received: by ug-out-1314.google.com with SMTP id s2so525349uge for ; 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: Date: Tue, 25 Jul 2006 21:13:57 +0200 From: "Derick Swanepoel" To: gentoo-embedded@lists.gentoo.org Subject: Re: [gentoo-embedded] can't resolve symbol '__divsi3' on armv5tel-softfloat-linux-uclibc In-Reply-To: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail 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: X-Archives-Salt: 5455e301-44a8-4d0d-8e64-b2a7b2c5e1af X-Archives-Hash: ace595077a62e8d34611162b61f17ff8 On 25/07/06, KiberGus 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