Gentoo Archives: gentoo-user

From: Jacob Todd <jaketodd422@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: How to compile for less bits :)
Date: Wed, 29 Sep 2010 23:47:12
Message-Id: AANLkTi=CPKHOGTMmQQN_V1FFj2TWGkaBXuqjowW5x3yZ@mail.gmail.com
1 Cross compiling on unix is confusing because the compiler sucks.
2
3 On Sep 29, 2010 3:50 PM, "Grant Edwards" <grant.b.edwards@×××××.com> wrote:
4
5 On 2010-09-29, meino.cramer@×××.de <meino.cramer@×××.de> wrote:
6
7 >> > (And in this context: The aud...
8
9 > Thank you very much for your offered help!
10 >
11 > Sorry, sorry I think my English confused a lot of i...
12 Cross-building stuff is just plain confusing.
13
14
15 > I'll try it again.
16 >
17 > Setup BEFORE I switched to 64bit Gentoo Linux.
18 > * a "normal" system gcc a...
19 All you need to do is build a cross compiler for the ARM9 target the
20 same way you did before. The width of the host where you're building
21 things doesn't matter (if it does, that's a bug in gcc or binutils).
22
23 I've had excellent results using the crosstool-ng makefile:
24
25
26 http://ymorin.is-a-geek.org/projects/crosstool
27 Crosstool is used by a lot of embedded developers. If there were
28 problems building an ARM comiler on an AMD64 host, Yann Morin et al.
29 are your best bet for a solution. You may want to take a look at the
30 crossgcc mailing list:
31
32 http://news.gmane.org/gmane.comp.gcc.cross-compiling
33 http://sourceware.org/ml/crossgcc/
34
35 From a brief search of the mailing list, it appears that building an
36 ARM compiler on an AMD64 machines works just fine.
37
38 or,
39
40 It's quite likely that you can install IA32 libraries on your AMD64
41 host OS and then use the exact same compiler executable you used
42 before.
43
44
45 > OR: compiled to be an 32bit gcc-executable which generate
46 > executable binaries for my ATMEL ...
47 You really don't want to do that. It's rather tricky, and it
48 shouldn't be required.
49
50
51 > * Additional "chuck" audio application only available for 32bit
52 > Linux, to be compiled with th...
53 Just use the arm-linux-gcc compiler and you should be fine regardless
54 of the width of the host on which you built the arm-linux-gcc
55 compiler.
56
57 --
58 Grant Edwards grant.b.edwards Yow! It's the RINSE
59 CYCLE!!
60 at They've ALL IGNORED the
61 gmail.com RINSE CYCLE!!

Replies

Subject Author
[gentoo-user] Re: How to compile for less bits :) Grant Edwards <grant.b.edwards@×××××.com>
[gentoo-user] Re: How to compile for less bits :) James <wireless@×××××××××××.com>