From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-embedded+bounces-3060-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1MJ5Ik-0003Oe-7F
	for garchives@archives.gentoo.org; Tue, 23 Jun 2009 12:40:38 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 0A87AE06C5;
	Tue, 23 Jun 2009 12:40:37 +0000 (UTC)
Received: from mail-bw0-f223.google.com (mail-bw0-f223.google.com [209.85.218.223])
	by pigeon.gentoo.org (Postfix) with ESMTP id BA465E06C5
	for <gentoo-embedded@lists.gentoo.org>; Tue, 23 Jun 2009 12:40:36 +0000 (UTC)
Received: by bwz23 with SMTP id 23so27309bwz.34
        for <gentoo-embedded@lists.gentoo.org>; Tue, 23 Jun 2009 05:40:36 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:mime-version:received:in-reply-to:references
         :date:message-id:subject:from:to:content-type
         :content-transfer-encoding;
        bh=8lVm0HoS/pOn/XATt4rHaK2eZg+0eoebGQLz1njUAYI=;
        b=jCGYy/Ffg06f0RCkp/7Csipuy6ZEKUf/CB3DDp0w2/X71p4QjnXzwTtp7ucyq75toB
         Q5EFaefPZpIU4e0YYfuimm5jEdVaXtb2DBKURsTJ2kGNJz6Nu4ZJ7H3KNO5p+wF0sucp
         0avzHHe4+6oAEBwyAg1/XoaHGeglFCIMobVlI=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :content-type:content-transfer-encoding;
        b=KVoRZUmS2VgFiHzv8ek1yv4eI9EQ/azL2kql4KS00D/1LUktjZ8yFbOFPO7qcMpfG5
         6tQv3GHtQouiT5yvBOh1GZfE0Z+sQpFKUKRAJjHtpuyyLk3AqtNYkVxIoVTURDJcirWJ
         fYsUa01/g/zt6Am977+VcIxLWIc1Ed5B1zbWs=
Precedence: bulk
List-Post: <mailto:gentoo-embedded@lists.gentoo.org>
List-Help: <mailto:gentoo-embedded+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-embedded+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-embedded+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-embedded.gentoo.org>
X-BeenThere: gentoo-embedded@lists.gentoo.org
Reply-to: gentoo-embedded@lists.gentoo.org
MIME-Version: 1.0
Received: by 10.223.109.19 with SMTP id h19mr41355fap.20.1245760835869; Tue, 
	23 Jun 2009 05:40:35 -0700 (PDT)
In-Reply-To: <aa09d86e0906200251l7f41f99bu6752fc5a07cd4aa5@mail.gmail.com>
References: <aa09d86e0906182313h6f985d1aud7c5bd05eb475b0d@mail.gmail.com>
	 <4A3CA9E1.20101@gentoo.org>
	 <aa09d86e0906200224r7cac7c5dia4b7a97b4f001c3e@mail.gmail.com>
	 <4A3CAC89.2050906@gentoo.org>
	 <aa09d86e0906200251l7f41f99bu6752fc5a07cd4aa5@mail.gmail.com>
Date: Tue, 23 Jun 2009 16:40:35 +0400
Message-ID: <aa09d86e0906230540u64c3bdb7i4168dc545376d0c2@mail.gmail.com>
Subject: Re: [gentoo-embedded] sparcv8 gcc
From: =?KOI8-R?B?88XSx8XKIO3J0s/Oz9c=?= <ierton@gmail.com>
To: gentoo-embedded@lists.gentoo.org
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Archives-Salt: 49ede428-814b-49b2-8d1a-9ddcec7d70d4
X-Archives-Hash: 3377d4e9694768c2146f45ffb89c73ed

>> http://gcc.gnu.org/onlinedocs/gcc-4.4.0/gcc/SPARC-Options.html#SPARC-Options
>> You'll need to use -mno-fpu on the CFLAGS. And again, the -softfloat-
>> thing on the CHOST is gentoo-specific and only applies to ARM.
>>
>>
>
> Thanks! i'll try it as soon as i can.

Hi.
man gcc says about -mno-fpu in SPARC section that  "... you need to
compile libgcc.a, the library that comes with GCC, with -msoft-float
in order for this to work". So i try that:

$ export CFLAGS="-msoft-float"
$ crossdev sparc-module2-linux-gnu

Unfortunately, binutils fails to build with link-time errors:

../bfd/.libs/libbfd.so: undefined reference to `__floatsidf'
../bfd/.libs/libbfd.so: undefined reference to `__adddf3'
../bfd/.libs/libbfd.so: undefined reference to `__divdf3'

I found, that these functions are gcc floating point implementation.
But binutils should be built before gcc... So i think, that i am
trying to do something wrong again. Could you help?

Note, that without export CFLAGS="-msoft-float", crossdev successfully
builds development tree, but i can't use -mno-fpu in it's CFLAGS (same
errors).

Thanks!
Sergey