* [gentoo-embedded] Re: Building Crosscompiler for Embedded System
@ 2006-04-20 15:37 Harald Schioeberg
2006-04-20 17:40 ` Jan Girlich
0 siblings, 1 reply; 3+ messages in thread
From: Harald Schioeberg @ 2006-04-20 15:37 UTC (permalink / raw
To: gentoo-embedded
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Just found that thread in the archive, sorry for breaking the thread.
i had the same problem (on mips), setting some environment varibles
solved them:
CHOST="mipsel-softfloat-linux-gnu"
CFLAGS="-O2 -march=4kc -msoft-float -pipe"
CBUILD="i686-pc-linux-gnu"
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}
Harald
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFER6qfJgyxs71kcx4RAllsAJ9kYhCpQFgZFOjbzhMM8WIwOGr8JQCg5kgj
+VNsYwB8bTSbDL63YdYbFGE=
=e8eC
-----END PGP SIGNATURE-----
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-embedded] Re: Building Crosscompiler for Embedded System
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
0 siblings, 1 reply; 3+ messages in thread
From: Jan Girlich @ 2006-04-20 17:40 UTC (permalink / raw
To: gentoo-embedded
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Harald Schioeberg wrote:
> Just found that thread in the archive, sorry for breaking the thread.
I don't know which thread you are referring to, but maybe it was one of
mine.
> i had the same problem (on mips), setting some environment varibles
> solved them:
>
> CHOST="mipsel-softfloat-linux-gnu"
> CFLAGS="-O2 -march=4kc -msoft-float -pipe"
[...]
I use cmerge for these purposes (setting vars).
http://www.mail-archive.com/gentoo-embedded@lists.gentoo.org/msg00737.html
Jan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
iD8DBQFER8d6vuM9o4Jvd/8RAk+wAJsHrS3K9h+2fczwGAtjVwc1IdXCvwCeMXjZ
G0iD8BtkBuW/Lv9yUxh9BQA=
=kmlu
-----END PGP SIGNATURE-----
--
gentoo-embedded@gentoo.org mailing list
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-embedded] Re: Building Crosscompiler for Embedded System
2006-04-20 17:40 ` Jan Girlich
@ 2006-04-21 12:32 ` Harald Schioeberg
0 siblings, 0 replies; 3+ messages in thread
From: Harald Schioeberg @ 2006-04-21 12:32 UTC (permalink / raw
To: gentoo-embedded
-----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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-04-21 12:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox