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 ) id 1MHwvY-0006TB-H2 for garchives@archives.gentoo.org; Sat, 20 Jun 2009 09:32:00 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E8F9BE0349; Sat, 20 Jun 2009 09:31:58 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id CABEEE0349 for ; Sat, 20 Jun 2009 09:31:58 +0000 (UTC) Received: from [192.168.0.3] (157.180.219.87.dynamic.jazztel.es [87.219.180.157]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id DE9FC6534E for ; Sat, 20 Jun 2009 09:31:57 +0000 (UTC) Message-ID: <4A3CAC89.2050906@gentoo.org> Date: Sat, 20 Jun 2009 11:31:53 +0200 From: =?GB2312?B?UmGosmwgUG9yY2Vs?= User-Agent: Thunderbird 2.0.0.21 (X11/20090302) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-embedded@lists.gentoo.org Reply-to: gentoo-embedded@lists.gentoo.org MIME-Version: 1.0 To: gentoo-embedded@lists.gentoo.org Subject: Re: [gentoo-embedded] sparcv8 gcc References: <4A3CA9E1.20101@gentoo.org> In-Reply-To: X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 43d04fef-ff66-4f0c-8bfd-8c19c6c2859b X-Archives-Hash: 1e28b785c6cbc18f8c2697140111f008 =A7=B3=A7=D6=A7=E2=A7=D4=A7=D6=A7=DB =A7=AE=A7=DA=A7=E2=A7=E0=A7=DF=A7=E0= =A7=D3 wrote: > Hm, ok, i get it. But is any way to compile sparc envirment for leon3 > proc without fpu? > Maybe its possible to use sparcv8-unknown-linux-gnu and > USE=3D"softfloat" (or similar) ? >=20 > 2009/6/20 Ra=A8=B2l Porcel : >> =A7=B3=A7=D6=A7=E2=A7=D4=A7=D6=A7=DB =A7=AE=A7=DA=A7=E2=A7=E0=A7=DF=A7= =E0=A7=D3 wrote: >>> Hi! I'm trying to build cross-enviroment for >>> sparcv8-softfloat-linux-gnueabi, but without luck. >>> >>> gcc 4.3.2 (and 4.4.0) failes to build with message: >>> ... >>> checking whether string.h and strings.h may both be included... yes >>> checking for .preinit_array/.init_array/.fini_array support... yes >>> checking how to run the C preprocessor... yes >>> checking if mkdir takes one argument... i686-pc-linux-gnu-gcc -E >>> no >>> *** Configuration sparcv8-softfloat-linux-gnu not supported >>> checking for egrep... grep -E >>> checking for ANSI C header files... yes >>> checking for sys/types.h... make[1]: *** [configure-gcc] Error 1 >>> make[1]: *** Waiting for unfinished jobs.... >>> yes >>> checking for sys/stat.h... yes >>> ... >>> make[1]: Leaving directory >>> `/var/tmp/cross/sparcv8-softfloat-linux-gnueabi/portage/cross-sparcv8= -softfloat-linux-gnueabi/gcc-4.3.2-r3/work/build' >>> make: *** [all] Error 2 >>> >>> Does anybody know combination of versions of gcc-glibc that works? >>> >> AFAIK gnueabi is only for ppc and ARM. Also softfloat(specifying it on >> the CHOST on gentoo) is for arm only. >> >> >=20 >=20 >=20 http://gcc.gnu.org/onlinedocs/gcc-4.4.0/gcc/SPARC-Options.html#SPARC-Opti= ons 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.