Building the arm-linux-gnueabi target
Johannes Pfau via D.gnu
d.gnu at puremagic.com
Sun Jul 13 04:31:03 PDT 2014
Am Sun, 13 Jul 2014 13:17:22 +0200
schrieb "Joseph Rushton Wakeling via D.gnu" <d.gnu at puremagic.com>:
> On 13/07/14 12:30, Johannes Pfau via D.gnu wrote:
> > AFAIK that's not possible with GCC right now. One GCC build always
> > targets one main architecture.
> >
> > Is there any reason why you can't use the binaries from
> > http://gdcproject.org/downloads/ ?
>
> No, none at all. I just thought, since I build GDC from source
> anyway, I might as well see if I can just add an extra couple of
> config options and get what I want. But it's great to have the
> ready-made downloads.
>
> Just to know, does the 2.065 version require that I have gcc
> installed 4.9.0 on my system? Or is the "GCC" column just an
> indicator of what GCC sources the build was based on?
It marks the build gcc version and the system gcc version should not
really matter. (After all you can use cross compilers on windows or
other systems which don't even have a native gcc compiler)
>
> > I assume you want a cross compiler? For native compilers on ARM
> > machines you can just use the usual instructions:
> > http://wiki.dlang.org/GDC/Installation/Generic
>
> Yes, I'm interested principally in cross-compiling, both for
> linux-on-ARM and bare-metal ARM.
>
> That said, t would be fun to actually have GDC running on an RPi. I
> remember compiling C++ code on it and the amusing horror of how
> terribly long it took, it will be fun to see how D compilation goes
> by comparison ... :-)
IIRC building gdc/gcc alone requires 12 hours. And you'll need swap
as there's not enough ram ;-)
>
> > For cross compilers you must build at least binutils so this is more
> > complicated. The
> > http://wiki.dlang.org/Bare_Metal_ARM_Cortex-M_GDC_Cross_Compiler
> > only apply if you want an embedded compiler, i.e. you don't use
> > linux/glibc.
> >
> > For linux/glibc things are even more complicated. I'll have to refer
> > you to standard GCC-cross compiler tutorials, compiling cross-gdc is
> > exactly the same as compiling cross-gcc.
> >
> > The simplest way to build such cross-compilers is with crosstool-NG:
> > http://wiki.dlang.org/GDC/Cross_Compiler/crosstool-NG
> > I also build the binaries at http://gdcproject.org/downloads/ with
> > crosstool-NG.
>
> Thanks, I'll have a read through these. :-)
More information about the D.gnu
mailing list