public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
From: Harald Schioeberg <schioebe@net.in.tum.de>
To: gentoo-embedded@lists.gentoo.org
Subject: Re: [gentoo-embedded] Re: Building Crosscompiler for Embedded System
Date: Fri, 21 Apr 2006 14:32:08 +0200	[thread overview]
Message-ID: <4448D0C8.40106@net.in.tum.de> (raw)
In-Reply-To: <4447C77A.7070503@freenet.de>

-----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önemann was refered (at bottom). i
wanted to point out, that setting BUILD_* like in

BUILD_CC="i686-pc-linux-gnu-gcc"
BUILD_CXX="i686-pc-linux-gnu-g++"
BUILD_CFLAGS="-O2 -march=athlon-xp -pipe"
BUILD_CXXFLAGS=${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="-arch=i386" ROOT=/tmp/cross/ CHOST=i386-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="-march=i386" (with an 'm').  You should look at the config.log
>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="-march=i386" ROOT=/tmp/cross emerge <pkg>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFESNDIJgyxs71kcx4RAgPkAJ433wMAObmRQo5qarx1kjzyz+sbFgCeLE2v
XECMbsoIVkxeomlLn7wsJjU=
=kBVJ
-----END PGP SIGNATURE-----
-- 
gentoo-embedded@gentoo.org mailing list



      reply	other threads:[~2006-04-21 12:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-20 15:37 [gentoo-embedded] Re: Building Crosscompiler for Embedded System Harald Schioeberg
2006-04-20 17:40 ` Jan Girlich
2006-04-21 12:32   ` Harald Schioeberg [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4448D0C8.40106@net.in.tum.de \
    --to=schioebe@net.in.tum.de \
    --cc=gentoo-embedded@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox