Gentoo Archives: gentoo-embedded

From: Bob Dunlop <bob.dunlop@×××××××××.uk>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] crossdev ppc-softfloat-linux-gnu gcc 3.4.5 libc 2.3.6 failed
Date: Fri, 28 Sep 2007 07:43:27
Message-Id: 20070928073303.GA14915@xyzzy.org.uk
In Reply to: [gentoo-embedded] crossdev ppc-softfloat-linux-gnu gcc 3.4.5 libc 2.3.6 failed by Cees Koolen
1 On Fri, Sep 28 at 08:24, Cees Koolen wrote:
2 > Hello,
3 >
4 > I'm trying to build a cross development toolchain. I've tried different versions
5 > of gcc and libc but the build always fails at the same point. I hope someone can
6 > help.
7
8 Can I recommend a little package called crosstool (a colleage pointed me
9 at it and it "just worked"(tm) for Arm, MIPS, and i686.
10
11 Download 0.43 from http://www.kegel.com/crosstool/
12
13 Put this script in the root of the unpacked tarball and run it.
14 Make /opt/crosstool writeable and it can be run by a plain user which
15 I really like. That's all there is to it.
16
17
18
19 #!/bin/sh
20 # Compile gcc-3.4.5-glibc-2.3.6 for ARM.
21 #
22
23 set -ex
24 TARBALLS_DIR=/usr/portage/distfiles
25 RESULT_TOP=/opt/crosstool
26 export TARBALLS_DIR RESULT_TOP
27 GCC_LANGUAGES="c"
28 export GCC_LANGUAGES
29
30 # Really, you should do the mkdir before running this,
31 # and chown /opt/crosstool to yourself so you don't need to run as root.
32 mkdir -p $RESULT_TOP
33
34 eval `cat arm-softfloat.dat gcc-3.4.5-glibc-2.3.6.dat` sh all.sh --notest
35 echo Done.
36
37 --
38 Bob Dunlop
39 --
40 gentoo-embedded@g.o mailing list