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 1FWune-000332-MX for garchives@archives.gentoo.org; Fri, 21 Apr 2006 12:31:51 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.6/8.13.6) with SMTP id k3LCV1b8011396; Fri, 21 Apr 2006 12:31:01 GMT Received: from mailout1.informatik.tu-muenchen.de (mailout1.informatik.tu-muenchen.de [131.159.0.18]) by robin.gentoo.org (8.13.6/8.13.6) with ESMTP id k3LCV0Hr016040 for ; Fri, 21 Apr 2006 12:31:00 GMT Message-ID: <4448D0C8.40106@net.in.tum.de> Date: Fri, 21 Apr 2006 14:32:08 +0200 From: Harald Schioeberg User-Agent: Mail/News 1.5 (X11/20060406) 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] Re: Building Crosscompiler for Embedded System References: <4447AA9F.8050907@net.in.tum.de> <4447C77A.7070503@freenet.de> In-Reply-To: <4447C77A.7070503@freenet.de> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-15 X-Virus-Scanned: by amavisd-new/sophie/sophos at mailrelay2.informatik.tu-muenchen.de Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by robin.gentoo.org id k3LCV1br011396 X-Archives-Salt: b9945270-6552-4ccf-97fd-1562d9186917 X-Archives-Hash: d3751c8383d06e5a602c3f8cedcbbdf0 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > I don't know which thread you are referring to, but maybe it was one of > mine. Sorry. This question from Lutz Sch=F6nemann was refered (at bottom). i wanted to point out, that setting BUILD_* like in BUILD_CC=3D"i686-pc-linux-gnu-gcc" BUILD_CXX=3D"i686-pc-linux-gnu-g++" BUILD_CFLAGS=3D"-O2 -march=3Dathlon-xp -pipe" BUILD_CXXFLAGS=3D${BUILD_CFLAGS} to build-machine specific flags solved the problem with the machine-specifc parameters (march) for me. portage seems not to care for build/target specific CFLAGS, but most configures do, so exporting this variables in the shell enables some packages to build (especiallly those, that build build-machine binaries, like the locals-compiler in glibc) harald >> - Using crossdev: >> The crossdev script worked fine and installed the whole toolchain >> (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-= gnu >> emerge sys-boot/syslinux) it ends up with the message that the >> compiler is unable to build executables. >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.l= og >etc to find out exactly why the compiler couldn't build executables. >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. >CFLAGS=3D"-march=3Di386" ROOT=3D/tmp/cross emerge -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFESNDIJgyxs71kcx4RAgPkAJ433wMAObmRQo5qarx1kjzyz+sbFgCeLE2v XECMbsoIVkxeomlLn7wsJjU=3D =3DkBVJ -----END PGP SIGNATURE----- --=20 gentoo-embedded@gentoo.org mailing list