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.54) id 1FGbUv-0005pX-SF for garchives@archives.gentoo.org; Tue, 07 Mar 2006 12:41:06 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id k27CeOOo014693; Tue, 7 Mar 2006 12:40:24 GMT Received: from mailext.sit.fraunhofer.de (mailext.sit.fraunhofer.de [141.12.72.89]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id k27CeMhw016430 for ; Tue, 7 Mar 2006 12:40:23 GMT Received: from [141.12.86.137] (sitp508.sit.fraunhofer.de [141.12.69.254]) by mailext.sit.fraunhofer.de (8.13.1/8.13.1/9.9.9) with ESMTP id k27CeL2Y011143 for ; Tue, 7 Mar 2006 13:40:22 +0100 Message-ID: <440D7FB6.8060609@sit.fraunhofer.de> Date: Tue, 07 Mar 2006 13:42:30 +0100 From: =?ISO-8859-1?Q?Lutz_Sch=F6nemann?= User-Agent: Mozilla Thunderbird 1.0.7 (X11/20060111) X-Accept-Language: en-us, en 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 To: gentoo-embedded@lists.gentoo.org Subject: Re: [gentoo-embedded] Building Crosscompiler for Embedded System References: <440C024E.8000608@sit.fraunhofer.de> <20060306201435.75ea4833@c1358217.kevquinn.com> In-Reply-To: <20060306201435.75ea4833@c1358217.kevquinn.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed X-Virus-Scanned: by amavisd-new Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id k27CeOPc014693 X-Archives-Salt: 04571733-fb7b-47d8-b100-95b3697c4b53 X-Archives-Hash: 28c936950eb21d074420bd971ee8f550 Oh, okay, that worked. But I'm not shure if the created code is realy=20 for use with i386 CPUs. I compiled syslinux and GRUB and nothing seems=20 to work on the used system (e.g. GRUB only shows up his name at power on=20 and nothing more happens). Lutz Kevin F. Quinn (Gentoo) wrote: > On Mon, 06 Mar 2006 10:35:10 +0100 > Lutz Sch=F6nemann wrote: >=20 >=20 >>Hi, >>I've problems building an working Cross-Compiler to use it for an >>i386 embedded system. Until now I've tried the following two things: >> >>- Using crossdev: >>The crossdev script worked fine and installed the whole toolchain=20 >>(stage4: binutils, gcc, linux-headers, etc.). The trouble is that >>when I want to merge a packege with this compiler (e.g.: >>CFLAGS=3D"-arch=3Di386" ROOT=3D/tmp/cross/ CHOST=3Di386-unknown-linux-g= nu >>emerge sys-boot/syslinux) it ends up with the message that the >>compiler is unable to build executables. >=20 >=20 > Just in case that wasn't a typo in transcription - you need > CFLAGS=3D"-march=3Di386" (with an 'm'). You should look at the config.= log > etc to find out exactly why the compiler couldn't build executables. >=20 > BTW again just in case - if your host is an x86 system, you don't need = a > cross-compiler as your host compiler can build for all x86 variants - > it's enough to get the CFLAGS right; e.g. >=20 > CFLAGS=3D"-march=3Di386" ROOT=3D/tmp/cross emerge >=20 --=20 Lutz Sch=F6nemann Addr: Fraunhofer Institut f=FCr Sichere Informations Technologie SIT Rheinstrasse 75, 64295 Darmstadt, Germany WWW: http://www.sit.fraunhofer.de Zertifizierungen in der FhG: http://pki.fraunhofer.de --=20 gentoo-embedded@gentoo.org mailing list