Building an ARM cross compiler

Iain Buclaw ibuclaw at ubuntu.com
Mon Nov 22 12:48:24 PST 2010


== Quote from Johannes Pfau (spam at example.com)'s article
> Thanks again Iain,
> I've got a working cross compiler now. The changes for phobos were rather
> small, I'll do some testing whether my changes actually work and if
> everything is fine I'll send those patches to the phobos mailing list.
> The second gcc patch wasn't needed, and the default gc compiled fine. But
> somethings still wrong with the gc, it gets stuck in a loop somewhere.
> With the stub gc things work as they should.

I never said it won't compile. IIRC it source of the problem occurs when entering
a certain function in the Gcx class, the parameters passed from the caller are
fine, but the callee receives garbage.

> One last question: If I build with --sysroot=/some/path the d include
> files still go to /usr/include/d2/4.4.5/ This could cause conflicts with
> multiple cross-compilers or the local compiler, is this the way it's
> supposed to be?

If I recall correctly, set --includedir=/some/patch, or --prefix=/some/patch

Regards


More information about the D.gnu mailing list